check_run |
diff --git a/cache/ghe-2.14/enterprise/2.14/v3/checks/index.html b/cache/ghe-2.14/enterprise/2.14/v3/checks/index.html
index f5e5093f7c..40ff0ee6a8 100644
--- a/cache/ghe-2.14/enterprise/2.14/v3/checks/index.html
+++ b/cache/ghe-2.14/enterprise/2.14/v3/checks/index.html
@@ -357,7 +357,6 @@
-
For an example of how to use the Checks API with a GitHub App, see "Creating CI tests with the Checks API."
diff --git a/cache/ghe-2.14/enterprise/2.14/v3/checks/runs/create-a-check-run.html b/cache/ghe-2.14/enterprise/2.14/v3/checks/runs/create-a-check-run.html
index 8dba31a0c9..c5b2a26b19 100644
--- a/cache/ghe-2.14/enterprise/2.14/v3/checks/runs/create-a-check-run.html
+++ b/cache/ghe-2.14/enterprise/2.14/v3/checks/runs/create-a-check-run.html
@@ -76,7 +76,7 @@
actions |
array of objects |
-Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action webhook to your app. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
+Possible further actions the integrator can perform, which a user may trigger. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
diff --git a/cache/ghe-2.14/enterprise/2.14/v3/checks/runs/index.html b/cache/ghe-2.14/enterprise/2.14/v3/checks/runs/index.html
index d5fab8c2d0..9fd0206fc2 100644
--- a/cache/ghe-2.14/enterprise/2.14/v3/checks/runs/index.html
+++ b/cache/ghe-2.14/enterprise/2.14/v3/checks/runs/index.html
@@ -362,7 +362,7 @@
actions |
array of objects |
-Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action webhook to your app. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
+Possible further actions the integrator can perform, which a user may trigger. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
diff --git a/cache/ghe-2.14/enterprise/2.14/v3/search/index.html b/cache/ghe-2.14/enterprise/2.14/v3/search/index.html
index a48d7ba406..70740b3c4d 100644
--- a/cache/ghe-2.14/enterprise/2.14/v3/search/index.html
+++ b/cache/ghe-2.14/enterprise/2.14/v3/search/index.html
@@ -276,7 +276,7 @@
Text match metadata
The Search API helps you search for the specific item you want to find. For example, you can find a user or a specific file in a repository. Think of it the way you think of performing a search on Google. It's designed to help you find the one result you're looking for (or maybe the few results you're looking for). Just like searching on Google, you sometimes want to see a few pages of search results so that you can find the item that best meets your needs. To satisfy that need, the GitHub Enterprise Search API provides up to 1,000 results for each search.
-You can narrow your search using queries. To learn more about the search query syntax, see "Constructing a search query."
+You can narrow your search using queries, also known as search qualifiers or query parameters. If only some search queries are successful, then you will see a partially successful response with an empty list for unsuccessful queries.
Ranking search results
Unless another sort option is provided as a query parameter, results are sorted
@@ -311,12 +311,34 @@
quantities, dates, or to exclude results, see "Understanding the search syntax."
Limitations on query length
-
The Search API does not support queries that:
-
-- are longer than 256 characters (not including operators or qualifiers).
-- have more than five
AND
, OR
, or NOT
operators.
-
-These search queries will return a "Validation failed" error message.
+The Search API does not support queries that are longer than 256 characters (not including operators or qualifiers) and will return an error.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "The search is longer than 256 characters.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
+Also, a query using more than five AND
, OR
, or NOT
operators will return an error.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "More than five AND / OR / NOT operators were used.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
Timeouts and incomplete results
To keep the Search API fast for everyone, we limit how long any individual query
@@ -326,10 +348,21 @@
Reaching a timeout does not necessarily mean that search results are incomplete.
More results might have been found, but also might not.
-Access errors or missing search results
-You need to successfully authenticate and have access to the repositories in your search queries, otherwise, you'll see a 422 Unprocessible Entry
error with a "Validation Failed" message. For example, your search will fail if your query includes repo:
, user:
, or org:
qualifiers that request resources that you don't have access to when you sign in on GitHub.
-When your search query requests multiple resources, the response will only contain the resources that you have access to and will not provide an error message listing the resources that were not returned.
-For example, if your search query searches for the octocat/test
and codertocat/test
repositories, but you only have access to octocat/test
, your response will show search results for octocat/test
and nothing for codertocat/test
. This behavior mimics how search works on GitHub.
+Permissions failure or an empty list
+You need to successfully authenticate and have access to the repositories in your search queries, otherwise, you'll see a 422 Unprocessible Entry
error. For example, your search will fail if your query includes repo:
or user:
or org:
qualifiers and doesn't match the resources that you have access to when you sign in on GitHub.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
Search repositories
diff --git a/cache/ghe-2.15/enterprise/2.15/v3/activity/events/types/checkrunevent.html b/cache/ghe-2.15/enterprise/2.15/v3/activity/events/types/checkrunevent.html
index 501f5cd238..20d2c5a777 100644
--- a/cache/ghe-2.15/enterprise/2.15/v3/activity/events/types/checkrunevent.html
+++ b/cache/ghe-2.15/enterprise/2.15/v3/activity/events/types/checkrunevent.html
@@ -20,7 +20,7 @@
action |
string |
-The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. To learn more about check runs and requested actions, see "Check runs and requested actions." |
+The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. See Request further actions from a check run for details. |
check_run |
diff --git a/cache/ghe-2.15/enterprise/2.15/v3/activity/events/types/index.html b/cache/ghe-2.15/enterprise/2.15/v3/activity/events/types/index.html
index 2edaa207c6..5571cbc837 100644
--- a/cache/ghe-2.15/enterprise/2.15/v3/activity/events/types/index.html
+++ b/cache/ghe-2.15/enterprise/2.15/v3/activity/events/types/index.html
@@ -324,7 +324,7 @@
action |
string |
-The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. To learn more about check runs and requested actions, see "Check runs and requested actions." |
+The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. See Request further actions from a check run for details. |
check_run |
diff --git a/cache/ghe-2.15/enterprise/2.15/v3/checks/index.html b/cache/ghe-2.15/enterprise/2.15/v3/checks/index.html
index 9c04de4cb3..b029152347 100644
--- a/cache/ghe-2.15/enterprise/2.15/v3/checks/index.html
+++ b/cache/ghe-2.15/enterprise/2.15/v3/checks/index.html
@@ -347,7 +347,6 @@
-
For an example of how to use the Checks API with a GitHub App, see "Creating CI tests with the Checks API."
diff --git a/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/create-a-check-run.html b/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/create-a-check-run.html
index 7680374a28..a7599ba5f4 100644
--- a/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/create-a-check-run.html
+++ b/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/create-a-check-run.html
@@ -79,11 +79,10 @@
actions |
array of objects |
-Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action webhook to your app. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
+Possible further actions the integrator can perform, which a user may trigger. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
-
To learn more about check runs and requested actions, see "Check runs and requested actions."
output
object
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
diff --git a/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/index.html b/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/index.html
index dd9a04b461..57963581a7 100644
--- a/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/index.html
+++ b/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/index.html
@@ -274,20 +274,6 @@
A check can also be manually re-run in the GitHub UI. See "About status checks" for more details. When this occurs, the GitHub App that created the check run will receive the check_run
webhook requesting a new check run. If you create a check run without creating a check suite, GitHub creates the check suite for you automatically.
Write permission for the Checks API is only available to GitHub Apps. OAuth Apps and authenticated users can view check runs and check suites, but they are not able to create them. If you aren't building a GitHub App, you might be interested in the Statuses API.
To use the check runs API, the GitHub App must have the checks:write
permission and can also subscribe to the check_run webhook.
-
-Check runs and requested actions
-When you set up a check run with requested actions (not to be confused with GitHub Actions), you can display a button in the pull request view on GitHub that allows people to request your GitHub App to perform additional tasks.
-For example, a code linting app could use requested actions to display a button in a pull request to automatically fix detected syntax errors.
-To create a button that can request additional actions from your app, use the actions
object when you Create a check run. For example, the actions
object below displays a button in a pull request with the label "Fix this." The button appears after the check run completes.
- "actions": [{
- "label": "Fix this",
- "description": "Let us fix that for you",
- "identifier": "fix_errors"
- }]
-
-![Check run requested action button](https://github-images.s3.amazonaws.com/enterprise/developer-site/2.15/assets/images/github-apps/github_apps_checks_fix_this_button.png)
-When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. When your app receives a check_run.requested_action
webhook event, it can look for the requested_action.identifier
key in the webhook payload to determine which button was clicked and perform the requested task.
-For a detailed example of how to set up requested actions with the Checks API, see "Creating CI tests with the Checks API."
Create a check run
@@ -369,11 +355,10 @@
actions |
array of objects |
-Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action webhook to your app. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
+Possible further actions the integrator can perform, which a user may trigger. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
-To learn more about check runs and requested actions, see "Check runs and requested actions."
output
object
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
diff --git a/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/update-a-check-run.html b/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/update-a-check-run.html
index 14ea5f9b05..2cd726d218 100644
--- a/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/update-a-check-run.html
+++ b/cache/ghe-2.15/enterprise/2.15/v3/checks/runs/update-a-check-run.html
@@ -210,7 +210,6 @@
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
diff --git a/cache/ghe-2.15/enterprise/2.15/v3/search/index.html b/cache/ghe-2.15/enterprise/2.15/v3/search/index.html
index 9a5742e094..0c0966013d 100644
--- a/cache/ghe-2.15/enterprise/2.15/v3/search/index.html
+++ b/cache/ghe-2.15/enterprise/2.15/v3/search/index.html
@@ -269,7 +269,7 @@
Text match metadata
The Search API helps you search for the specific item you want to find. For example, you can find a user or a specific file in a repository. Think of it the way you think of performing a search on Google. It's designed to help you find the one result you're looking for (or maybe the few results you're looking for). Just like searching on Google, you sometimes want to see a few pages of search results so that you can find the item that best meets your needs. To satisfy that need, the GitHub Enterprise Search API provides up to 1,000 results for each search.
-You can narrow your search using queries. To learn more about the search query syntax, see "Constructing a search query."
+You can narrow your search using queries, also known as search qualifiers or query parameters. If only some search queries are successful, then you will see a partially successful response with an empty list for unsuccessful queries.
Ranking search results
Unless another sort option is provided as a query parameter, results are sorted
@@ -304,12 +304,34 @@
quantities, dates, or to exclude results, see "Understanding the search syntax."
Limitations on query length
-
The Search API does not support queries that:
-
-- are longer than 256 characters (not including operators or qualifiers).
-- have more than five
AND
, OR
, or NOT
operators.
-
-These search queries will return a "Validation failed" error message.
+The Search API does not support queries that are longer than 256 characters (not including operators or qualifiers) and will return an error.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "The search is longer than 256 characters.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
+Also, a query using more than five AND
, OR
, or NOT
operators will return an error.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "More than five AND / OR / NOT operators were used.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
Timeouts and incomplete results
To keep the Search API fast for everyone, we limit how long any individual query
@@ -319,10 +341,21 @@
Reaching a timeout does not necessarily mean that search results are incomplete.
More results might have been found, but also might not.
-Access errors or missing search results
-You need to successfully authenticate and have access to the repositories in your search queries, otherwise, you'll see a 422 Unprocessible Entry
error with a "Validation Failed" message. For example, your search will fail if your query includes repo:
, user:
, or org:
qualifiers that request resources that you don't have access to when you sign in on GitHub.
-When your search query requests multiple resources, the response will only contain the resources that you have access to and will not provide an error message listing the resources that were not returned.
-For example, if your search query searches for the octocat/test
and codertocat/test
repositories, but you only have access to octocat/test
, your response will show search results for octocat/test
and nothing for codertocat/test
. This behavior mimics how search works on GitHub.
+Permissions failure or an empty list
+You need to successfully authenticate and have access to the repositories in your search queries, otherwise, you'll see a 422 Unprocessible Entry
error. For example, your search will fail if your query includes repo:
or user:
or org:
qualifiers and doesn't match the resources that you have access to when you sign in on GitHub.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
Search repositories
diff --git a/cache/ghe-2.16/enterprise/2.16/v3/activity/events/types/checkrunevent.html b/cache/ghe-2.16/enterprise/2.16/v3/activity/events/types/checkrunevent.html
index 40319499d3..e1a3a95318 100644
--- a/cache/ghe-2.16/enterprise/2.16/v3/activity/events/types/checkrunevent.html
+++ b/cache/ghe-2.16/enterprise/2.16/v3/activity/events/types/checkrunevent.html
@@ -20,7 +20,7 @@
action |
string |
-The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. To learn more about check runs and requested actions, see "Check runs and requested actions." |
+The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. See Request further actions from a check run for details. |
check_run |
diff --git a/cache/ghe-2.16/enterprise/2.16/v3/activity/events/types/index.html b/cache/ghe-2.16/enterprise/2.16/v3/activity/events/types/index.html
index 15795cb987..ab15e690db 100644
--- a/cache/ghe-2.16/enterprise/2.16/v3/activity/events/types/index.html
+++ b/cache/ghe-2.16/enterprise/2.16/v3/activity/events/types/index.html
@@ -326,7 +326,7 @@
action |
string |
-The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. To learn more about check runs and requested actions, see "Check runs and requested actions." |
+The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. See Request further actions from a check run for details. |
check_run |
diff --git a/cache/ghe-2.16/enterprise/2.16/v3/checks/index.html b/cache/ghe-2.16/enterprise/2.16/v3/checks/index.html
index 723c9208f0..f5b70c4235 100644
--- a/cache/ghe-2.16/enterprise/2.16/v3/checks/index.html
+++ b/cache/ghe-2.16/enterprise/2.16/v3/checks/index.html
@@ -347,7 +347,6 @@
-
For an example of how to use the Checks API with a GitHub App, see "Creating CI tests with the Checks API."
diff --git a/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/create-a-check-run.html b/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/create-a-check-run.html
index 98fd187d81..54b6fca00a 100644
--- a/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/create-a-check-run.html
+++ b/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/create-a-check-run.html
@@ -79,11 +79,10 @@
actions |
array of objects |
-Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action webhook to your app. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
+Possible further actions the integrator can perform, which a user may trigger. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
-To learn more about check runs and requested actions, see "Check runs and requested actions."
output
object
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
diff --git a/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/index.html b/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/index.html
index 8c2ed3290c..3d49d4e552 100644
--- a/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/index.html
+++ b/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/index.html
@@ -274,20 +274,6 @@
A check can also be manually re-run in the GitHub UI. See "About status checks" for more details. When this occurs, the GitHub App that created the check run will receive the check_run
webhook requesting a new check run. If you create a check run without creating a check suite, GitHub creates the check suite for you automatically.
Write permission for the Checks API is only available to GitHub Apps. OAuth Apps and authenticated users can view check runs and check suites, but they are not able to create them. If you aren't building a GitHub App, you might be interested in the Statuses API.
To use the check runs API, the GitHub App must have the checks:write
permission and can also subscribe to the check_run webhook.
-
-Check runs and requested actions
-When you set up a check run with requested actions (not to be confused with GitHub Actions), you can display a button in the pull request view on GitHub that allows people to request your GitHub App to perform additional tasks.
-For example, a code linting app could use requested actions to display a button in a pull request to automatically fix detected syntax errors.
-To create a button that can request additional actions from your app, use the actions
object when you Create a check run. For example, the actions
object below displays a button in a pull request with the label "Fix this." The button appears after the check run completes.
- "actions": [{
- "label": "Fix this",
- "description": "Let us fix that for you",
- "identifier": "fix_errors"
- }]
-
-![Check run requested action button](https://github-images.s3.amazonaws.com/enterprise/developer-site/2.16/assets/images/github-apps/github_apps_checks_fix_this_button.png)
-When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. When your app receives a check_run.requested_action
webhook event, it can look for the requested_action.identifier
key in the webhook payload to determine which button was clicked and perform the requested task.
-For a detailed example of how to set up requested actions with the Checks API, see "Creating CI tests with the Checks API."
Create a check run
@@ -369,11 +355,10 @@
actions |
array of objects |
-Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action webhook to your app. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
+Possible further actions the integrator can perform, which a user may trigger. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
-To learn more about check runs and requested actions, see "Check runs and requested actions."
output
object
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
diff --git a/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/update-a-check-run.html b/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/update-a-check-run.html
index 90aec105ac..1e9dc63da1 100644
--- a/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/update-a-check-run.html
+++ b/cache/ghe-2.16/enterprise/2.16/v3/checks/runs/update-a-check-run.html
@@ -210,7 +210,6 @@
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
diff --git a/cache/ghe-2.16/enterprise/2.16/v3/search/index.html b/cache/ghe-2.16/enterprise/2.16/v3/search/index.html
index ffe1e52bd7..6d80e41d29 100644
--- a/cache/ghe-2.16/enterprise/2.16/v3/search/index.html
+++ b/cache/ghe-2.16/enterprise/2.16/v3/search/index.html
@@ -269,7 +269,7 @@
Text match metadata
The Search API helps you search for the specific item you want to find. For example, you can find a user or a specific file in a repository. Think of it the way you think of performing a search on Google. It's designed to help you find the one result you're looking for (or maybe the few results you're looking for). Just like searching on Google, you sometimes want to see a few pages of search results so that you can find the item that best meets your needs. To satisfy that need, the GitHub Enterprise Server Search API provides up to 1,000 results for each search.
-You can narrow your search using queries. To learn more about the search query syntax, see "Constructing a search query."
+You can narrow your search using queries, also known as search qualifiers or query parameters. If only some search queries are successful, then you will see a partially successful response with an empty list for unsuccessful queries.
Ranking search results
Unless another sort option is provided as a query parameter, results are sorted
@@ -304,12 +304,34 @@
quantities, dates, or to exclude results, see "Understanding the search syntax."
Limitations on query length
-
The Search API does not support queries that:
-
-- are longer than 256 characters (not including operators or qualifiers).
-- have more than five
AND
, OR
, or NOT
operators.
-
-These search queries will return a "Validation failed" error message.
+The Search API does not support queries that are longer than 256 characters (not including operators or qualifiers) and will return an error.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "The search is longer than 256 characters.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
+Also, a query using more than five AND
, OR
, or NOT
operators will return an error.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "More than five AND / OR / NOT operators were used.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
Timeouts and incomplete results
To keep the Search API fast for everyone, we limit how long any individual query
@@ -319,10 +341,21 @@
Reaching a timeout does not necessarily mean that search results are incomplete.
More results might have been found, but also might not.
-Access errors or missing search results
-You need to successfully authenticate and have access to the repositories in your search queries, otherwise, you'll see a 422 Unprocessible Entry
error with a "Validation Failed" message. For example, your search will fail if your query includes repo:
, user:
, or org:
qualifiers that request resources that you don't have access to when you sign in on GitHub.
-When your search query requests multiple resources, the response will only contain the resources that you have access to and will not provide an error message listing the resources that were not returned.
-For example, if your search query searches for the octocat/test
and codertocat/test
repositories, but you only have access to octocat/test
, your response will show search results for octocat/test
and nothing for codertocat/test
. This behavior mimics how search works on GitHub.
+Permissions failure or an empty list
+You need to successfully authenticate and have access to the repositories in your search queries, otherwise, you'll see a 422 Unprocessible Entry
error. For example, your search will fail if your query includes repo:
or user:
or org:
qualifiers and doesn't match the resources that you have access to when you sign in on GitHub.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
Search repositories
diff --git a/cache/ghe-2.17/enterprise/2.17/v3/activity/events/types/checkrunevent.html b/cache/ghe-2.17/enterprise/2.17/v3/activity/events/types/checkrunevent.html
index dba8a2a080..13bdf353f7 100644
--- a/cache/ghe-2.17/enterprise/2.17/v3/activity/events/types/checkrunevent.html
+++ b/cache/ghe-2.17/enterprise/2.17/v3/activity/events/types/checkrunevent.html
@@ -20,7 +20,7 @@
action |
string |
-The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. To learn more about check runs and requested actions, see "Check runs and requested actions." |
+The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. See Request further actions from a check run for details. |
check_run |
diff --git a/cache/ghe-2.17/enterprise/2.17/v3/activity/events/types/index.html b/cache/ghe-2.17/enterprise/2.17/v3/activity/events/types/index.html
index 3257e08a8f..00aa9dad0b 100644
--- a/cache/ghe-2.17/enterprise/2.17/v3/activity/events/types/index.html
+++ b/cache/ghe-2.17/enterprise/2.17/v3/activity/events/types/index.html
@@ -326,7 +326,7 @@
action |
string |
-The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. To learn more about check runs and requested actions, see "Check runs and requested actions." |
+The action performed. Can be one of: * created - A new check run was created. * completed - The status of the check run is completed . * rerequested - Someone requested to re-run your check run. * requested_action - Someone requested that an action be taken. For example, this action will be sent if someone clicks a "Fix it" button in the UI. See Request further actions from a check run for details. |
check_run |
diff --git a/cache/ghe-2.17/enterprise/2.17/v3/checks/index.html b/cache/ghe-2.17/enterprise/2.17/v3/checks/index.html
index 33d731b28a..05d203134c 100644
--- a/cache/ghe-2.17/enterprise/2.17/v3/checks/index.html
+++ b/cache/ghe-2.17/enterprise/2.17/v3/checks/index.html
@@ -347,7 +347,6 @@
-
For an example of how to use the Checks API with a GitHub App, see "Creating CI tests with the Checks API."
diff --git a/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/create-a-check-run.html b/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/create-a-check-run.html
index 505ee193cc..4e932d48b4 100644
--- a/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/create-a-check-run.html
+++ b/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/create-a-check-run.html
@@ -79,11 +79,10 @@
actions |
array of objects |
-Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action webhook to your app. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
+Possible further actions the integrator can perform, which a user may trigger. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
-To learn more about check runs and requested actions, see "Check runs and requested actions."
output
object
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
diff --git a/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/index.html b/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/index.html
index 5601374ee3..757dfe4395 100644
--- a/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/index.html
+++ b/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/index.html
@@ -274,20 +274,6 @@
A check can also be manually re-run in the GitHub UI. See "About status checks" for more details. When this occurs, the GitHub App that created the check run will receive the check_run
webhook requesting a new check run. If you create a check run without creating a check suite, GitHub creates the check suite for you automatically.
Write permission for the Checks API is only available to GitHub Apps. OAuth Apps and authenticated users can view check runs and check suites, but they are not able to create them. If you aren't building a GitHub App, you might be interested in the Statuses API.
To use the check runs API, the GitHub App must have the checks:write
permission and can also subscribe to the check_run webhook.
-
-Check runs and requested actions
-When you set up a check run with requested actions (not to be confused with GitHub Actions), you can display a button in the pull request view on GitHub that allows people to request your GitHub App to perform additional tasks.
-For example, a code linting app could use requested actions to display a button in a pull request to automatically fix detected syntax errors.
-To create a button that can request additional actions from your app, use the actions
object when you Create a check run. For example, the actions
object below displays a button in a pull request with the label "Fix this." The button appears after the check run completes.
- "actions": [{
- "label": "Fix this",
- "description": "Let us fix that for you",
- "identifier": "fix_errors"
- }]
-
-![Check run requested action button](https://github-images.s3.amazonaws.com/enterprise/developer-site/2.17/assets/images/github-apps/github_apps_checks_fix_this_button.png)
-When a user clicks the button, GitHub sends the check_run.requested_action
webhook to your app. When your app receives a check_run.requested_action
webhook event, it can look for the requested_action.identifier
key in the webhook payload to determine which button was clicked and perform the requested task.
-For a detailed example of how to set up requested actions with the Checks API, see "Creating CI tests with the Checks API."
Create a check run
@@ -369,11 +355,10 @@
actions |
array of objects |
-Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the check_run.requested_action webhook to your app. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
+Possible further actions the integrator can perform, which a user may trigger. Each action includes a label , identifier and description . A maximum of three actions are accepted. See the actions object description. |
-To learn more about check runs and requested actions, see "Check runs and requested actions."
output
object
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
diff --git a/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/update-a-check-run.html b/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/update-a-check-run.html
index a481c36883..f00869c55a 100644
--- a/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/update-a-check-run.html
+++ b/cache/ghe-2.17/enterprise/2.17/v3/checks/runs/update-a-check-run.html
@@ -210,7 +210,6 @@
actions
object
-To learn more about check runs and requested actions, see "Check runs and requested actions."
diff --git a/cache/ghe-2.17/enterprise/2.17/v3/search/index.html b/cache/ghe-2.17/enterprise/2.17/v3/search/index.html
index 2c52a692eb..e0e4acf88f 100644
--- a/cache/ghe-2.17/enterprise/2.17/v3/search/index.html
+++ b/cache/ghe-2.17/enterprise/2.17/v3/search/index.html
@@ -269,7 +269,7 @@
Text match metadata
The Search API helps you search for the specific item you want to find. For example, you can find a user or a specific file in a repository. Think of it the way you think of performing a search on Google. It's designed to help you find the one result you're looking for (or maybe the few results you're looking for). Just like searching on Google, you sometimes want to see a few pages of search results so that you can find the item that best meets your needs. To satisfy that need, the GitHub Enterprise Server Search API provides up to 1,000 results for each search.
-You can narrow your search using queries. To learn more about the search query syntax, see "Constructing a search query."
+You can narrow your search using queries, also known as search qualifiers or query parameters. If only some search queries are successful, then you will see a partially successful response with an empty list for unsuccessful queries.
Ranking search results
Unless another sort option is provided as a query parameter, results are sorted
@@ -304,12 +304,34 @@
quantities, dates, or to exclude results, see "Understanding the search syntax."
Limitations on query length
-
The Search API does not support queries that:
-
-- are longer than 256 characters (not including operators or qualifiers).
-- have more than five
AND
, OR
, or NOT
operators.
-
-These search queries will return a "Validation failed" error message.
+The Search API does not support queries that are longer than 256 characters (not including operators or qualifiers) and will return an error.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "The search is longer than 256 characters.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
+Also, a query using more than five AND
, OR
, or NOT
operators will return an error.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "More than five AND / OR / NOT operators were used.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
Timeouts and incomplete results
To keep the Search API fast for everyone, we limit how long any individual query
@@ -319,10 +341,21 @@
Reaching a timeout does not necessarily mean that search results are incomplete.
More results might have been found, but also might not.
-Access errors or missing search results
-You need to successfully authenticate and have access to the repositories in your search queries, otherwise, you'll see a 422 Unprocessible Entry
error with a "Validation Failed" message. For example, your search will fail if your query includes repo:
, user:
, or org:
qualifiers that request resources that you don't have access to when you sign in on GitHub.
-When your search query requests multiple resources, the response will only contain the resources that you have access to and will not provide an error message listing the resources that were not returned.
-For example, if your search query searches for the octocat/test
and codertocat/test
repositories, but you only have access to octocat/test
, your response will show search results for octocat/test
and nothing for codertocat/test
. This behavior mimics how search works on GitHub.
+Permissions failure or an empty list
+You need to successfully authenticate and have access to the repositories in your search queries, otherwise, you'll see a 422 Unprocessible Entry
error. For example, your search will fail if your query includes repo:
or user:
or org:
qualifiers and doesn't match the resources that you have access to when you sign in on GitHub.
+{
+ "message": "Validation Failed",
+ "errors": [
+ {
+ "message": "The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.",
+ "resource": "Search",
+ "field": "q",
+ "code": "invalid"
+ }
+ ],
+ "documentation_url": "https://developer.github.com/v3/search/"
+}
+
Search repositories
diff --git a/lib/check-or-update-routes.js b/lib/check-or-update-routes.js
index 7f11f7a2e2..66c5bc3670 100644
--- a/lib/check-or-update-routes.js
+++ b/lib/check-or-update-routes.js
@@ -1,6 +1,6 @@
module.exports = checkOrUpdateRoutes
-const { resolve: pathResolve, join: joinPaths } = require('path')
+const { resolve: pathResolve } = require('path')
const { resolve: urlResolve } = require('url')
const _ = require('lodash')
@@ -274,13 +274,8 @@ async function checkOrUpdateRoutes (options) {
console.log('')
console.log('🏁 done')
- const mainSchemaFileRelativePathSegments = [ '../openapi' ]
- if (state.gheVersion) {
- mainSchemaFileRelativePathSegments.push(`ghe-${state.gheVersion}`)
- }
- const mainSchemaFileRelativePath = joinPaths(...mainSchemaFileRelativePathSegments)
- const mainSchema = require(mainSchemaFileRelativePath)
- const mainSchemaFilePath = require.resolve(mainSchemaFileRelativePath)
+ const mainSchema = require('../openApi')
+ const mainSchemaFilePath = require.resolve('../openApi')
allEndpoints.forEach(async endpoint => {
// do not create operations files for endpoints that had a name change
if (endpoint.deprecated && endpoint.deprecated.before) {
diff --git a/lib/endpoint/find-parameters.js b/lib/endpoint/find-parameters.js
index 692367ff9a..899f11c970 100644
--- a/lib/endpoint/find-parameters.js
+++ b/lib/endpoint/find-parameters.js
@@ -39,6 +39,7 @@ function findParameters (state) {
addPaginationParameters(state)
findInputExamples(state)
makeRelativeLinksAbsolute(state)
+ replaceTimeNowDefault(state)
addLocation(state)
mapToInput(state)
@@ -183,15 +184,12 @@ function findInBlocks (state) {
// "The xyz parameter takes the following keys"
// extend params with "." | "" | ""
// In some cases multiple params need to be extended, see #271
- let prevBlockIndex = parametersBlockIndex - 1
- let prevBlock = state.blocks[prevBlockIndex]
- let descriptionBlock
+ let prevBlock = state.blocks[parametersBlockIndex - 1]
// sometimes the sub parameters their own description, e.g.
// https://developer.github.com/v3/checks/runs/#actions-object
if (!prevBlock.text.match(/`([^`]+)`/g)) {
- descriptionBlock = prevBlock
- prevBlock = state.blocks[--prevBlockIndex]
+ prevBlock = state.blocks[parametersBlockIndex - 2]
}
const parameterNames = prevBlock.text
@@ -229,15 +227,9 @@ function findInBlocks (state) {
})
// remove parameters block and description block above
- const blockLength = parametersBlockIndex - prevBlockIndex
- state.blocks.splice(prevBlockIndex, blockLength)
+ state.blocks.splice(parametersBlockIndex - 1, 2)
state.results.forEach(result => {
- if (descriptionBlock) {
- const parameterName = parameterNames[0]
- const param = params.filter((param) => param.name === parameterName)[0]
- param.description = `${param.description} ${descriptionBlock.text}`
- }
result.params = params
})
})
@@ -286,6 +278,17 @@ function makeRelativeLinksAbsolute (state) {
return state
}
+// fixing Time.now
+function replaceTimeNowDefault (state) {
+ state.results.forEach(output => {
+ output.params.forEach(result => {
+ if (result.default === 'Time.now') {
+ result.default = ''
+ }
+ })
+ })
+}
+
// parameters can be sent in 4 different locations
// 1. URL (when path contains ":")
// 2. Query parameter (GET or HEAD)
diff --git a/lib/endpoint/tags/table.js b/lib/endpoint/tags/table.js
index a2e64ec056..dbe1a384b5 100644
--- a/lib/endpoint/tags/table.js
+++ b/lib/endpoint/tags/table.js
@@ -5,8 +5,7 @@ const markdownTable = require('markdown-table')
const turndown = require('../../turndown')
const REQUIRED_REGEXP = /^\*\*Required(\*\*\.|\.\*\*) /
-const HAS_UNCONDITIONAL_DEFAULT_REGEXP = /\bDefault: `(?!Time\.now`)\S+`\.?\s*(?:\n.*|\*\*Note:?\*\*.*)?$/
-const CAN_BE_ONE_OF_REGEXP = /(can be|one of|possible values are|include:|valid values are|options are|either|by number of|determines whether the first search result returned is the highest number of matches|sorts the results of your query by)/i
+const CAN_BE_ONE_OF_REGEXP = /(can be|one of|possible values are|include:|valid values are|either|by number of|determines whether the first search result returned is the highest number of matches|sorts the results of your query by)/i
const NOT_COMMA_SEPARATED_REGEXP = /comma-separated list of values/i
const ALLOW_NULL_REGEXP = /\b(set to|or) `null`/i
@@ -93,11 +92,11 @@ function rowToParameter (i, el) {
}
const text = turndown(cheerio(el).html().trim())
- const hasUnconditionalDefault = HAS_UNCONDITIONAL_DEFAULT_REGEXP.test(text)
+ const hasDefault = /\bDefault: /.test(text)
let description = turndown(cheerio(el).html())
let defaultValue
- if (hasUnconditionalDefault) {
+ if (hasDefault) {
let [, _defaultValue, afterDefaultDescription = ''] = text.match(/\bDefault: `([^`]+)`\.?\s*(.*)/) || []
defaultValue = _defaultValue || (text.match(/\bDefault: (.*)$/) || []).pop()
@@ -155,7 +154,13 @@ function rowToParameter (i, el) {
const allowNull = ALLOW_NULL_REGEXP.test(description)
- description = replaceTimeNowDefault(description)
+ // Sometimes a default value is a description, for example when the default depends
+ // on values of other parameters. In that case we add it back to the description, but
+ // only after we looked for enum values.
+ if (/\.$/.test(defaultValue)) {
+ description += ` Default: ${defaultValue}`
+ defaultValue = undefined
+ }
return {
description,
@@ -298,7 +303,3 @@ function toData ($table) {
return markdownTable(data)
}
-
-function replaceTimeNowDefault (description) {
- return description.replace('Default: `Time.now`', 'Default: current date/time')
-}
diff --git a/openapi/ghe-2.14/index.json b/openapi/ghe-2.14/index.json
deleted file mode 100644
index df4011aec9..0000000000
--- a/openapi/ghe-2.14/index.json
+++ /dev/null
@@ -1,2109 +0,0 @@
-{
- "openapi": "3.0.2",
- "info": {
- "version": "3.0.0",
- "title": "GitHub Enterprise REST API v3",
- "description": "This describes the resources that make up the official GitHub Enterprise Server REST API v3. If you have any problems or requests, please contact [GitHub Enterprise Support](https://enterprise.github.com/support).",
- "license": {
- "name": "GitHub Enterprise License Agreement",
- "url": "https://enterprise.github.com/license"
- },
- "termsOfService": "https://help.github.com/en/articles/github-terms-of-service"
- },
- "servers": [
- {
- "url": "http://{hostname}",
- "variables": {
- "hostname": {
- "description": "Self-hosted Enterprise Server or Enterprise Cloud hostname",
- "default": "HOSTNAME"
- }
- }
- }
- ],
- "externalDocs": {
- "description": "GitHub Enterprise Developer Docs",
- "url": "https://developer.github.com/enterprise/2.14/v3/"
- },
- "paths": {
- "/admin/hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-global-hooks.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-global-hook.json"
- }
- },
- "/admin/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-global-hook.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-global-hook.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-global-hook.json"
- }
- },
- "/admin/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/enterprise-admin/ping-global-hook.json"
- }
- },
- "/admin/keys/{key_ids}": {
- "delete": {
- "$ref": "operations/enterprise-admin/delete-public-key.json"
- }
- },
- "/admin/ldap/teams/{team_id}/mapping": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-ldap-mapping-for-team.json"
- }
- },
- "/admin/ldap/teams/{team_id}/sync": {
- "post": {
- "$ref": "operations/enterprise-admin/sync-ldap-mapping-for-team.json"
- }
- },
- "/admin/ldap/users/{username}/mapping": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-ldap-mapping-for-user.json"
- }
- },
- "/admin/ldap/users/{username}/sync": {
- "post": {
- "$ref": "operations/enterprise-admin/sync-ldap-mapping-for-user.json"
- }
- },
- "/admin/organizations": {
- "post": {
- "$ref": "operations/enterprise-admin/create-org.json"
- }
- },
- "/admin/organizations/{org}": {
- "patch": {
- "$ref": "operations/enterprise-admin/rename-org.json"
- }
- },
- "/admin/pre-receive-environments": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-environments.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-pre-receive-environment.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-environment.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-environment.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-pre-receive-environment.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads": {
- "post": {
- "$ref": "operations/enterprise-admin/trigger-pre-receive-environment-download.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-environment-download-status.json"
- }
- },
- "/admin/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-pre-receive-hook.json"
- }
- },
- "/admin/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook.json"
- }
- },
- "/admin/pre_receive_hooks/{pre_receive_hook_id}": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-pre-receive-hook.json"
- }
- },
- "/admin/users": {
- "post": {
- "$ref": "operations/enterprise-admin/create-user.json"
- }
- },
- "/admin/users/{username}": {
- "patch": {
- "$ref": "operations/enterprise-admin/rename-user.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-user.json"
- }
- },
- "/admin/users/{username}/authorizations": {
- "post": {
- "$ref": "operations/enterprise-admin/create-impersonation-o-auth-token.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-impersonation-o-auth-token.json"
- }
- },
- "/app": {
- "get": {
- "$ref": "operations/apps/get-authenticated.json"
- }
- },
- "/app/installations": {
- "get": {
- "$ref": "operations/apps/list-installations.json"
- }
- },
- "/app/installations/{installation_id}": {
- "get": {
- "$ref": "operations/apps/get-installation.json"
- }
- },
- "/applications/grants": {
- "get": {
- "$ref": "operations/oauth_authorizations/list-grants.json"
- }
- },
- "/applications/grants/{grant_id}": {
- "get": {
- "$ref": "operations/oauth_authorizations/get-grant.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/delete-grant.json"
- }
- },
- "/applications/{client_id}/grants/{access_token}": {
- "delete": {
- "$ref": "operations/oauth_authorizations/revoke-grant-for-application.json"
- }
- },
- "/applications/{client_id}/tokens/{access_token}": {
- "get": {
- "$ref": "operations/oauth_authorizations/check-authorization.json"
- },
- "post": {
- "$ref": "operations/oauth_authorizations/reset-authorization.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/revoke-authorization-for-application.json"
- }
- },
- "/apps/{app_slug}": {
- "get": {
- "$ref": "operations/apps/get-by-slug.json"
- }
- },
- "/authorizations": {
- "get": {
- "$ref": "operations/oauth_authorizations/list-authorizations.json"
- },
- "post": {
- "$ref": "operations/oauth_authorizations/create-authorization.json"
- }
- },
- "/authorizations/clients/{client_id}": {
- "put": {
- "$ref": "operations/oauth_authorizations/get-or-create-authorization-for-app.json"
- }
- },
- "/authorizations/clients/{client_id}/{fingerprint}": {
- "put": {
- "$ref": "operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json"
- }
- },
- "/authorizations/{authorization_id}": {
- "get": {
- "$ref": "operations/oauth_authorizations/get-authorization.json"
- },
- "patch": {
- "$ref": "operations/oauth_authorizations/update-authorization.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/delete-authorization.json"
- }
- },
- "/codes_of_conduct": {
- "get": {
- "$ref": "operations/codes_of_conduct/list-conduct-codes.json"
- }
- },
- "/codes_of_conduct/{key}": {
- "get": {
- "$ref": "operations/codes_of_conduct/get-conduct-code.json"
- }
- },
- "/emojis": {
- "get": {
- "$ref": "operations/emojis/get.json"
- }
- },
- "/enterprise/settings/license": {
- "get": {
- "$ref": "operations/enterprise-admin/get-license-information.json"
- }
- },
- "/enterprise/stats/{type}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-type-stats.json"
- }
- },
- "/events": {
- "get": {
- "$ref": "operations/activity/list-public-events.json"
- }
- },
- "/feeds": {
- "get": {
- "$ref": "operations/activity/list-feeds.json"
- }
- },
- "/gists": {
- "get": {
- "$ref": "operations/gists/list.json"
- },
- "post": {
- "$ref": "operations/gists/create.json"
- }
- },
- "/gists/public": {
- "get": {
- "$ref": "operations/gists/list-public.json"
- }
- },
- "/gists/starred": {
- "get": {
- "$ref": "operations/gists/list-starred.json"
- }
- },
- "/gists/{gist_id}": {
- "get": {
- "$ref": "operations/gists/get.json"
- },
- "patch": {
- "$ref": "operations/gists/update.json"
- },
- "delete": {
- "$ref": "operations/gists/delete.json"
- }
- },
- "/gists/{gist_id}/comments": {
- "get": {
- "$ref": "operations/gists/list-comments.json"
- },
- "post": {
- "$ref": "operations/gists/create-comment.json"
- }
- },
- "/gists/{gist_id}/comments/{comment_id}": {
- "get": {
- "$ref": "operations/gists/get-comment.json"
- },
- "patch": {
- "$ref": "operations/gists/update-comment.json"
- },
- "delete": {
- "$ref": "operations/gists/delete-comment.json"
- }
- },
- "/gists/{gist_id}/commits": {
- "get": {
- "$ref": "operations/gists/list-commits.json"
- }
- },
- "/gists/{gist_id}/forks": {
- "post": {
- "$ref": "operations/gists/fork.json"
- },
- "get": {
- "$ref": "operations/gists/list-forks.json"
- }
- },
- "/gists/{gist_id}/star": {
- "put": {
- "$ref": "operations/gists/star.json"
- },
- "delete": {
- "$ref": "operations/gists/unstar.json"
- },
- "get": {
- "$ref": "operations/gists/check-is-starred.json"
- }
- },
- "/gists/{gist_id}/{sha}": {
- "get": {
- "$ref": "operations/gists/get-revision.json"
- }
- },
- "/gitignore/templates": {
- "get": {
- "$ref": "operations/gitignore/list-templates.json"
- }
- },
- "/gitignore/templates/{name}": {
- "get": {
- "$ref": "operations/gitignore/get-template.json"
- }
- },
- "/installation/repositories": {
- "get": {
- "$ref": "operations/apps/list-repos.json"
- }
- },
- "/installations/{installation_id}/access_tokens": {
- "post": {
- "$ref": "operations/apps/create-installation-token.json"
- }
- },
- "/issues": {
- "get": {
- "$ref": "operations/issues/list.json"
- }
- },
- "/legacy/issues/search/{owner}/{repository}/{state}/{keyword}": {
- "get": {
- "$ref": "operations/search/issues-legacy.json"
- }
- },
- "/legacy/repos/search/{keyword}": {
- "get": {
- "$ref": "operations/search/repos-legacy.json"
- }
- },
- "/legacy/user/email/{email}": {
- "get": {
- "$ref": "operations/search/email-legacy.json"
- }
- },
- "/legacy/user/search/{keyword}": {
- "get": {
- "$ref": "operations/search/users-legacy.json"
- }
- },
- "/licenses": {
- "get": {
- "$ref": "operations/licenses/list-commonly-used.json"
- }
- },
- "/licenses/{license}": {
- "get": {
- "$ref": "operations/licenses/get.json"
- }
- },
- "/markdown": {
- "post": {
- "$ref": "operations/markdown/render.json"
- }
- },
- "/markdown/raw": {
- "post": {
- "$ref": "operations/markdown/render-raw.json"
- }
- },
- "/meta": {
- "get": {
- "$ref": "operations/meta/get.json"
- }
- },
- "/networks/{owner}/{repo}/events": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-repo-network.json"
- }
- },
- "/notifications": {
- "get": {
- "$ref": "operations/activity/list-notifications.json"
- },
- "put": {
- "$ref": "operations/activity/mark-as-read.json"
- }
- },
- "/notifications/threads/{thread_id}": {
- "get": {
- "$ref": "operations/activity/get-thread.json"
- },
- "patch": {
- "$ref": "operations/activity/mark-thread-as-read.json"
- }
- },
- "/notifications/threads/{thread_id}/subscription": {
- "get": {
- "$ref": "operations/activity/get-thread-subscription.json"
- },
- "put": {
- "$ref": "operations/activity/set-thread-subscription.json"
- },
- "delete": {
- "$ref": "operations/activity/delete-thread-subscription.json"
- }
- },
- "/organizations": {
- "get": {
- "$ref": "operations/orgs/list.json"
- }
- },
- "/orgs/{org}": {
- "get": {
- "$ref": "operations/orgs/get.json"
- },
- "patch": {
- "$ref": "operations/orgs/update.json"
- }
- },
- "/orgs/{org}/events": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-org.json"
- }
- },
- "/orgs/{org}/hooks": {
- "get": {
- "$ref": "operations/orgs/list-hooks.json"
- },
- "post": {
- "$ref": "operations/orgs/create-hook.json"
- }
- },
- "/orgs/{org}/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/orgs/get-hook.json"
- },
- "patch": {
- "$ref": "operations/orgs/update-hook.json"
- },
- "delete": {
- "$ref": "operations/orgs/delete-hook.json"
- }
- },
- "/orgs/{org}/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/orgs/ping-hook.json"
- }
- },
- "/orgs/{org}/installation": {
- "get": {
- "$ref": "operations/apps/get-org-installation.json"
- }
- },
- "/orgs/{org}/issues": {
- "get": {
- "$ref": "operations/issues/list-for-org.json"
- }
- },
- "/orgs/{org}/members": {
- "get": {
- "$ref": "operations/orgs/list-members.json"
- }
- },
- "/orgs/{org}/members/{username}": {
- "get": {
- "$ref": "operations/orgs/check-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/remove-member.json"
- }
- },
- "/orgs/{org}/memberships/{username}": {
- "get": {
- "$ref": "operations/orgs/get-membership.json"
- },
- "put": {
- "$ref": "operations/orgs/add-or-update-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/remove-membership.json"
- }
- },
- "/orgs/{org}/outside_collaborators": {
- "get": {
- "$ref": "operations/orgs/list-outside-collaborators.json"
- }
- },
- "/orgs/{org}/outside_collaborators/{username}": {
- "delete": {
- "$ref": "operations/orgs/remove-outside-collaborator.json"
- },
- "put": {
- "$ref": "operations/orgs/convert-member-to-outside-collaborator.json"
- }
- },
- "/orgs/{org}/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks-for-org.json"
- }
- },
- "/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook-for-org.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json"
- }
- },
- "/orgs/{org}/projects": {
- "get": {
- "$ref": "operations/projects/list-for-org.json"
- },
- "post": {
- "$ref": "operations/projects/create-for-org.json"
- }
- },
- "/orgs/{org}/public_members": {
- "get": {
- "$ref": "operations/orgs/list-public-members.json"
- }
- },
- "/orgs/{org}/public_members/{username}": {
- "get": {
- "$ref": "operations/orgs/check-public-membership.json"
- },
- "put": {
- "$ref": "operations/orgs/publicize-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/conceal-membership.json"
- }
- },
- "/orgs/{org}/repos": {
- "get": {
- "$ref": "operations/repos/list-for-org.json"
- },
- "post": {
- "$ref": "operations/repos/create-in-org.json"
- }
- },
- "/orgs/{org}/teams": {
- "get": {
- "$ref": "operations/teams/list.json"
- },
- "post": {
- "$ref": "operations/teams/create.json"
- }
- },
- "/projects/columns/cards/{card_id}": {
- "get": {
- "$ref": "operations/projects/get-card.json"
- },
- "patch": {
- "$ref": "operations/projects/update-card.json"
- },
- "delete": {
- "$ref": "operations/projects/delete-card.json"
- }
- },
- "/projects/columns/cards/{card_id}/moves": {
- "post": {
- "$ref": "operations/projects/move-card.json"
- }
- },
- "/projects/columns/{column_id}": {
- "get": {
- "$ref": "operations/projects/get-column.json"
- },
- "patch": {
- "$ref": "operations/projects/update-column.json"
- },
- "delete": {
- "$ref": "operations/projects/delete-column.json"
- }
- },
- "/projects/columns/{column_id}/cards": {
- "get": {
- "$ref": "operations/projects/list-cards.json"
- },
- "post": {
- "$ref": "operations/projects/create-card.json"
- }
- },
- "/projects/columns/{column_id}/moves": {
- "post": {
- "$ref": "operations/projects/move-column.json"
- }
- },
- "/projects/{project_id}": {
- "get": {
- "$ref": "operations/projects/get.json"
- },
- "patch": {
- "$ref": "operations/projects/update.json"
- },
- "delete": {
- "$ref": "operations/projects/delete.json"
- }
- },
- "/projects/{project_id}/collaborators": {
- "get": {
- "$ref": "operations/projects/list-collaborators.json"
- }
- },
- "/projects/{project_id}/collaborators/{username}": {
- "put": {
- "$ref": "operations/projects/add-collaborator.json"
- },
- "delete": {
- "$ref": "operations/projects/remove-collaborator.json"
- }
- },
- "/projects/{project_id}/collaborators/{username}/permission": {
- "get": {
- "$ref": "operations/projects/review-user-permission-level.json"
- }
- },
- "/projects/{project_id}/columns": {
- "get": {
- "$ref": "operations/projects/list-columns.json"
- },
- "post": {
- "$ref": "operations/projects/create-column.json"
- }
- },
- "/rate_limit": {
- "get": {
- "$ref": "operations/rate_limit/get.json"
- }
- },
- "/reactions/{reaction_id}": {
- "delete": {
- "$ref": "operations/reactions/delete.json"
- }
- },
- "/repos/{owner}/{repo}": {
- "get": {
- "$ref": "operations/repos/get.json"
- },
- "patch": {
- "$ref": "operations/repos/update.json"
- },
- "delete": {
- "$ref": "operations/repos/delete.json"
- }
- },
- "/repos/{owner}/{repo}/assignees": {
- "get": {
- "$ref": "operations/issues/list-assignees.json"
- }
- },
- "/repos/{owner}/{repo}/assignees/{assignee}": {
- "get": {
- "$ref": "operations/issues/check-assignee.json"
- }
- },
- "/repos/{owner}/{repo}/branches": {
- "get": {
- "$ref": "operations/repos/list-branches.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}": {
- "get": {
- "$ref": "operations/repos/get-branch.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection": {
- "get": {
- "$ref": "operations/repos/get-branch-protection.json"
- },
- "put": {
- "$ref": "operations/repos/update-branch-protection.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-branch-protection.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-admin-enforcement.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-admin-enforcement.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-admin-enforcement.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-pull-request-review-enforcement.json"
- },
- "patch": {
- "$ref": "operations/repos/update-protected-branch-pull-request-review-enforcement.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-pull-request-review-enforcement.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-required-signatures.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-required-signatures.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-signatures.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-required-status-checks.json"
- },
- "patch": {
- "$ref": "operations/repos/update-protected-branch-required-status-checks.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-status-checks.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-required-status-checks-contexts.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-required-status-checks-contexts.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-required-status-checks-contexts.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-status-checks-contexts.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-team-restrictions.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-team-restrictions.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-team-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-team-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-user-restrictions.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-user-restrictions.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-user-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-user-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs": {
- "post": {
- "$ref": "operations/checks/create.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs/{check_run_id}": {
- "patch": {
- "$ref": "operations/checks/update.json"
- },
- "get": {
- "$ref": "operations/checks/get.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": {
- "get": {
- "$ref": "operations/checks/list-annotations.json"
- }
- },
- "/repos/{owner}/{repo}/check-suite-requests": {
- "post": {
- "$ref": "operations/checks/request-suites.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites": {
- "post": {
- "$ref": "operations/checks/create-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/preferences": {
- "patch": {
- "$ref": "operations/checks/set-suites-preferences.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}": {
- "get": {
- "$ref": "operations/checks/get-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": {
- "get": {
- "$ref": "operations/checks/list-for-suite.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators": {
- "get": {
- "$ref": "operations/repos/list-collaborators.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators/{username}": {
- "get": {
- "$ref": "operations/repos/check-collaborator.json"
- },
- "put": {
- "$ref": "operations/repos/add-collaborator.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-collaborator.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators/{username}/permission": {
- "get": {
- "$ref": "operations/repos/get-collaborator-permission-level.json"
- }
- },
- "/repos/{owner}/{repo}/comments": {
- "get": {
- "$ref": "operations/repos/list-commit-comments.json"
- }
- },
- "/repos/{owner}/{repo}/comments/{comment_id}": {
- "get": {
- "$ref": "operations/repos/get-commit-comment.json"
- },
- "patch": {
- "$ref": "operations/repos/update-commit-comment.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-commit-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/commits": {
- "get": {
- "$ref": "operations/repos/list-commits.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{commit_sha}/comments": {
- "get": {
- "$ref": "operations/repos/list-comments-for-commit.json"
- },
- "post": {
- "$ref": "operations/repos/create-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}": {
- "get": {
- "$ref": "operations/repos/get-commit.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/check-runs": {
- "get": {
- "$ref": "operations/checks/list-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/check-suites": {
- "get": {
- "$ref": "operations/checks/list-suites-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/status": {
- "get": {
- "$ref": "operations/repos/get-combined-status-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/statuses": {
- "get": {
- "$ref": "operations/repos/list-statuses-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/community/code_of_conduct": {
- "get": {
- "$ref": "operations/codes_of_conduct/get-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/compare/{base}...{head}": {
- "get": {
- "$ref": "operations/repos/compare-commits.json"
- }
- },
- "/repos/{owner}/{repo}/contents/{path}": {
- "get": {
- "$ref": "operations/repos/get-contents.json"
- },
- "put": {
- "$ref": "operations/repos/create-or-update-file.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-file.json"
- }
- },
- "/repos/{owner}/{repo}/contributors": {
- "get": {
- "$ref": "operations/repos/list-contributors.json"
- }
- },
- "/repos/{owner}/{repo}/deployments": {
- "get": {
- "$ref": "operations/repos/list-deployments.json"
- },
- "post": {
- "$ref": "operations/repos/create-deployment.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}": {
- "get": {
- "$ref": "operations/repos/get-deployment.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses": {
- "get": {
- "$ref": "operations/repos/list-deployment-statuses.json"
- },
- "post": {
- "$ref": "operations/repos/create-deployment-status.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": {
- "get": {
- "$ref": "operations/repos/get-deployment-status.json"
- }
- },
- "/repos/{owner}/{repo}/downloads": {
- "get": {
- "$ref": "operations/repos/list-downloads.json"
- }
- },
- "/repos/{owner}/{repo}/downloads/{download_id}": {
- "get": {
- "$ref": "operations/repos/get-download.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-download.json"
- }
- },
- "/repos/{owner}/{repo}/events": {
- "get": {
- "$ref": "operations/activity/list-repo-events.json"
- }
- },
- "/repos/{owner}/{repo}/forks": {
- "get": {
- "$ref": "operations/repos/list-forks.json"
- },
- "post": {
- "$ref": "operations/repos/create-fork.json"
- }
- },
- "/repos/{owner}/{repo}/git/blobs": {
- "post": {
- "$ref": "operations/git/create-blob.json"
- }
- },
- "/repos/{owner}/{repo}/git/blobs/{file_sha}": {
- "get": {
- "$ref": "operations/git/get-blob.json"
- }
- },
- "/repos/{owner}/{repo}/git/commits": {
- "post": {
- "$ref": "operations/git/create-commit.json"
- }
- },
- "/repos/{owner}/{repo}/git/commits/{commit_sha}": {
- "get": {
- "$ref": "operations/git/get-commit.json"
- }
- },
- "/repos/{owner}/{repo}/git/refs": {
- "post": {
- "$ref": "operations/git/create-ref.json"
- }
- },
- "/repos/{owner}/{repo}/git/refs/{ref}": {
- "get": {
- "$ref": "operations/git/get-ref.json"
- },
- "patch": {
- "$ref": "operations/git/update-ref.json"
- },
- "delete": {
- "$ref": "operations/git/delete-ref.json"
- }
- },
- "/repos/{owner}/{repo}/git/tags": {
- "post": {
- "$ref": "operations/git/create-tag.json"
- }
- },
- "/repos/{owner}/{repo}/git/tags/{tag_sha}": {
- "get": {
- "$ref": "operations/git/get-tag.json"
- }
- },
- "/repos/{owner}/{repo}/git/trees": {
- "post": {
- "$ref": "operations/git/create-tree.json"
- }
- },
- "/repos/{owner}/{repo}/git/trees/{tree_sha}": {
- "get": {
- "$ref": "operations/git/get-tree.json"
- }
- },
- "/repos/{owner}/{repo}/hooks": {
- "get": {
- "$ref": "operations/repos/list-hooks.json"
- },
- "post": {
- "$ref": "operations/repos/create-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/repos/get-hook.json"
- },
- "patch": {
- "$ref": "operations/repos/update-hook.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/repos/ping-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}/tests": {
- "post": {
- "$ref": "operations/repos/test-push-hook.json"
- }
- },
- "/repos/{owner}/{repo}/installation": {
- "get": {
- "$ref": "operations/apps/get-repo-installation.json"
- }
- },
- "/repos/{owner}/{repo}/invitations": {
- "get": {
- "$ref": "operations/repos/list-invitations.json"
- }
- },
- "/repos/{owner}/{repo}/invitations/{invitation_id}": {
- "delete": {
- "$ref": "operations/repos/delete-invitation.json"
- },
- "patch": {
- "$ref": "operations/repos/update-invitation.json"
- }
- },
- "/repos/{owner}/{repo}/issues": {
- "get": {
- "$ref": "operations/issues/list-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments": {
- "get": {
- "$ref": "operations/issues/list-comments-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{comment_id}": {
- "get": {
- "$ref": "operations/issues/get-comment.json"
- },
- "patch": {
- "$ref": "operations/issues/update-comment.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-issue-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-issue-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/events": {
- "get": {
- "$ref": "operations/issues/list-events-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/issues/events/{event_id}": {
- "get": {
- "$ref": "operations/issues/get-event.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}": {
- "get": {
- "$ref": "operations/issues/get.json"
- },
- "patch": {
- "$ref": "operations/issues/update.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/assignees": {
- "post": {
- "$ref": "operations/issues/add-assignees.json"
- },
- "delete": {
- "$ref": "operations/issues/remove-assignees.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/comments": {
- "get": {
- "$ref": "operations/issues/list-comments.json"
- },
- "post": {
- "$ref": "operations/issues/create-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/events": {
- "get": {
- "$ref": "operations/issues/list-events.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-on-issue.json"
- },
- "post": {
- "$ref": "operations/issues/add-labels.json"
- },
- "put": {
- "$ref": "operations/issues/replace-labels.json"
- },
- "delete": {
- "$ref": "operations/issues/remove-labels.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": {
- "delete": {
- "$ref": "operations/issues/remove-label.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/lock": {
- "put": {
- "$ref": "operations/issues/lock.json"
- },
- "delete": {
- "$ref": "operations/issues/unlock.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-issue.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-issue.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/timeline": {
- "get": {
- "$ref": "operations/issues/list-events-for-timeline.json"
- }
- },
- "/repos/{owner}/{repo}/keys": {
- "get": {
- "$ref": "operations/repos/list-deploy-keys.json"
- },
- "post": {
- "$ref": "operations/repos/add-deploy-key.json"
- }
- },
- "/repos/{owner}/{repo}/keys/{key_id}": {
- "get": {
- "$ref": "operations/repos/get-deploy-key.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-deploy-key.json"
- }
- },
- "/repos/{owner}/{repo}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create-label.json"
- }
- },
- "/repos/{owner}/{repo}/labels/{name}": {
- "get": {
- "$ref": "operations/issues/get-label.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-label.json"
- }
- },
- "/repos/{owner}/{repo}/languages": {
- "get": {
- "$ref": "operations/repos/list-languages.json"
- }
- },
- "/repos/{owner}/{repo}/license": {
- "get": {
- "$ref": "operations/licenses/get-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/merges": {
- "post": {
- "$ref": "operations/repos/merge.json"
- }
- },
- "/repos/{owner}/{repo}/milestones": {
- "get": {
- "$ref": "operations/issues/list-milestones-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/milestones/{milestone_number}": {
- "get": {
- "$ref": "operations/issues/get-milestone.json"
- },
- "patch": {
- "$ref": "operations/issues/update-milestone.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/milestones/{milestone_number}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-for-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/notifications": {
- "get": {
- "$ref": "operations/activity/list-notifications-for-repo.json"
- },
- "put": {
- "$ref": "operations/activity/mark-notifications-as-read-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pages": {
- "get": {
- "$ref": "operations/repos/get-pages.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds": {
- "post": {
- "$ref": "operations/repos/request-page-build.json"
- },
- "get": {
- "$ref": "operations/repos/list-pages-builds.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds/latest": {
- "get": {
- "$ref": "operations/repos/get-latest-pages-build.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds/{build_id}": {
- "get": {
- "$ref": "operations/repos/get-pages-build.json"
- }
- },
- "/repos/{owner}/{repo}/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook-for-repo.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/projects": {
- "get": {
- "$ref": "operations/projects/list-for-repo.json"
- },
- "post": {
- "$ref": "operations/projects/create-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pulls": {
- "get": {
- "$ref": "operations/pulls/list.json"
- },
- "post": {
- "$ref": "operations/pulls/create-from-issue.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments": {
- "get": {
- "$ref": "operations/pulls/list-comments-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments/{comment_id}": {
- "get": {
- "$ref": "operations/pulls/get-comment.json"
- },
- "patch": {
- "$ref": "operations/pulls/update-comment.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-comment.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-pull-request-review-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-pull-request-review-comment.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}": {
- "get": {
- "$ref": "operations/pulls/get.json"
- },
- "patch": {
- "$ref": "operations/pulls/update.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/comments": {
- "get": {
- "$ref": "operations/pulls/list-comments.json"
- },
- "post": {
- "$ref": "operations/pulls/create-comment-reply.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/commits": {
- "get": {
- "$ref": "operations/pulls/list-commits.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/files": {
- "get": {
- "$ref": "operations/pulls/list-files.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/merge": {
- "get": {
- "$ref": "operations/pulls/check-if-merged.json"
- },
- "put": {
- "$ref": "operations/pulls/merge.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
- "get": {
- "$ref": "operations/pulls/list-review-requests.json"
- },
- "post": {
- "$ref": "operations/pulls/create-review-request.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-review-request.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews": {
- "get": {
- "$ref": "operations/pulls/list-reviews.json"
- },
- "post": {
- "$ref": "operations/pulls/create-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": {
- "get": {
- "$ref": "operations/pulls/get-review.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-pending-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": {
- "get": {
- "$ref": "operations/pulls/get-comments-for-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": {
- "put": {
- "$ref": "operations/pulls/dismiss-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
- "post": {
- "$ref": "operations/pulls/submit-review.json"
- }
- },
- "/repos/{owner}/{repo}/readme": {
- "get": {
- "$ref": "operations/repos/get-readme.json"
- }
- },
- "/repos/{owner}/{repo}/releases": {
- "get": {
- "$ref": "operations/repos/list-releases.json"
- },
- "post": {
- "$ref": "operations/repos/create-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/assets/{asset_id}": {
- "get": {
- "$ref": "operations/repos/get-release-asset.json"
- },
- "patch": {
- "$ref": "operations/repos/update-release-asset.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-release-asset.json"
- }
- },
- "/repos/{owner}/{repo}/releases/latest": {
- "get": {
- "$ref": "operations/repos/get-latest-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/tags/{tag}": {
- "get": {
- "$ref": "operations/repos/get-release-by-tag.json"
- }
- },
- "/repos/{owner}/{repo}/releases/{release_id}": {
- "get": {
- "$ref": "operations/repos/get-release.json"
- },
- "patch": {
- "$ref": "operations/repos/update-release.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/{release_id}/assets": {
- "get": {
- "$ref": "operations/repos/list-assets-for-release.json"
- }
- },
- "/repos/{owner}/{repo}/stargazers": {
- "get": {
- "$ref": "operations/activity/list-stargazers-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/stats/code_frequency": {
- "get": {
- "$ref": "operations/repos/get-code-frequency-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/commit_activity": {
- "get": {
- "$ref": "operations/repos/get-commit-activity-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/contributors": {
- "get": {
- "$ref": "operations/repos/get-contributors-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/participation": {
- "get": {
- "$ref": "operations/repos/get-participation-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/punch_card": {
- "get": {
- "$ref": "operations/repos/get-punch-card-stats.json"
- }
- },
- "/repos/{owner}/{repo}/statuses/{sha}": {
- "post": {
- "$ref": "operations/repos/create-status.json"
- }
- },
- "/repos/{owner}/{repo}/subscribers": {
- "get": {
- "$ref": "operations/activity/list-watchers-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/subscription": {
- "get": {
- "$ref": "operations/activity/get-repo-subscription.json"
- },
- "put": {
- "$ref": "operations/activity/set-repo-subscription.json"
- },
- "delete": {
- "$ref": "operations/activity/delete-repo-subscription.json"
- }
- },
- "/repos/{owner}/{repo}/tags": {
- "get": {
- "$ref": "operations/repos/list-tags.json"
- }
- },
- "/repos/{owner}/{repo}/teams": {
- "get": {
- "$ref": "operations/repos/list-teams.json"
- }
- },
- "/repos/{owner}/{repo}/topics": {
- "get": {
- "$ref": "operations/repos/list-topics.json"
- },
- "put": {
- "$ref": "operations/repos/replace-topics.json"
- }
- },
- "/repos/{owner}/{repo}/transfer": {
- "post": {
- "$ref": "operations/repos/transfer.json"
- }
- },
- "/repos/{owner}/{repo}/{archive_format}/{ref}": {
- "get": {
- "$ref": "operations/repos/get-archive-link.json"
- }
- },
- "/repositories": {
- "get": {
- "$ref": "operations/repos/list-public.json"
- }
- },
- "/search/code": {
- "get": {
- "$ref": "operations/search/code.json"
- }
- },
- "/search/commits": {
- "get": {
- "$ref": "operations/search/commits.json"
- }
- },
- "/search/issues": {
- "get": {
- "$ref": "operations/search/issues-and-pull-requests.json"
- }
- },
- "/search/labels": {
- "get": {
- "$ref": "operations/search/labels.json"
- }
- },
- "/search/repositories": {
- "get": {
- "$ref": "operations/search/repos.json"
- }
- },
- "/search/topics": {
- "get": {
- "$ref": "operations/search/topics.json"
- }
- },
- "/search/users": {
- "get": {
- "$ref": "operations/search/users.json"
- }
- },
- "/setup/api/configcheck": {
- "get": {
- "$ref": "operations/enterprise-admin/check-configuration-status.json"
- }
- },
- "/setup/api/configure": {
- "post": {
- "$ref": "operations/enterprise-admin/start-configuration-process.json"
- }
- },
- "/setup/api/maintenance": {
- "get": {
- "$ref": "operations/enterprise-admin/check-maintenance-status.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/enable-or-disable-maintenance-mode.json"
- }
- },
- "/setup/api/settings": {
- "get": {
- "$ref": "operations/enterprise-admin/retrieve-settings.json"
- },
- "put": {
- "$ref": "operations/enterprise-admin/modify-settings.json"
- }
- },
- "/setup/api/settings/authorized-keys": {
- "get": {
- "$ref": "operations/enterprise-admin/retrieve-authorized-ssh-keys.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/add-authorized-ssh-key.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-authorized-ssh-key.json"
- }
- },
- "/setup/api/start": {
- "post": {
- "$ref": "operations/enterprise-admin/upload-license-for-first-time.json"
- }
- },
- "/setup/api/upgrade": {
- "post": {
- "$ref": "operations/enterprise-admin/upgrade-license.json"
- }
- },
- "/staff/indexing_jobs": {
- "post": {
- "$ref": "operations/enterprise-admin/queue-indexing-job.json"
- }
- },
- "/teams/{team_id}": {
- "get": {
- "$ref": "operations/teams/get.json"
- },
- "patch": {
- "$ref": "operations/teams/update.json"
- },
- "delete": {
- "$ref": "operations/teams/delete.json"
- }
- },
- "/teams/{team_id}/discussions": {
- "get": {
- "$ref": "operations/teams/list-discussions.json"
- },
- "post": {
- "$ref": "operations/teams/create-discussion.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}": {
- "get": {
- "$ref": "operations/teams/get-discussion.json"
- },
- "patch": {
- "$ref": "operations/teams/update-discussion.json"
- },
- "delete": {
- "$ref": "operations/teams/delete-discussion.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments": {
- "get": {
- "$ref": "operations/teams/list-discussion-comments.json"
- },
- "post": {
- "$ref": "operations/teams/create-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": {
- "get": {
- "$ref": "operations/teams/get-discussion-comment.json"
- },
- "patch": {
- "$ref": "operations/teams/update-discussion-comment.json"
- },
- "delete": {
- "$ref": "operations/teams/delete-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-team-discussion-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-team-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-team-discussion.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-team-discussion.json"
- }
- },
- "/teams/{team_id}/members": {
- "get": {
- "$ref": "operations/teams/list-members.json"
- }
- },
- "/teams/{team_id}/members/{username}": {
- "get": {
- "$ref": "operations/teams/get-member.json"
- },
- "put": {
- "$ref": "operations/teams/add-member.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-member.json"
- }
- },
- "/teams/{team_id}/memberships/{username}": {
- "get": {
- "$ref": "operations/teams/get-membership.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-membership.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-membership.json"
- }
- },
- "/teams/{team_id}/projects": {
- "get": {
- "$ref": "operations/teams/list-projects.json"
- }
- },
- "/teams/{team_id}/projects/{project_id}": {
- "get": {
- "$ref": "operations/teams/review-project.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-project.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-project.json"
- }
- },
- "/teams/{team_id}/repos": {
- "get": {
- "$ref": "operations/teams/list-repos.json"
- }
- },
- "/teams/{team_id}/repos/{owner}/{repo}": {
- "get": {
- "$ref": "operations/teams/check-manages-repo.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-repo.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-repo.json"
- }
- },
- "/teams/{team_id}/teams": {
- "get": {
- "$ref": "operations/teams/list-child.json"
- }
- },
- "/user": {
- "get": {
- "$ref": "operations/users/get-authenticated.json"
- },
- "patch": {
- "$ref": "operations/users/update-authenticated.json"
- }
- },
- "/user/emails": {
- "get": {
- "$ref": "operations/users/list-emails.json"
- },
- "post": {
- "$ref": "operations/users/add-emails.json"
- },
- "delete": {
- "$ref": "operations/users/delete-emails.json"
- }
- },
- "/user/followers": {
- "get": {
- "$ref": "operations/users/list-followers-for-authenticated-user.json"
- }
- },
- "/user/following": {
- "get": {
- "$ref": "operations/users/list-following-for-authenticated-user.json"
- }
- },
- "/user/following/{username}": {
- "get": {
- "$ref": "operations/users/check-following.json"
- },
- "put": {
- "$ref": "operations/users/follow.json"
- },
- "delete": {
- "$ref": "operations/users/unfollow.json"
- }
- },
- "/user/gpg_keys": {
- "get": {
- "$ref": "operations/users/list-gpg-keys.json"
- },
- "post": {
- "$ref": "operations/users/create-gpg-key.json"
- }
- },
- "/user/gpg_keys/{gpg_key_id}": {
- "get": {
- "$ref": "operations/users/get-gpg-key.json"
- },
- "delete": {
- "$ref": "operations/users/delete-gpg-key.json"
- }
- },
- "/user/installations": {
- "get": {
- "$ref": "operations/apps/list-installations-for-authenticated-user.json"
- }
- },
- "/user/installations/{installation_id}/repositories": {
- "get": {
- "$ref": "operations/apps/list-installation-repos-for-authenticated-user.json"
- }
- },
- "/user/installations/{installation_id}/repositories/{repository_id}": {
- "put": {
- "$ref": "operations/apps/add-repo-to-installation.json"
- },
- "delete": {
- "$ref": "operations/apps/remove-repo-from-installation.json"
- }
- },
- "/user/issues": {
- "get": {
- "$ref": "operations/issues/list-for-authenticated-user.json"
- }
- },
- "/user/keys": {
- "get": {
- "$ref": "operations/users/list-public-keys.json"
- },
- "post": {
- "$ref": "operations/users/create-public-key.json"
- }
- },
- "/user/keys/{key_id}": {
- "get": {
- "$ref": "operations/users/get-public-key.json"
- },
- "delete": {
- "$ref": "operations/users/delete-public-key.json"
- }
- },
- "/user/memberships/orgs": {
- "get": {
- "$ref": "operations/orgs/list-memberships.json"
- }
- },
- "/user/memberships/orgs/{org}": {
- "get": {
- "$ref": "operations/orgs/get-membership-for-authenticated-user.json"
- },
- "patch": {
- "$ref": "operations/orgs/update-membership.json"
- }
- },
- "/user/orgs": {
- "get": {
- "$ref": "operations/orgs/list-for-authenticated-user.json"
- }
- },
- "/user/public_emails": {
- "get": {
- "$ref": "operations/users/list-public-emails.json"
- }
- },
- "/user/repos": {
- "get": {
- "$ref": "operations/repos/list.json"
- },
- "post": {
- "$ref": "operations/repos/create-for-authenticated-user.json"
- }
- },
- "/user/repository_invitations": {
- "get": {
- "$ref": "operations/repos/list-invitations-for-authenticated-user.json"
- }
- },
- "/user/repository_invitations/{invitation_id}": {
- "patch": {
- "$ref": "operations/repos/accept-invitation.json"
- },
- "delete": {
- "$ref": "operations/repos/decline-invitation.json"
- }
- },
- "/user/starred": {
- "get": {
- "$ref": "operations/activity/list-repos-starred-by-authenticated-user.json"
- }
- },
- "/user/starred/{owner}/{repo}": {
- "get": {
- "$ref": "operations/activity/check-starring-repo.json"
- },
- "put": {
- "$ref": "operations/activity/star-repo.json"
- },
- "delete": {
- "$ref": "operations/activity/unstar-repo.json"
- }
- },
- "/user/subscriptions": {
- "get": {
- "$ref": "operations/activity/list-watched-repos-for-authenticated-user.json"
- }
- },
- "/user/subscriptions/{owner}/{repo}": {
- "get": {
- "$ref": "operations/activity/check-watching-repo-legacy.json"
- },
- "put": {
- "$ref": "operations/activity/watch-repo-legacy.json"
- },
- "delete": {
- "$ref": "operations/activity/stop-watching-repo-legacy.json"
- }
- },
- "/user/teams": {
- "get": {
- "$ref": "operations/teams/list-for-authenticated-user.json"
- }
- },
- "/users": {
- "get": {
- "$ref": "operations/users/list.json"
- }
- },
- "/users/{username}": {
- "get": {
- "$ref": "operations/users/get-by-username.json"
- }
- },
- "/users/{username}/events": {
- "get": {
- "$ref": "operations/activity/list-events-for-user.json"
- }
- },
- "/users/{username}/events/orgs/{org}": {
- "get": {
- "$ref": "operations/activity/list-events-for-org.json"
- }
- },
- "/users/{username}/events/public": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-user.json"
- }
- },
- "/users/{username}/followers": {
- "get": {
- "$ref": "operations/users/list-followers-for-user.json"
- }
- },
- "/users/{username}/following": {
- "get": {
- "$ref": "operations/users/list-following-for-user.json"
- }
- },
- "/users/{username}/following/{target_user}": {
- "get": {
- "$ref": "operations/users/check-following-for-user.json"
- }
- },
- "/users/{username}/gists": {
- "get": {
- "$ref": "operations/gists/list-public-for-user.json"
- }
- },
- "/users/{username}/gpg_keys": {
- "get": {
- "$ref": "operations/users/list-gpg-keys-for-user.json"
- }
- },
- "/users/{username}/hovercard": {
- "get": {
- "$ref": "operations/users/get-context-for-user.json"
- }
- },
- "/users/{username}/installation": {
- "get": {
- "$ref": "operations/apps/get-user-installation.json"
- }
- },
- "/users/{username}/keys": {
- "get": {
- "$ref": "operations/users/list-public-keys-for-user.json"
- }
- },
- "/users/{username}/orgs": {
- "get": {
- "$ref": "operations/orgs/list-for-user.json"
- }
- },
- "/users/{username}/received_events": {
- "get": {
- "$ref": "operations/activity/list-received-events-for-user.json"
- }
- },
- "/users/{username}/received_events/public": {
- "get": {
- "$ref": "operations/activity/list-received-public-events-for-user.json"
- }
- },
- "/users/{username}/repos": {
- "get": {
- "$ref": "operations/repos/list-for-user.json"
- }
- },
- "/users/{username}/site_admin": {
- "put": {
- "$ref": "operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json"
- }
- },
- "/users/{username}/starred": {
- "get": {
- "$ref": "operations/activity/list-repos-starred-by-user.json"
- }
- },
- "/users/{username}/subscriptions": {
- "get": {
- "$ref": "operations/activity/list-repos-watched-by-user.json"
- }
- },
- "/users/{username}/suspended": {
- "put": {
- "$ref": "operations/enterprise-admin/suspend-user.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/unsuspend-user.json"
- }
- }
- }
-}
diff --git a/openapi/ghe-2.14/operations/activity/check-starring-repo.json b/openapi/ghe-2.14/operations/activity/check-starring-repo.json
deleted file mode 100644
index ef31ae4f69..0000000000
--- a/openapi/ghe-2.14/operations/activity/check-starring-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if you are starring a repository",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-check-starring-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/starring/#check-if-you-are-starring-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/check-watching-repo-legacy.json b/openapi/ghe-2.14/operations/activity/check-watching-repo-legacy.json
deleted file mode 100644
index 4e499fb000..0000000000
--- a/openapi/ghe-2.14/operations/activity/check-watching-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if you are watching a repository (LEGACY)",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-check-watching-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/delete-repo-subscription.json b/openapi/ghe-2.14/operations/activity/delete-repo-subscription.json
deleted file mode 100644
index a6a66b6d3a..0000000000
--- a/openapi/ghe-2.14/operations/activity/delete-repo-subscription.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a Repository Subscription",
- "description": "This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://developer.github.com/enterprise/2.14/v3/activity/watching/#set-a-repository-subscription).",
- "operationId": "activity-delete-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/watching/#delete-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/delete-thread-subscription.json b/openapi/ghe-2.14/operations/activity/delete-thread-subscription.json
deleted file mode 100644
index 2b56dd0fed..0000000000
--- a/openapi/ghe-2.14/operations/activity/delete-thread-subscription.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a thread subscription",
- "description": "Mutes all future notifications for a conversation until you comment on the thread or get **@mention**ed.",
- "operationId": "activity-delete-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/notifications/#delete-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/get-repo-subscription.json b/openapi/ghe-2.14/operations/activity/get-repo-subscription.json
deleted file mode 100644
index f303e9c9c7..0000000000
--- a/openapi/ghe-2.14/operations/activity/get-repo-subscription.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get a Repository Subscription",
- "description": "",
- "operationId": "activity-get-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/watching/#get-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/get-thread-subscription.json b/openapi/ghe-2.14/operations/activity/get-thread-subscription.json
deleted file mode 100644
index 1802b7f78f..0000000000
--- a/openapi/ghe-2.14/operations/activity/get-thread-subscription.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "Get a thread subscription",
- "description": "This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://developer.github.com/enterprise/2.14/v3/activity/watching/#get-a-repository-subscription).\n\nNote that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread.",
- "operationId": "activity-get-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/notifications/#get-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "thread_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/get-thread.json b/openapi/ghe-2.14/operations/activity/get-thread.json
deleted file mode 100644
index 7b238d88e0..0000000000
--- a/openapi/ghe-2.14/operations/activity/get-thread.json
+++ /dev/null
@@ -1,298 +0,0 @@
-{
- "summary": "View a single thread",
- "description": "",
- "operationId": "activity-get-thread",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/notifications/#view-a-single-thread"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "string"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "subject": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "latest_comment_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "reason": {
- "type": "string"
- },
- "unread": {
- "type": "boolean"
- },
- "updated_at": {
- "type": "string"
- },
- "last_read_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads/"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-events-for-org.json b/openapi/ghe-2.14/operations/activity/list-events-for-org.json
deleted file mode 100644
index 3c0530a0bf..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-events-for-org.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List events for an organization",
- "description": "This is the user's organization dashboard. You must be authenticated as the user to view this.",
- "operationId": "activity-list-events-for-org",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/events/#list-events-for-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events/orgs/:org"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username',\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-events-for-user.json b/openapi/ghe-2.14/operations/activity/list-events-for-user.json
deleted file mode 100644
index 5335d7b317..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List events performed by a user",
- "description": "If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.",
- "operationId": "activity-list-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/events/#list-events-performed-by-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-feeds.json b/openapi/ghe-2.14/operations/activity/list-feeds.json
deleted file mode 100644
index c68bb0d743..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-feeds.json
+++ /dev/null
@@ -1,161 +0,0 @@
-{
- "summary": "List feeds",
- "description": "GitHub Enterprise provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:\n\n* **Timeline**: The GitHub Enterprise global public timeline\n* **User**: The public timeline for any user, using [URI template](https://developer.github.com/enterprise/2.14/v3/#hypermedia)\n* **Current user public**: The public timeline for the authenticated user\n* **Current user**: The private timeline for the authenticated user\n* **Current user actor**: The private timeline for activity created by the authenticated user\n* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.\n\n**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://developer.github.com/enterprise/2.14/v3/#basic-authentication) since current feed URIs use the older, non revocable auth tokens.",
- "operationId": "activity-list-feeds",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/feeds/#list-feeds"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "timeline_url": {
- "type": "string"
- },
- "user_url": {
- "type": "string"
- },
- "current_user_public_url": {
- "type": "string"
- },
- "current_user_url": {
- "type": "string"
- },
- "current_user_actor_url": {
- "type": "string"
- },
- "current_user_organization_url": {
- "type": "string"
- },
- "current_user_organization_urls": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "timeline": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_public": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_actor": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_organization": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_organizations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/feeds"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-notifications-for-repo.json b/openapi/ghe-2.14/operations/activity/list-notifications-for-repo.json
deleted file mode 100644
index 0ce87a8e51..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-notifications-for-repo.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "summary": "List your notifications in a repository",
- "description": "List all notifications for the current user.",
- "operationId": "activity-list-notifications-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/notifications/#list-your-notifications-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "all",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, show notifications marked as read."
- },
- {
- "name": "participating",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, only shows notifications in which the user is directly participating or mentioned."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "before",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-notifications.json b/openapi/ghe-2.14/operations/activity/list-notifications.json
deleted file mode 100644
index fb4ab08ef5..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-notifications.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List your notifications",
- "description": "List all notifications for the current user, sorted by most recently updated.\n\nThe following example uses the `since` parameter to list notifications that have been updated after the specified time.",
- "operationId": "activity-list-notifications",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/notifications/#list-your-notifications"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "all",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, show notifications marked as read."
- },
- {
- "name": "participating",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, only shows notifications in which the user is directly participating or mentioned."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "before",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-public-events-for-org.json b/openapi/ghe-2.14/operations/activity/list-public-events-for-org.json
deleted file mode 100644
index d3117e9a9f..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-public-events-for-org.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events for an organization",
- "description": "",
- "operationId": "activity-list-public-events-for-org",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/events/#list-public-events-for-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-public-events-for-repo-network.json b/openapi/ghe-2.14/operations/activity/list-public-events-for-repo-network.json
deleted file mode 100644
index 72445842f2..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-public-events-for-repo-network.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List public events for a network of repositories",
- "description": "",
- "operationId": "activity-list-public-events-for-repo-network",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/events/#list-public-events-for-a-network-of-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/networks/octocat/:repo/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-public-events-for-user.json b/openapi/ghe-2.14/operations/activity/list-public-events-for-user.json
deleted file mode 100644
index 8488cc3574..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-public-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events performed by a user",
- "description": "",
- "operationId": "activity-list-public-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/events/#list-public-events-performed-by-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events/public"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-public-events.json b/openapi/ghe-2.14/operations/activity/list-public-events.json
deleted file mode 100644
index 6418e39c6e..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-public-events.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List public events",
- "description": "",
- "operationId": "activity-list-public-events",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/events/#list-public-events"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-received-events-for-user.json b/openapi/ghe-2.14/operations/activity/list-received-events-for-user.json
deleted file mode 100644
index 0d0db54e7d..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-received-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List events that a user has received",
- "description": "These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events.",
- "operationId": "activity-list-received-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/events/#list-events-that-a-user-has-received"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//received_events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-received-public-events-for-user.json b/openapi/ghe-2.14/operations/activity/list-received-public-events-for-user.json
deleted file mode 100644
index 14d54ff5b5..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-received-public-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events that a user has received",
- "description": "",
- "operationId": "activity-list-received-public-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/events/#list-public-events-that-a-user-has-received"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//received_events/public"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-repo-events.json b/openapi/ghe-2.14/operations/activity/list-repo-events.json
deleted file mode 100644
index cadc765dbb..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-repo-events.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List repository events",
- "description": "",
- "operationId": "activity-list-repo-events",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/events/#list-repository-events"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-repos-starred-by-authenticated-user.json b/openapi/ghe-2.14/operations/activity/list-repos-starred-by-authenticated-user.json
deleted file mode 100644
index 0bca29f54a..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-repos-starred-by-authenticated-user.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "List repositories being starred by the authenticated user",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.14/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-repos-starred-by-authenticated-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/starring/#list-repositories-being-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "One of `asc` (ascending) or `desc` (descending)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-repos-starred-by-user.json b/openapi/ghe-2.14/operations/activity/list-repos-starred-by-user.json
deleted file mode 100644
index 2f63c067e4..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-repos-starred-by-user.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List repositories being starred by a user",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.14/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-repos-starred-by-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/starring/#list-repositories-being-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "One of `asc` (ascending) or `desc` (descending)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//starred"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-repos-watched-by-user.json b/openapi/ghe-2.14/operations/activity/list-repos-watched-by-user.json
deleted file mode 100644
index 62106cefae..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-repos-watched-by-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List repositories being watched by a user",
- "description": "",
- "operationId": "activity-list-repos-watched-by-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/watching/#list-repositories-being-watched"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//subscriptions"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-stargazers-for-repo.json b/openapi/ghe-2.14/operations/activity/list-stargazers-for-repo.json
deleted file mode 100644
index 666ecf7bf5..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-stargazers-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List Stargazers",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.14/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-stargazers-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/starring/#list-stargazers"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stargazers"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-watched-repos-for-authenticated-user.json b/openapi/ghe-2.14/operations/activity/list-watched-repos-for-authenticated-user.json
deleted file mode 100644
index 7cf1b147b3..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-watched-repos-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List repositories being watched by the authenticated user",
- "description": "",
- "operationId": "activity-list-watched-repos-for-authenticated-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/watching/#list-repositories-being-watched"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/list-watchers-for-repo.json b/openapi/ghe-2.14/operations/activity/list-watchers-for-repo.json
deleted file mode 100644
index e6f54c93b9..0000000000
--- a/openapi/ghe-2.14/operations/activity/list-watchers-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List watchers",
- "description": "",
- "operationId": "activity-list-watchers-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/watching/#list-watchers"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscribers"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/mark-as-read.json b/openapi/ghe-2.14/operations/activity/mark-as-read.json
deleted file mode 100644
index 12e3d3b4a2..0000000000
--- a/openapi/ghe-2.14/operations/activity/mark-as-read.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Mark as read",
- "description": "Marking a notification as \"read\" removes it from the [default view on GitHub Enterprise](https://github.com/notifications).",
- "operationId": "activity-mark-as-read",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/notifications/#mark-as-read"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "last_read_at": {
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/mark-notifications-as-read-for-repo.json b/openapi/ghe-2.14/operations/activity/mark-notifications-as-read-for-repo.json
deleted file mode 100644
index 0c4d9c4af5..0000000000
--- a/openapi/ghe-2.14/operations/activity/mark-notifications-as-read-for-repo.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Mark notifications as read in a repository",
- "description": "Marking all notifications in a repository as \"read\" removes them from the [default view on GitHub Enterprise](https://github.com/notifications).",
- "operationId": "activity-mark-notifications-as-read-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/notifications/#mark-notifications-as-read-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "last_read_at": {
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/mark-thread-as-read.json b/openapi/ghe-2.14/operations/activity/mark-thread-as-read.json
deleted file mode 100644
index 96ec5b84d5..0000000000
--- a/openapi/ghe-2.14/operations/activity/mark-thread-as-read.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "summary": "Mark a thread as read",
- "description": "",
- "operationId": "activity-mark-thread-as-read",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/notifications/#mark-a-thread-as-read"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads/"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/set-repo-subscription.json b/openapi/ghe-2.14/operations/activity/set-repo-subscription.json
deleted file mode 100644
index 7f224b8faf..0000000000
--- a/openapi/ghe-2.14/operations/activity/set-repo-subscription.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Set a Repository Subscription",
- "description": "If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://developer.github.com/enterprise/2.14/v3/activity/watching/#delete-a-repository-subscription) completely.",
- "operationId": "activity-set-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/watching/#set-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "subscribed": {
- "description": "Determines if notifications should be received from this repository.",
- "type": "boolean"
- },
- "ignored": {
- "description": "Determines if all notifications should be blocked from this repository.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/set-thread-subscription.json b/openapi/ghe-2.14/operations/activity/set-thread-subscription.json
deleted file mode 100644
index 3c6adf706d..0000000000
--- a/openapi/ghe-2.14/operations/activity/set-thread-subscription.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "summary": "Set a thread subscription",
- "description": "This lets you subscribe or unsubscribe from a conversation.",
- "operationId": "activity-set-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/notifications/#set-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ignored": {
- "description": "Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread.",
- "type": "boolean",
- "default": false
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "thread_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/star-repo.json b/openapi/ghe-2.14/operations/activity/star-repo.json
deleted file mode 100644
index a107079dfd..0000000000
--- a/openapi/ghe-2.14/operations/activity/star-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Star a repository",
- "description": "Requires for the user to be authenticated.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "activity-star-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/starring/#star-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/stop-watching-repo-legacy.json b/openapi/ghe-2.14/operations/activity/stop-watching-repo-legacy.json
deleted file mode 100644
index 745326f262..0000000000
--- a/openapi/ghe-2.14/operations/activity/stop-watching-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Stop watching a repository (LEGACY)",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-stop-watching-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/watching/#stop-watching-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/unstar-repo.json b/openapi/ghe-2.14/operations/activity/unstar-repo.json
deleted file mode 100644
index 12447077b9..0000000000
--- a/openapi/ghe-2.14/operations/activity/unstar-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Unstar a repository",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-unstar-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/starring/#unstar-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/activity/watch-repo-legacy.json b/openapi/ghe-2.14/operations/activity/watch-repo-legacy.json
deleted file mode 100644
index 9de98e1054..0000000000
--- a/openapi/ghe-2.14/operations/activity/watch-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Watch a repository (LEGACY)",
- "description": "Requires the user to be authenticated.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "activity-watch-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/activity/watching/#watch-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/add-repo-to-installation.json b/openapi/ghe-2.14/operations/apps/add-repo-to-installation.json
deleted file mode 100644
index fd8c723377..0000000000
--- a/openapi/ghe-2.14/operations/apps/add-repo-to-installation.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Add repository to installation",
- "description": "Add a single repository to an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/enterprise/2.14/v3/auth/#basic-authentication) to access this endpoint.",
- "operationId": "apps-add-repo-to-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/installations/#add-repository-to-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "repository_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "repository_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories/:repository_id"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id',\n repository_id: 'repository_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/create-installation-token.json b/openapi/ghe-2.14/operations/apps/create-installation-token.json
deleted file mode 100644
index cf3be840f9..0000000000
--- a/openapi/ghe-2.14/operations/apps/create-installation-token.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Create a new installation token",
- "description": "Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-create-installation-token",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/#create-a-new-installation-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "token": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/installations//access_tokens"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/get-authenticated.json b/openapi/ghe-2.14/operations/apps/get-authenticated.json
deleted file mode 100644
index 47db38738b..0000000000
--- a/openapi/ghe-2.14/operations/apps/get-authenticated.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Get the authenticated GitHub App",
- "description": "Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the \"[List installations](https://developer.github.com/enterprise/2.14/v3/apps/#list-installations)\" endpoint.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-authenticated",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/#get-the-authenticated-github-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "installations_count": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/get-by-slug.json b/openapi/ghe-2.14/operations/apps/get-by-slug.json
deleted file mode 100644
index c7b70904ea..0000000000
--- a/openapi/ghe-2.14/operations/apps/get-by-slug.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "summary": "Get a single GitHub App",
- "description": "**Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).\n\nIf the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://developer.github.com/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.",
- "operationId": "apps-get-by-slug",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/#get-a-single-github-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "app_slug",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "app_slug parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/apps/"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n app_slug: 'app_slug'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/get-installation.json b/openapi/ghe-2.14/operations/apps/get-installation.json
deleted file mode 100644
index 1a246399e2..0000000000
--- a/openapi/ghe-2.14/operations/apps/get-installation.json
+++ /dev/null
@@ -1,153 +0,0 @@
-{
- "summary": "Get an installation",
- "description": "You must use a [JWT](https://developer.github.com/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/#get-an-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "issues": {
- "type": "string"
- },
- "single_file": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "single_file_name": {
- "type": "string"
- },
- "repository_selection": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations/"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/get-org-installation.json b/openapi/ghe-2.14/operations/apps/get-org-installation.json
deleted file mode 100644
index 37988d4ab8..0000000000
--- a/openapi/ghe-2.14/operations/apps/get-org-installation.json
+++ /dev/null
@@ -1,185 +0,0 @@
-{
- "summary": "Get an organization installation",
- "description": "Enables an authenticated GitHub App to find the organization's installation information.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-org-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/#get-an-organization-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/orgs//installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find organization installation\" renamed to \"Get an organization installation\"",
- "meta": {
- "before": {
- "idName": "find-org-installation"
- },
- "after": {
- "idName": "get-org-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/apps/get-repo-installation.json b/openapi/ghe-2.14/operations/apps/get-repo-installation.json
deleted file mode 100644
index e8dc121656..0000000000
--- a/openapi/ghe-2.14/operations/apps/get-repo-installation.json
+++ /dev/null
@@ -1,194 +0,0 @@
-{
- "summary": "Get a repository installation",
- "description": "Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-repo-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/#get-a-repository-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find repository installation\" renamed to \"Get a repository installation\"",
- "meta": {
- "before": {
- "idName": "find-repo-installation"
- },
- "after": {
- "idName": "get-repo-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/apps/get-user-installation.json b/openapi/ghe-2.14/operations/apps/get-user-installation.json
deleted file mode 100644
index b4ee8c2e83..0000000000
--- a/openapi/ghe-2.14/operations/apps/get-user-installation.json
+++ /dev/null
@@ -1,188 +0,0 @@
-{
- "summary": "Get a user installation",
- "description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-user-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/#get-a-user-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/users//installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find repository installation\" renamed to \"Get a repository installation\"",
- "meta": {
- "before": {
- "idName": "find-user-installation"
- },
- "after": {
- "idName": "get-user-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/apps/list-installation-repos-for-authenticated-user.json b/openapi/ghe-2.14/operations/apps/list-installation-repos-for-authenticated-user.json
deleted file mode 100644
index 95c8423fe6..0000000000
--- a/openapi/ghe-2.14/operations/apps/list-installation-repos-for-authenticated-user.json
+++ /dev/null
@@ -1,391 +0,0 @@
-{
- "summary": "List repositories accessible to the user for an installation",
- "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou must use a [user-to-server OAuth access token](https://developer.github.com/enterprise/2.14/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe access the user has to each repository is included in the hash under the `permissions` key.",
- "operationId": "apps-list-installation-repos-for-authenticated-user",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "repositories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/list-installations-for-authenticated-user.json b/openapi/ghe-2.14/operations/apps/list-installations-for-authenticated-user.json
deleted file mode 100644
index 63b6c08d47..0000000000
--- a/openapi/ghe-2.14/operations/apps/list-installations-for-authenticated-user.json
+++ /dev/null
@@ -1,218 +0,0 @@
-{
- "summary": "List installations for a user",
- "description": "Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nYou must use a [user-to-server OAuth access token](https://developer.github.com/enterprise/2.14/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou can find the permissions for the installation under the `permissions` key.",
- "operationId": "apps-list-installations-for-authenticated-user",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/installations/#list-installations-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "installations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "issues": {
- "type": "string"
- },
- "single_file": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "single_file_name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "account",
- "access_tokens_url",
- "repositories_url",
- "html_url",
- "app_id",
- "target_id",
- "target_type",
- "permissions",
- "events",
- "single_file_name"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/list-installations.json b/openapi/ghe-2.14/operations/apps/list-installations.json
deleted file mode 100644
index 741f785c4f..0000000000
--- a/openapi/ghe-2.14/operations/apps/list-installations.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "List installations",
- "description": "You must use a [JWT](https://developer.github.com/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.\n\nThe permissions the installation has are included under the `permissions` key.",
- "operationId": "apps-list-installations",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/#list-installations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/list-repos.json b/openapi/ghe-2.14/operations/apps/list-repos.json
deleted file mode 100644
index 3ba2777c2c..0000000000
--- a/openapi/ghe-2.14/operations/apps/list-repos.json
+++ /dev/null
@@ -1,368 +0,0 @@
-{
- "summary": "List repositories",
- "description": "List repositories that an installation can access.\n\nYou must use an [installation access token](https://developer.github.com/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.",
- "operationId": "apps-list-repos",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/installations/#list-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "repositories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/installation/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/apps/remove-repo-from-installation.json b/openapi/ghe-2.14/operations/apps/remove-repo-from-installation.json
deleted file mode 100644
index 0ef144e733..0000000000
--- a/openapi/ghe-2.14/operations/apps/remove-repo-from-installation.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Remove repository from installation",
- "description": "Remove a single repository from an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/enterprise/2.14/v3/auth/#basic-authentication) to access this endpoint.",
- "operationId": "apps-remove-repo-from-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/apps/installations/#remove-repository-from-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "repository_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "repository_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories/:repository_id"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id',\n repository_id: 'repository_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/create-suite.json b/openapi/ghe-2.14/operations/checks/create-suite.json
deleted file mode 100644
index c942f02e46..0000000000
--- a/openapi/ghe-2.14/operations/checks/create-suite.json
+++ /dev/null
@@ -1,490 +0,0 @@
-{
- "summary": "Create a check suite",
- "description": "By default, check suites are automatically created when you create a [check run](https://developer.github.com/enterprise/2.14/v3/checks/runs/). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"[Set preferences for check suites on a repository](https://developer.github.com/enterprise/2.14/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository)\". Your GitHub App must have the `checks:write` permission to create check suites.",
- "operationId": "checks-create-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/suites/#create-a-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "head_sha": {
- "description": "The sha of the head commit.",
- "type": "string"
- }
- },
- "required": [
- "head_sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites \\\n -d '{\"head_sha\":\"head_sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n head_sha: 'head_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/create.json b/openapi/ghe-2.14/operations/checks/create.json
deleted file mode 100644
index 9692314b39..0000000000
--- a/openapi/ghe-2.14/operations/checks/create.json
+++ /dev/null
@@ -1,448 +0,0 @@
-{
- "summary": "Create a check run",
- "description": "Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
- "operationId": "checks-create",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/runs/#create-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the check. For example, \"code-coverage\".",
- "type": "string"
- },
- "head_sha": {
- "description": "The SHA of the commit.",
- "type": "string"
- },
- "details_url": {
- "description": "The URL of the integrator's site that has the full details of the check.",
- "type": "string"
- },
- "external_id": {
- "description": "A reference for the run on the integrator's system.",
- "type": "string"
- },
- "status": {
- "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ],
- "default": "queued"
- },
- "started_at": {
- "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "conclusion": {
- "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.",
- "type": "string",
- "enum": [
- "success",
- "failure",
- "neutral",
- "cancelled",
- "timed_out",
- "action_required"
- ]
- },
- "completed_at": {
- "description": "**Required if you provide `conclusion`**. The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "output": {
- "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#output-object) description.",
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the check run.",
- "type": "string"
- },
- "summary": {
- "description": "The summary of the check run. This parameter supports Markdown.",
- "type": "string"
- },
- "text": {
- "description": "The details of the check run. This parameter supports Markdown.",
- "type": "string"
- },
- "annotations": {
- "description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/enterprise/2.14/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#annotations-object) description for details about how to use this parameter.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "filename": {
- "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "type": "string"
- },
- "blob_href": {
- "description": "The file's full blob URL. You can find the `blob_href` in the response of the [Get a single commit](https://developer.github.com/enterprise/2.14/v3/repos/commits/#get-a-single-commit) endpoint, by reading the `blob_url` from an element of the `files` array. You can also construct the blob URL from the `head_sha`, the repository, and the filename: \n`https://github.com/:owner/:repo/blob/:head_sha/:filename`.",
- "type": "string"
- },
- "start_line": {
- "description": "The start line of the annotation.",
- "type": "integer"
- },
- "end_line": {
- "description": "The end line of the annotation.",
- "type": "integer"
- },
- "warning_level": {
- "description": "The warning level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
- "type": "string",
- "enum": [
- "notice",
- "warning",
- "failure"
- ]
- },
- "message": {
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "type": "string"
- },
- "title": {
- "description": "The title that represents the annotation. The maximum size is 255 characters.",
- "type": "string"
- },
- "raw_details": {
- "description": "Details about this annotation. The maximum size is 64 KB.",
- "type": "string"
- }
- },
- "required": [
- "filename",
- "blob_href",
- "start_line",
- "end_line",
- "warning_level",
- "message"
- ]
- }
- },
- "images": {
- "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#images-object) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "description": "The alternative text for the image.",
- "type": "string"
- },
- "image_url": {
- "description": "The full URL of the image.",
- "type": "string"
- },
- "caption": {
- "description": "A short image description.",
- "type": "string"
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- }
- }
- },
- "required": [
- "title",
- "summary"
- ]
- },
- "actions": {
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.14/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#actions-object) description.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "type": "string"
- },
- "description": {
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "type": "string"
- },
- "identifier": {
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "type": "string"
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- }
- }
- },
- "required": [
- "name",
- "head_sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs \\\n -d '{\"name\":\"name\",\"head_sha\":\"head_sha\",\"output.title\":\"output.title\",\"output.summary\":\"output.summary\",\"output.annotations[].filename\":\"output.annotations[].filename\",\"output.annotations[].blob_href\":\"output.annotations[].blob_href\",\"output.annotations[].start_line\":\"output.annotations[].start_line\",\"output.annotations[].end_line\":\"output.annotations[].end_line\",\"output.annotations[].warning_level\":\"output.annotations[].warning_level\",\"output.annotations[].message\":\"output.annotations[].message\",\"output.images[].alt\":\"output.images[].alt\",\"output.images[].image_url\":\"output.images[].image_url\",\"actions[].label\":\"actions[].label\",\"actions[].description\":\"actions[].description\",\"actions[].identifier\":\"actions[].identifier\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name',\n head_sha: 'head_sha',\n 'output.title': 'output.title',\n 'output.summary': 'output.summary',\n 'output.annotations[].filename': 'output.annotations[].filename',\n 'output.annotations[].blob_href': 'output.annotations[].blob_href',\n 'output.annotations[].start_line': 'output.annotations[].start_line',\n 'output.annotations[].end_line': 'output.annotations[].end_line',\n 'output.annotations[].warning_level': 'output.annotations[].warning_level',\n 'output.annotations[].message': 'output.annotations[].message',\n 'output.images[].alt': 'output.images[].alt',\n 'output.images[].image_url': 'output.images[].image_url',\n 'actions[].label': 'actions[].label',\n 'actions[].description': 'actions[].description',\n 'actions[].identifier': 'actions[].identifier'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/get-suite.json b/openapi/ghe-2.14/operations/checks/get-suite.json
deleted file mode 100644
index 2201891103..0000000000
--- a/openapi/ghe-2.14/operations/checks/get-suite.json
+++ /dev/null
@@ -1,481 +0,0 @@
-{
- "summary": "Get a single check suite",
- "description": "Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.",
- "operationId": "checks-get-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/suites/#get-a-single-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/get.json b/openapi/ghe-2.14/operations/checks/get.json
deleted file mode 100644
index 5720b43d14..0000000000
--- a/openapi/ghe-2.14/operations/checks/get.json
+++ /dev/null
@@ -1,275 +0,0 @@
-{
- "summary": "Get a single check run",
- "description": "Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-get",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/runs/#get-a-single-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/list-annotations.json b/openapi/ghe-2.14/operations/checks/list-annotations.json
deleted file mode 100644
index 9465f923df..0000000000
--- a/openapi/ghe-2.14/operations/checks/list-annotations.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "List annotations for a check run",
- "description": "Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository.",
- "operationId": "checks-list-annotations",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/runs/#list-annotations-for-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id/annotations"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/list-for-ref.json b/openapi/ghe-2.14/operations/checks/list-for-ref.json
deleted file mode 100644
index b5940de2f9..0000000000
--- a/openapi/ghe-2.14/operations/checks/list-for-ref.json
+++ /dev/null
@@ -1,349 +0,0 @@
-{
- "summary": "List check runs for a specific ref",
- "description": "Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-list-for-ref",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/runs/#list-check-runs-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Returns check runs with the specified `name`."
- },
- {
- "name": "status",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "required": false,
- "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`."
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "latest",
- "all"
- ],
- "default": "latest"
- },
- "required": false,
- "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_runs": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/check-runs"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/list-for-suite.json b/openapi/ghe-2.14/operations/checks/list-for-suite.json
deleted file mode 100644
index 3a201094f7..0000000000
--- a/openapi/ghe-2.14/operations/checks/list-for-suite.json
+++ /dev/null
@@ -1,349 +0,0 @@
-{
- "summary": "List check runs in a check suite",
- "description": "Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-list-for-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/runs/#list-check-runs-in-a-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Returns check runs with the specified `name`."
- },
- {
- "name": "status",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "required": false,
- "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`."
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "latest",
- "all"
- ],
- "default": "latest"
- },
- "required": false,
- "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_runs": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id/check-runs"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/list-suites-for-ref.json b/openapi/ghe-2.14/operations/checks/list-suites-for-ref.json
deleted file mode 100644
index 4382380083..0000000000
--- a/openapi/ghe-2.14/operations/checks/list-suites-for-ref.json
+++ /dev/null
@@ -1,530 +0,0 @@
-{
- "summary": "List check suites for a specific ref",
- "description": "Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.",
- "operationId": "checks-list-suites-for-ref",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/suites/#list-check-suites-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "app_id",
- "in": "query",
- "schema": {
- "type": "integer"
- },
- "required": false,
- "description": "Filters check suites by GitHub App `id`."
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filters checks suites by the name of the [check run](https://developer.github.com/enterprise/2.14/v3/checks/runs/)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_suites": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/check-suites"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/request-suites.json b/openapi/ghe-2.14/operations/checks/request-suites.json
deleted file mode 100644
index ee6bfb5e45..0000000000
--- a/openapi/ghe-2.14/operations/checks/request-suites.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "summary": "Request check suites",
- "description": "Triggers GitHub to create a new check suite, without pushing new code to a repository. To request a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
- "operationId": "checks-request-suites",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/suites/#request-check-suites"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "head_sha": {
- "description": "The sha of the head commit.",
- "type": "string"
- }
- },
- "required": [
- "head_sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suite-requests \\\n -d '{\"head_sha\":\"head_sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n head_sha: 'head_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/set-suites-preferences.json b/openapi/ghe-2.14/operations/checks/set-suites-preferences.json
deleted file mode 100644
index 5aad9bc204..0000000000
--- a/openapi/ghe-2.14/operations/checks/set-suites-preferences.json
+++ /dev/null
@@ -1,430 +0,0 @@
-{
- "summary": "Set preferences for check suites on a repository",
- "description": "Changes the default automatic flow when creating check suites. By default, the CheckSuiteEvent is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://developer.github.com/enterprise/2.14/v3/checks/suites/#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites.",
- "operationId": "checks-set-suites-preferences",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "auto_trigger_checks": {
- "description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/enterprise/2.14/v3/checks/suites/#auto_trigger_checks-object) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "description": "The `id` of the GitHub App.",
- "type": "integer"
- },
- "setting": {
- "description": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "preferences": {
- "type": "object",
- "properties": {
- "auto_trigger_checks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "type": "number"
- },
- "setting": {
- "type": "boolean"
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- }
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/preferences \\\n -d '{\"auto_trigger_checks[].app_id\":\"auto_trigger_checks[].app_id\",\"auto_trigger_checks[].setting\":\"auto_trigger_checks[].setting\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n 'auto_trigger_checks[].app_id': 'auto_trigger_checks[].app_id',\n 'auto_trigger_checks[].setting': 'auto_trigger_checks[].setting'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/checks/update.json b/openapi/ghe-2.14/operations/checks/update.json
deleted file mode 100644
index b4510667e5..0000000000
--- a/openapi/ghe-2.14/operations/checks/update.json
+++ /dev/null
@@ -1,453 +0,0 @@
-{
- "summary": "Update a check run",
- "description": "Updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs.",
- "operationId": "checks-update",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/checks/runs/#update-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the check. For example, \"code-coverage\".",
- "type": "string"
- },
- "details_url": {
- "description": "The URL of the integrator's site that has the full details of the check.",
- "type": "string"
- },
- "external_id": {
- "description": "A reference for the run on the integrator's system.",
- "type": "string"
- },
- "started_at": {
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "status": {
- "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "conclusion": {
- "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.",
- "type": "string",
- "enum": [
- "success",
- "failure",
- "neutral",
- "cancelled",
- "timed_out",
- "action_required"
- ]
- },
- "completed_at": {
- "description": "**Required if you provide `conclusion`**. The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "output": {
- "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#output-object-1) description.",
- "type": "object",
- "properties": {
- "title": {
- "description": "**Required**.",
- "type": "string"
- },
- "summary": {
- "description": "Can contain Markdown.",
- "type": "string"
- },
- "text": {
- "description": "Can contain Markdown.",
- "type": "string"
- },
- "annotations": {
- "description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/enterprise/2.14/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#annotations-object-1) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "filename": {
- "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "type": "string"
- },
- "blob_href": {
- "description": "The file's full blob URL. You can find the `blob_href` in the response of the [Get a single commit](https://developer.github.com/enterprise/2.14/v3/repos/commits/#get-a-single-commit) endpoint, by reading the `blob_url` from an element of the `files` array. You can also construct the blob URL from the `head_sha`, the repository, and the filename: \n`https://github.com/:owner/:repo/blob/:head_sha/:filename`.",
- "type": "string"
- },
- "start_line": {
- "description": "The start line of the annotation.",
- "type": "integer"
- },
- "end_line": {
- "description": "The end line of the annotation.",
- "type": "integer"
- },
- "warning_level": {
- "description": "The warning level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
- "type": "string",
- "enum": [
- "notice",
- "warning",
- "failure"
- ]
- },
- "message": {
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "type": "string"
- },
- "title": {
- "description": "The title that represents the annotation. The maximum size is 255 characters.",
- "type": "string"
- },
- "raw_details": {
- "description": "Details about this annotation. The maximum size is 64 KB.",
- "type": "string"
- }
- },
- "required": [
- "filename",
- "blob_href",
- "start_line",
- "end_line",
- "warning_level",
- "message"
- ]
- }
- },
- "images": {
- "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#annotations-object-1) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "description": "The alternative text for the image.",
- "type": "string"
- },
- "image_url": {
- "description": "The full URL of the image.",
- "type": "string"
- },
- "caption": {
- "description": "A short image description.",
- "type": "string"
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- }
- }
- },
- "required": [
- "summary"
- ]
- },
- "actions": {
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#actions-object) description.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "type": "string"
- },
- "description": {
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "type": "string"
- },
- "identifier": {
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "type": "string"
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id \\\n -d '{\"output.summary\":\"output.summary\",\"output.annotations[].filename\":\"output.annotations[].filename\",\"output.annotations[].blob_href\":\"output.annotations[].blob_href\",\"output.annotations[].start_line\":\"output.annotations[].start_line\",\"output.annotations[].end_line\":\"output.annotations[].end_line\",\"output.annotations[].warning_level\":\"output.annotations[].warning_level\",\"output.annotations[].message\":\"output.annotations[].message\",\"output.images[].alt\":\"output.images[].alt\",\"output.images[].image_url\":\"output.images[].image_url\",\"actions[].label\":\"actions[].label\",\"actions[].description\":\"actions[].description\",\"actions[].identifier\":\"actions[].identifier\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id',\n 'output.summary': 'output.summary',\n 'output.annotations[].filename': 'output.annotations[].filename',\n 'output.annotations[].blob_href': 'output.annotations[].blob_href',\n 'output.annotations[].start_line': 'output.annotations[].start_line',\n 'output.annotations[].end_line': 'output.annotations[].end_line',\n 'output.annotations[].warning_level': 'output.annotations[].warning_level',\n 'output.annotations[].message': 'output.annotations[].message',\n 'output.images[].alt': 'output.images[].alt',\n 'output.images[].image_url': 'output.images[].image_url',\n 'actions[].label': 'actions[].label',\n 'actions[].description': 'actions[].description',\n 'actions[].identifier': 'actions[].identifier'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/codes_of_conduct/get-conduct-code.json b/openapi/ghe-2.14/operations/codes_of_conduct/get-conduct-code.json
deleted file mode 100644
index bf47e8167a..0000000000
--- a/openapi/ghe-2.14/operations/codes_of_conduct/get-conduct-code.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "summary": "Get an individual code of conduct",
- "description": "",
- "operationId": "codes_of_conduct-get-conduct-code",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/codes_of_conduct/#get-an-individual-code-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- },
- {
- "name": "key",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "key parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/codes_of_conduct/"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get({\n key: 'key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/codes_of_conduct/get-for-repo.json b/openapi/ghe-2.14/operations/codes_of_conduct/get-for-repo.json
deleted file mode 100644
index a78e3ef30e..0000000000
--- a/openapi/ghe-2.14/operations/codes_of_conduct/get-for-repo.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "summary": "Get the contents of a repository's code of conduct",
- "description": "This method returns the contents of the repository's code of conduct file, if one is detected.",
- "operationId": "codes_of_conduct-get-for-repo",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/community/code_of_conduct"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/codes_of_conduct/list-conduct-codes.json b/openapi/ghe-2.14/operations/codes_of_conduct/list-conduct-codes.json
deleted file mode 100644
index d2481f5e94..0000000000
--- a/openapi/ghe-2.14/operations/codes_of_conduct/list-conduct-codes.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "summary": "List all codes of conduct",
- "description": "",
- "operationId": "codes_of_conduct-list-conduct-codes",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/codes_of_conduct/#list-all-codes-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/codes_of_conduct"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/emojis/get.json b/openapi/ghe-2.14/operations/emojis/get.json
deleted file mode 100644
index f5ce30773f..0000000000
--- a/openapi/ghe-2.14/operations/emojis/get.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Get",
- "description": "Lists all the emojis available to use on GitHub Enterprise.\n\n",
- "operationId": "emojis-get",
- "tags": [
- "emojis"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/emojis/#emojis"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/emojis"
- },
- {
- "lang": "JS",
- "source": "octokit.emojis.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/add-authorized-ssh-key.json b/openapi/ghe-2.14/operations/enterprise-admin/add-authorized-ssh-key.json
deleted file mode 100644
index cac128f5c1..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/add-authorized-ssh-key.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Add a new authorized SSH key",
- "description": "",
- "operationId": "enterprise-admin-add-authorized-ssh-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#add-a-new-authorized-ssh-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "authorized_key": {
- "description": "The path to the public SSH key.",
- "type": "string"
- }
- },
- "required": [
- "authorized_key"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys \\\n -d '{\"authorized_key\":\"authorized_key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n authorized_key: 'authorized_key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/check-configuration-status.json b/openapi/ghe-2.14/operations/enterprise-admin/check-configuration-status.json
deleted file mode 100644
index c4f305e09c..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/check-configuration-status.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Check configuration status",
- "description": "This endpoint allows you to check the status of the most recent configuration process:\n\nNote that you may need to wait several seconds after you start a process before you can check its status.\n\nThe different statuses are:\n\n| Status | Description |\n| ------------- | --------------------------------- |\n| `PENDING` | The job has not started yet |\n| `CONFIGURING` | The job is running |\n| `DONE` | The job has finished correctly |\n| `FAILED` | The job has finished unexpectedly |",
- "operationId": "enterprise-admin-check-configuration-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#check-configuration-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "progress": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "key"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/configcheck"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/check-maintenance-status.json b/openapi/ghe-2.14/operations/enterprise-admin/check-maintenance-status.json
deleted file mode 100644
index 295940e055..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/check-maintenance-status.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "Check maintenance status",
- "description": "Check your installation's maintenance status:",
- "operationId": "enterprise-admin-check-maintenance-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#check-maintenance-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "scheduled_time": {
- "type": "string"
- },
- "connection_services": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "number": {
- "type": "number"
- }
- },
- "required": [
- "name",
- "number"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/maintenance"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/create-global-hook.json b/openapi/ghe-2.14/operations/enterprise-admin/create-global-hook.json
deleted file mode 100644
index dcdf8ac9cd..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/create-global-hook.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "summary": "Create a global hook",
- "description": "",
- "operationId": "enterprise-admin-create-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/global_webhooks/#create-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Must be passed as \"web\".",
- "type": "string"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.14/v3/enterprise-admin/global_webhooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.14/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name",
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "secret": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks \\\n -d '{\"name\":\"name\",\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/create-impersonation-o-auth-token.json b/openapi/ghe-2.14/operations/enterprise-admin/create-impersonation-o-auth-token.json
deleted file mode 100644
index 0795b54f4f..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/create-impersonation-o-auth-token.json
+++ /dev/null
@@ -1,129 +0,0 @@
-{
- "summary": "Create an impersonation OAuth token",
- "description": "",
- "operationId": "enterprise-admin-create-impersonation-o-auth-token",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#create-an-impersonation-oauth-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "A list of [scopes](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users//authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/create-org.json b/openapi/ghe-2.14/operations/enterprise-admin/create-org.json
deleted file mode 100644
index 7340b48e81..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/create-org.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "Create an organization",
- "description": "",
- "operationId": "enterprise-admin-create-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/orgs/#create-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The organization's username.",
- "type": "string"
- },
- "admin": {
- "description": "The login of the user who will manage this organization.",
- "type": "string"
- },
- "profile_name": {
- "description": "The organization's display name.",
- "type": "string"
- }
- },
- "required": [
- "login",
- "admin"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/organizations \\\n -d '{\"login\":\"login\",\"admin\":\"admin\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n login: 'login',\n admin: 'admin'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/create-pre-receive-environment.json b/openapi/ghe-2.14/operations/enterprise-admin/create-pre-receive-environment.json
deleted file mode 100644
index b6a96b5f51..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/create-pre-receive-environment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Create a pre-receive environment",
- "description": "",
- "operationId": "enterprise-admin-create-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_environments/#create-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new pre-receive environment's name.",
- "type": "string"
- },
- "image_url": {
- "description": "URL from which to download a tarball of this environment.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "image_url"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments \\\n -d '{\"name\":\"name\",\"image_url\":\"image_url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n image_url: 'image_url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/create-pre-receive-hook.json b/openapi/ghe-2.14/operations/enterprise-admin/create-pre-receive-hook.json
deleted file mode 100644
index ba49adc305..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/create-pre-receive-hook.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "summary": "Create a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-create-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_hooks/#create-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the hook.",
- "type": "string"
- },
- "script": {
- "description": "The script that the hook runs.",
- "type": "string"
- },
- "script_repository": {
- "description": "The GitHub repository where the script is kept.",
- "type": "object",
- "properties": {}
- },
- "environment": {
- "description": "The pre-receive environment where the script is executed.",
- "type": "object",
- "properties": {}
- },
- "enforcement": {
- "description": "The state of enforcement for this hook. default: `disabled`",
- "type": "string"
- },
- "allow_downstream_configuration": {
- "description": "Whether enforcement can be overridden at the org or repo level. default: `false`",
- "type": "boolean"
- }
- },
- "required": [
- "name",
- "script",
- "script_repository",
- "environment"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "script": {
- "type": "string"
- },
- "script_repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "full_name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks \\\n -d '{\"name\":\"name\",\"script\":\"script\",\"script_repository\":\"script_repository\",\"environment\":\"environment\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n script: 'script',\n script_repository: 'script_repository',\n environment: 'environment'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/create-user.json b/openapi/ghe-2.14/operations/enterprise-admin/create-user.json
deleted file mode 100644
index 275127813a..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/create-user.json
+++ /dev/null
@@ -1,128 +0,0 @@
-{
- "summary": "Create a new user",
- "description": "If an external authentication mechanism is used, the login name should match the login name in the external system. If you are using LDAP authentication, you should also [update the LDAP mapping](https://developer.github.com/enterprise/2.14/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-user) for the user.\n\nThe login name will be normalized to only contain alphanumeric characters or single hyphens. For example, if you send `\"octo_cat\"` as the login, a user named `\"octo-cat\"` will be created.\n\nIf the login name or email address is already associated with an account, the server will return a `422` response.",
- "operationId": "enterprise-admin-create-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#create-a-new-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The user's username.",
- "type": "string"
- },
- "email": {
- "description": "**Required for built-in authentication.** The user's email address. This parameter can be omitted when using CAS, LDAP, or SAML. For details on built-in and centrally-managed authentication, see the the [GitHub Enterprise authentication guide](https://help.github.com/enterprise/2.14/admin/guides/user-management/authenticating-users-for-your-github-enterprise-server-instance/).",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/delete-global-hook.json b/openapi/ghe-2.14/operations/enterprise-admin/delete-global-hook.json
deleted file mode 100644
index d6792df1b4..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/delete-global-hook.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a global hook",
- "description": "",
- "operationId": "enterprise-admin-delete-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/global_webhooks/#delete-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/delete-impersonation-o-auth-token.json b/openapi/ghe-2.14/operations/enterprise-admin/delete-impersonation-o-auth-token.json
deleted file mode 100644
index 452f7c5959..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/delete-impersonation-o-auth-token.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete an impersonation OAuth token",
- "description": "",
- "operationId": "enterprise-admin-delete-impersonation-o-auth-token",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#delete-an-impersonation-oauth-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users//authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/delete-pre-receive-environment.json b/openapi/ghe-2.14/operations/enterprise-admin/delete-pre-receive-environment.json
deleted file mode 100644
index 6174d120d3..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/delete-pre-receive-environment.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a pre-receive environment",
- "description": "If you attempt to delete an environment that cannot be deleted, you will get a response like this:\n\nThe possible error messages are:\n\n* _Cannot modify or delete the default environment_\n* _Cannot delete environment that has hooks_\n* _Cannot delete environment when download is in progress_",
- "operationId": "enterprise-admin-delete-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_environments/#delete-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/delete-pre-receive-hook.json b/openapi/ghe-2.14/operations/enterprise-admin/delete-pre-receive-hook.json
deleted file mode 100644
index 9090bbf45f..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/delete-pre-receive-hook.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-delete-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_hooks/#delete-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre_receive_hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/delete-public-key.json b/openapi/ghe-2.14/operations/enterprise-admin/delete-public-key.json
deleted file mode 100644
index aa3e4fadbd..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/delete-public-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a public key",
- "description": "",
- "operationId": "enterprise-admin-delete-public-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#delete-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_ids",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "key_ids parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n key_ids: 'key_ids'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/delete-user.json b/openapi/ghe-2.14/operations/enterprise-admin/delete-user.json
deleted file mode 100644
index 73d2fbb754..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/delete-user.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a user",
- "description": "Deleting a user will delete all their repositories, gists, applications, and personal settings. [Suspending a user](https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#suspend-a-user) is often a better option.\n\nYou can delete any user account except your own.",
- "operationId": "enterprise-admin-delete-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#delete-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json b/openapi/ghe-2.14/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json
deleted file mode 100644
index 0f2fe5321e..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Demote a site administrator to an ordinary user",
- "description": "You can demote any user account except your own.",
- "operationId": "enterprise-admin-demote-site-administrator-to-ordinary-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#demote-a-site-administrator-to-an-ordinary-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//site_admin"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/enable-or-disable-maintenance-mode.json b/openapi/ghe-2.14/operations/enterprise-admin/enable-or-disable-maintenance-mode.json
deleted file mode 100644
index a84d1747e3..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/enable-or-disable-maintenance-mode.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Enable or disable maintenance mode",
- "description": "The possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.\n\nThe possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).",
- "operationId": "enterprise-admin-enable-or-disable-maintenance-mode",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#enable-or-disable-maintenance-mode"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "maintenance": {
- "description": "A JSON string with the attributes `enabled` and `when`.",
- "type": "string"
- }
- },
- "required": [
- "maintenance"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "scheduled_time": {
- "type": "string"
- },
- "connection_services": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "number": {
- "type": "number"
- }
- },
- "required": [
- "name",
- "number"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/maintenance \\\n -d '{\"maintenance\":\"maintenance\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n maintenance: 'maintenance'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/get-global-hook.json b/openapi/ghe-2.14/operations/enterprise-admin/get-global-hook.json
deleted file mode 100644
index 3d264d6146..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/get-global-hook.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get single global hook",
- "description": "",
- "operationId": "enterprise-admin-get-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/global_webhooks/#get-single-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "secret": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/get-license-information.json b/openapi/ghe-2.14/operations/enterprise-admin/get-license-information.json
deleted file mode 100644
index c5bab64e9d..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/get-license-information.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "Get license information",
- "description": "",
- "operationId": "enterprise-admin-get-license-information",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/license/#get-license-information"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "seats": {
- "type": "number"
- },
- "seats_used": {
- "type": "number"
- },
- "seats_available": {
- "type": "number"
- },
- "kind": {
- "type": "string"
- },
- "days_until_expiration": {
- "type": "number"
- },
- "expire_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/enterprise/settings/license"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-environment-download-status.json b/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-environment-download-status.json
deleted file mode 100644
index 2e7df1f66c..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-environment-download-status.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Get a pre-receive environment's download status",
- "description": "In addition to seeing the download status at the `/admin/pre-receive-environments/:pre_receive_environment_id`, there is also a separate endpoint for just the status.\n\nPossible values for `state` are `not_started`, `in_progress`, `success`, `failed`.",
- "operationId": "enterprise-admin-get-pre-receive-environment-download-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_environments/#get-a-pre-receive-environments-download-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The state of the most recent download."
- },
- {
- "name": "downloaded_at",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The time when the most recent download started."
- },
- {
- "name": "message",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "On failure, this will have any error messages produced."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments//downloads/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-environment.json b/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-environment.json
deleted file mode 100644
index 6c2e361d12..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-environment.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Get a single pre-receive environment",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_environments/#get-a-single-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-hook-for-org.json b/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-hook-for-org.json
deleted file mode 100644
index 965c243b61..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-hook-for-org.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get a single pre-receive hook for organization",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/org_pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-hook-for-repo.json b/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-hook-for-repo.json
deleted file mode 100644
index 2b2c944afd..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-hook-for-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get a single pre-receive hook for repository",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/repo_pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-hook.json b/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-hook.json
deleted file mode 100644
index 6aa64d4924..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/get-pre-receive-hook.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Get a single pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/get-type-stats.json b/openapi/ghe-2.14/operations/enterprise-admin/get-type-stats.json
deleted file mode 100644
index ae95a4d6ea..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/get-type-stats.json
+++ /dev/null
@@ -1,213 +0,0 @@
-{
- "summary": "Get statistics",
- "description": "There are a variety of types to choose from:\n\n| Type | Description |\n| ------------ | --------------------------------------------------------------------------------------------------- |\n| `issues` | The number of open and closed issues. |\n| `hooks` | The number of active and inactive hooks. |\n| `milestones` | The number of open and closed milestones. |\n| `orgs` | The number of organizations, teams, team members, and disabled organizations. |\n| `comments` | The number of comments on issues, pull requests, commits, and gists. |\n| `pages` | The number of GitHub Pages sites. |\n| `users` | The number of suspended and admin users. |\n| `gists` | The number of private and public gists. |\n| `pulls` | The number of merged, mergeable, and unmergeable pull requests. |\n| `repos` | The number of organization-owned repositories, root repositories, forks, pushed commits, and wikis. |\n| `all` | All of the statistics listed above. |\n\nThese statistics are cached and will be updated approximately every 10 minutes.",
- "operationId": "enterprise-admin-get-type-stats",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/admin_stats/#get-statistics"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "type",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "type parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "repos": {
- "type": "object",
- "properties": {
- "total_repos": {
- "type": "number"
- },
- "root_repos": {
- "type": "number"
- },
- "fork_repos": {
- "type": "number"
- },
- "org_repos": {
- "type": "number"
- },
- "total_pushes": {
- "type": "number"
- },
- "total_wikis": {
- "type": "number"
- }
- }
- },
- "hooks": {
- "type": "object",
- "properties": {
- "total_hooks": {
- "type": "number"
- },
- "active_hooks": {
- "type": "number"
- },
- "inactive_hooks": {
- "type": "number"
- }
- }
- },
- "pages": {
- "type": "object",
- "properties": {
- "total_pages": {
- "type": "number"
- }
- }
- },
- "orgs": {
- "type": "object",
- "properties": {
- "total_orgs": {
- "type": "number"
- },
- "disabled_orgs": {
- "type": "number"
- },
- "total_teams": {
- "type": "number"
- },
- "total_team_members": {
- "type": "number"
- }
- }
- },
- "users": {
- "type": "object",
- "properties": {
- "total_users": {
- "type": "number"
- },
- "admin_users": {
- "type": "number"
- },
- "suspended_users": {
- "type": "number"
- }
- }
- },
- "pulls": {
- "type": "object",
- "properties": {
- "total_pulls": {
- "type": "number"
- },
- "merged_pulls": {
- "type": "number"
- },
- "mergeable_pulls": {
- "type": "number"
- },
- "unmergeable_pulls": {
- "type": "number"
- }
- }
- },
- "issues": {
- "type": "object",
- "properties": {
- "total_issues": {
- "type": "number"
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- }
- }
- },
- "milestones": {
- "type": "object",
- "properties": {
- "total_milestones": {
- "type": "number"
- },
- "open_milestones": {
- "type": "number"
- },
- "closed_milestones": {
- "type": "number"
- }
- }
- },
- "gists": {
- "type": "object",
- "properties": {
- "total_gists": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "total_commit_comments": {
- "type": "number"
- },
- "total_gist_comments": {
- "type": "number"
- },
- "total_issue_comments": {
- "type": "number"
- },
- "total_pull_request_comments": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/enterprise/stats/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n type: 'type'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/list-global-hooks.json b/openapi/ghe-2.14/operations/enterprise-admin/list-global-hooks.json
deleted file mode 100644
index 0d49e025b3..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/list-global-hooks.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "List global hooks",
- "description": "",
- "operationId": "enterprise-admin-list-global-hooks",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/global_webhooks/#list-global-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-environments.json b/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-environments.json
deleted file mode 100644
index 560ade22f4..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-environments.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List pre-receive environments",
- "description": "",
- "operationId": "enterprise-admin-list-pre-receive-environments",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_environments/#list-pre-receive-environments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-hooks-for-org.json b/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-hooks-for-org.json
deleted file mode 100644
index c7aff40cde..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-hooks-for-org.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List pre-receive hooks for organization",
- "description": "List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.",
- "operationId": "enterprise-admin-list-pre-receive-hooks-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/org_pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json b/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json
deleted file mode 100644
index 21a5766dab..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List pre-receive hooks for repository",
- "description": "List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.",
- "operationId": "enterprise-admin-list-pre-receive-hooks-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/repo_pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-hooks.json b/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-hooks.json
deleted file mode 100644
index 20ee8dda0a..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/list-pre-receive-hooks.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List pre-receive hooks",
- "description": "",
- "operationId": "enterprise-admin-list-pre-receive-hooks",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/modify-settings.json b/openapi/ghe-2.14/operations/enterprise-admin/modify-settings.json
deleted file mode 100644
index eff8aac7e4..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/modify-settings.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Modify settings",
- "description": "For a list of the available settings, see the [Retrieve settings endpoint](https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#retrieve-settings).",
- "operationId": "enterprise-admin-modify-settings",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#modify-settings"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "settings": {
- "description": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify.",
- "type": "string"
- }
- },
- "required": [
- "settings"
- ]
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings \\\n -d '{\"settings\":\"settings\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n settings: 'settings'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/ping-global-hook.json b/openapi/ghe-2.14/operations/enterprise-admin/ping-global-hook.json
deleted file mode 100644
index c8c930b37b..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/ping-global-hook.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Ping a global hook",
- "description": "This will trigger a [ping event](https://developer.github.com/enterprise/2.14/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "enterprise-admin-ping-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/global_webhooks/#ping-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks//pings"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json b/openapi/ghe-2.14/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json
deleted file mode 100644
index 9be484cc3a..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Promote an ordinary user to a site administrator",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "enterprise-admin-promote-ordinary-user-to-site-administrator",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#promote-an-ordinary-user-to-a-site-administrator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//site_admin"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/queue-indexing-job.json b/openapi/ghe-2.14/operations/enterprise-admin/queue-indexing-job.json
deleted file mode 100644
index 5f3e074b27..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/queue-indexing-job.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Queue an indexing job",
- "description": "You can index the following targets (replace `:owner` with the name of a user or organization account and `:repository` with the name of a repository):\n\n| Target | Description |\n| --------------------------- | -------------------------------------------------------------------- |\n| `:owner` | A user or organization account. |\n| `:owner/:repository` | A repository. |\n| `:owner/*` | All of a user or organization's repositories. |\n| `:owner/:repository/issues` | All the issues in a repository. |\n| `:owner/*/issues` | All the issues in all of a user or organization's repositories. |\n| `:owner/:repository/code` | All the source code in a repository. |\n| `:owner/*/code` | All the source code in all of a user or organization's repositories. |",
- "operationId": "enterprise-admin-queue-indexing-job",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/search_indexing/#queue-an-indexing-job"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "target": {
- "description": "A string representing the item to index.",
- "type": "string"
- }
- },
- "required": [
- "target"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/staff/indexing_jobs \\\n -d '{\"target\":\"target\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n target: 'target'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/remove-authorized-ssh-key.json b/openapi/ghe-2.14/operations/enterprise-admin/remove-authorized-ssh-key.json
deleted file mode 100644
index 044d790875..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/remove-authorized-ssh-key.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Remove an authorized SSH key",
- "description": "",
- "operationId": "enterprise-admin-remove-authorized-ssh-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#remove-an-authorized-ssh-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "authorized_key": {
- "description": "The path to the public SSH key.",
- "type": "string"
- }
- },
- "required": [
- "authorized_key"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys \\\n -d '{\"authorized_key\":\"authorized_key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n authorized_key: 'authorized_key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json b/openapi/ghe-2.14/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json
deleted file mode 100644
index 14a7de3719..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove enforcement overrides for a pre-receive hook for organization",
- "description": "Removes any overrides for this hook at the org level for this org.",
- "operationId": "enterprise-admin-remove-enforcement-overrides-for-pre-receive-hook-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/org_pre_receive_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json b/openapi/ghe-2.14/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json
deleted file mode 100644
index d8fcaaf68f..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Remove enforcement overrides for a pre-receive hook for repository",
- "description": "Deletes any overridden enforcement on this repository for the specified hook.\n\nResponds with effective values inherited from owner and/or global level.",
- "operationId": "enterprise-admin-remove-enforcement-overrides-for-pre-receive-hook-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/repo_pre_receive_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/rename-org.json b/openapi/ghe-2.14/operations/enterprise-admin/rename-org.json
deleted file mode 100644
index 9aa0672910..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/rename-org.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Rename an organization",
- "description": "",
- "operationId": "enterprise-admin-rename-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/orgs/#rename-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The organization's new name.",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/organizations/ \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/rename-user.json b/openapi/ghe-2.14/operations/enterprise-admin/rename-user.json
deleted file mode 100644
index 7b27f94e49..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/rename-user.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Rename an existing user",
- "description": "",
- "operationId": "enterprise-admin-rename-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#rename-an-existing-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The user's new username.",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users/ \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username',\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/retrieve-authorized-ssh-keys.json b/openapi/ghe-2.14/operations/enterprise-admin/retrieve-authorized-ssh-keys.json
deleted file mode 100644
index 674eb1a511..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/retrieve-authorized-ssh-keys.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Retrieve authorized SSH keys",
- "description": "",
- "operationId": "enterprise-admin-retrieve-authorized-ssh-keys",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#retrieve-authorized-ssh-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/retrieve-settings.json b/openapi/ghe-2.14/operations/enterprise-admin/retrieve-settings.json
deleted file mode 100644
index bd953aca67..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/retrieve-settings.json
+++ /dev/null
@@ -1,452 +0,0 @@
-{
- "summary": "Retrieve settings",
- "description": "",
- "operationId": "enterprise-admin-retrieve-settings",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#retrieve-settings"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "enterprise": {
- "type": "object",
- "properties": {
- "private_mode": {
- "type": "boolean"
- },
- "public_pages": {
- "type": "boolean"
- },
- "subdomain_isolation": {
- "type": "boolean"
- },
- "signup_enabled": {
- "type": "boolean"
- },
- "github_hostname": {
- "type": "string"
- },
- "identicons_host": {
- "type": "string"
- },
- "http_proxy": {
- "type": "string"
- },
- "auth_mode": {
- "type": "string"
- },
- "expire_sessions": {
- "type": "boolean"
- },
- "admin_password": {
- "type": "string"
- },
- "configuration_id": {
- "type": "number"
- },
- "configuration_run_count": {
- "type": "number"
- },
- "avatar": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "uri": {
- "type": "string"
- }
- }
- },
- "customer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "uuid": {
- "type": "string"
- },
- "secret_key_data": {
- "type": "string"
- },
- "public_key_data": {
- "type": "string"
- }
- }
- },
- "license": {
- "type": "object",
- "properties": {
- "seats": {
- "type": "number"
- },
- "evaluation": {
- "type": "boolean"
- },
- "perpetual": {
- "type": "boolean"
- },
- "unlimited_seating": {
- "type": "boolean"
- },
- "support_key": {
- "type": "string"
- },
- "ssh_allowed": {
- "type": "boolean"
- },
- "cluster_support": {
- "type": "boolean"
- },
- "expire_at": {
- "type": "string"
- }
- }
- },
- "github_ssl": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "cert": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- }
- },
- "ldap": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string"
- },
- "port": {
- "type": "number"
- },
- "base": {
- "type": "array",
- "items": {}
- },
- "uid": {
- "type": "string"
- },
- "bind_dn": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "method": {
- "type": "string"
- },
- "search_strategy": {
- "type": "string"
- },
- "user_groups": {
- "type": "array",
- "items": {}
- },
- "admin_group": {
- "type": "string"
- },
- "virtual_attribute_enabled": {
- "type": "boolean"
- },
- "recursive_group_search": {
- "type": "boolean"
- },
- "posix_support": {
- "type": "boolean"
- },
- "user_sync_emails": {
- "type": "boolean"
- },
- "user_sync_keys": {
- "type": "boolean"
- },
- "user_sync_interval": {
- "type": "number"
- },
- "team_sync_interval": {
- "type": "number"
- },
- "sync_enabled": {
- "type": "boolean"
- },
- "reconciliation": {
- "type": "object",
- "properties": {
- "user": {
- "type": "string"
- },
- "org": {
- "type": "string"
- }
- }
- },
- "profile": {
- "type": "object",
- "properties": {
- "uid": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "mail": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- }
- }
- }
- },
- "cas": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- }
- }
- },
- "saml": {
- "type": "object",
- "properties": {
- "sso_url": {
- "type": "string"
- },
- "certificate": {
- "type": "string"
- },
- "certificate_path": {
- "type": "string"
- },
- "issuer": {
- "type": "string"
- },
- "idp_initiated_sso": {
- "type": "boolean"
- },
- "disable_admin_demote": {
- "type": "boolean"
- }
- }
- },
- "github_oauth": {
- "type": "object",
- "properties": {
- "client_id": {
- "type": "string"
- },
- "client_secret": {
- "type": "string"
- },
- "organization_name": {
- "type": "string"
- },
- "organization_team": {
- "type": "string"
- }
- }
- },
- "smtp": {
- "type": "object",
- "properties": {
- "smtp": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "address": {
- "type": "string"
- },
- "authentication": {
- "type": "string"
- },
- "port": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "user_name": {
- "type": "string"
- },
- "enable_starttls_auto": {
- "type": "boolean"
- },
- "password": {
- "type": "string"
- },
- "smtp.discard-to-noreply-address": {
- "type": "boolean"
- },
- "support_address": {
- "type": "string"
- },
- "support_address_type": {
- "type": "string"
- },
- "noreply_address": {
- "type": "string"
- }
- }
- }
- }
- },
- "ntp": {
- "type": "object",
- "properties": {
- "primary_server": {
- "type": "string"
- },
- "secondary_server": {
- "type": "string"
- }
- }
- },
- "timezone": {
- "type": "string"
- },
- "snmp": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "community": {
- "type": "string"
- }
- }
- },
- "syslog": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "server": {
- "type": "string"
- },
- "protocol_name": {
- "type": "string"
- }
- }
- },
- "assets": {
- "type": "string"
- },
- "pages": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "collectd": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "server": {
- "type": "string"
- },
- "port": {
- "type": "number"
- },
- "encryption": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "password": {
- "type": "string"
- }
- }
- },
- "mapping": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "tileserver": {
- "type": "string"
- },
- "basemap": {
- "type": "string"
- },
- "token": {
- "type": "string"
- }
- }
- },
- "load_balancer": {
- "type": "string"
- }
- }
- },
- "run_list": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/start-configuration-process.json b/openapi/ghe-2.14/operations/enterprise-admin/start-configuration-process.json
deleted file mode 100644
index 08b860fac5..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/start-configuration-process.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Start a configuration process",
- "description": "This endpoint allows you to start a configuration process at any time for your updated settings to take effect:",
- "operationId": "enterprise-admin-start-configuration-process",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#start-a-configuration-process"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/configure"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/suspend-user.json b/openapi/ghe-2.14/operations/enterprise-admin/suspend-user.json
deleted file mode 100644
index e89dfa60c0..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/suspend-user.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Suspend a user",
- "description": "If your GitHub Enterprise instance uses [LDAP Sync with Active Directory LDAP servers](https://help.github.com/enterprise/admin/guides/user-management/using-ldap), Active Directory LDAP-authenticated users cannot be suspended through this API. If you attempt to suspend an Active Directory LDAP-authenticated user through this API, it will return a `403` response.\n\nYou can suspend any user account except your own.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "enterprise-admin-suspend-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#suspend-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reason": {
- "description": "The reason the user is being suspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//suspended"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/sync-ldap-mapping-for-team.json b/openapi/ghe-2.14/operations/enterprise-admin/sync-ldap-mapping-for-team.json
deleted file mode 100644
index a9baa9f05a..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/sync-ldap-mapping-for-team.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Sync LDAP mapping for a team",
- "description": "Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.",
- "operationId": "enterprise-admin-sync-ldap-mapping-for-team",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/ldap/#sync-ldap-mapping-for-a-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/teams//sync"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/sync-ldap-mapping-for-user.json b/openapi/ghe-2.14/operations/enterprise-admin/sync-ldap-mapping-for-user.json
deleted file mode 100644
index dde8ce81e5..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/sync-ldap-mapping-for-user.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Sync LDAP mapping for a user",
- "description": "Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.",
- "operationId": "enterprise-admin-sync-ldap-mapping-for-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/ldap/#sync-ldap-mapping-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/users//sync"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/trigger-pre-receive-environment-download.json b/openapi/ghe-2.14/operations/enterprise-admin/trigger-pre-receive-environment-download.json
deleted file mode 100644
index 59086d8d44..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/trigger-pre-receive-environment-download.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Trigger a pre-receive environment download",
- "description": "Triggers a new download of the environment tarball from the environment's `image_url`. When the download is finished, the newly downloaded tarball will overwrite the existing environment.\n\nIf a download cannot be triggered, you will get a reponse like this:\n\nThe possible error messages are:\n\n* _Cannot modify or delete the default environment_\n* _Can not start a new download when a download is in progress_",
- "operationId": "enterprise-admin-trigger-pre-receive-environment-download",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_environments/#trigger-a-pre-receive-environment-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments//downloads"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/unsuspend-user.json b/openapi/ghe-2.14/operations/enterprise-admin/unsuspend-user.json
deleted file mode 100644
index 14a923f748..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/unsuspend-user.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Unsuspend a user",
- "description": "If your GitHub Enterprise instance uses [LDAP Sync with Active Directory LDAP servers](https://help.github.com/enterprise/admin/guides/user-management/using-ldap), this API is disabled and will return a `403` response. Active Directory LDAP-authenticated users cannot be unsuspended using the API.",
- "operationId": "enterprise-admin-unsuspend-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/users/#unsuspend-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reason": {
- "description": "The reason the user is being unsuspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//suspended"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/update-global-hook.json b/openapi/ghe-2.14/operations/enterprise-admin/update-global-hook.json
deleted file mode 100644
index 18bb80144d..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/update-global-hook.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "summary": "Edit a global hook",
- "description": "Parameters that are not provided will be overwritten with the default value or removed if no default exists.",
- "operationId": "enterprise-admin-update-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/global_webhooks/#edit-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.14/v3/enterprise-admin/global_webhooks/#update-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.14/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/ \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/update-ldap-mapping-for-team.json b/openapi/ghe-2.14/operations/enterprise-admin/update-ldap-mapping-for-team.json
deleted file mode 100644
index aa631be183..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/update-ldap-mapping-for-team.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "summary": "Update LDAP mapping for a team",
- "description": "Updates the [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Create team](https://developer.github.com/enterprise/2.14/v3/teams/#create-team) endpoint to create a team with LDAP mapping.\n\nIf you pass the `hellcat-preview` media type, you can also update the LDAP mapping of a child team.",
- "operationId": "enterprise-admin-update-ldap-mapping-for-team",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ldap_dn": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/teams//mapping"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/update-ldap-mapping-for-user.json b/openapi/ghe-2.14/operations/enterprise-admin/update-ldap-mapping-for-user.json
deleted file mode 100644
index f2db4dd9ac..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/update-ldap-mapping-for-user.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "summary": "Update LDAP mapping for a user",
- "description": "",
- "operationId": "enterprise-admin-update-ldap-mapping-for-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ldap_dn": {
- "type": "string"
- },
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/users//mapping"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-environment.json b/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-environment.json
deleted file mode 100644
index 8e31bc09df..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-environment.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Edit a pre-receive environment",
- "description": "If you attempt to modify the default environment, you will get a response like this:",
- "operationId": "enterprise-admin-update-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_environments/#edit-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "This pre-receive environment's new name.",
- "type": "string"
- },
- "image_url": {
- "description": "URL from which to download a tarball of this environment.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json b/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json
deleted file mode 100644
index b91de6cdcf..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Update pre-receive hook enforcement for organization",
- "description": "For pre-receive hooks which are allowed to be configured at the org level, you can set `enforcement` and `allow_downstream_configuration`",
- "operationId": "enterprise-admin-update-pre-receive-hook-enforcement-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/org_pre_receive_hooks/#update-pre-receive-hook-enforcement"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json b/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json
deleted file mode 100644
index 78c32bae41..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Update pre-receive hook enforcement for repository",
- "description": "For pre-receive hooks which are allowed to be configured at the repo level, you can set `enforcement`",
- "operationId": "enterprise-admin-update-pre-receive-hook-enforcement-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/repo_pre_receive_hooks/#update-pre-receive-hook-enforcement"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-hook.json b/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-hook.json
deleted file mode 100644
index d579fce34e..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/update-pre-receive-hook.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "summary": "Edit a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-update-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/pre_receive_hooks/#edit-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "script": {
- "type": "string"
- },
- "script_repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "full_name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre_receive_hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/upgrade-license.json b/openapi/ghe-2.14/operations/enterprise-admin/upgrade-license.json
deleted file mode 100644
index 0e959ab12e..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/upgrade-license.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Upgrade a license",
- "description": "This API upgrades your license and also triggers the configuration process:",
- "operationId": "enterprise-admin-upgrade-license",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#upgrade-a-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "license": {
- "description": "The content of your new _.ghl_ license file.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/upgrade"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/enterprise-admin/upload-license-for-first-time.json b/openapi/ghe-2.14/operations/enterprise-admin/upload-license-for-first-time.json
deleted file mode 100644
index 23623e9eb1..0000000000
--- a/openapi/ghe-2.14/operations/enterprise-admin/upload-license-for-first-time.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "summary": "Upload a license for the first time",
- "description": "When you boot a GitHub Enterprise instance for the first time, you can use the following endpoint to upload a license:\n\nNote that you need to POST to [`/setup/api/configure`](https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#start-a-configuration-process) to start the actual configuration process.\n\nWhen using this endpoint, your GitHub Enterprise instance must have a password set. This can be accomplished two ways:\n\n1. If you're working directly with the API before accessing the web interface, you must pass in the password parameter to set your password.\n2. If you set up your instance via the web interface before accessing the API, your calls to this endpoint do not need the password parameter.\n\nFor a list of the available settings, see the [Retrieve settings endpoint](https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#retrieve-settings).",
- "operationId": "enterprise-admin-upload-license-for-first-time",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/enterprise-admin/management_console/#upload-a-license-for-the-first-time"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "license": {
- "description": "The content of your _.ghl_ license file.",
- "type": "string"
- },
- "password": {
- "description": "You **must** provide a password _only if_ you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.",
- "type": "string"
- },
- "settings": {
- "description": "An optional JSON string containing the installation settings.",
- "type": "string"
- }
- },
- "required": [
- "license"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/start \\\n -d '{\"license\":\"license\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n license: 'license'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/check-is-starred.json b/openapi/ghe-2.14/operations/gists/check-is-starred.json
deleted file mode 100644
index 78b503c102..0000000000
--- a/openapi/ghe-2.14/operations/gists/check-is-starred.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Check if a gist is starred",
- "description": "",
- "operationId": "gists-check-is-starred",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#check-if-a-gist-is-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/create-comment.json b/openapi/ghe-2.14/operations/gists/create-comment.json
deleted file mode 100644
index a1a3965ccc..0000000000
--- a/openapi/ghe-2.14/operations/gists/create-comment.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "",
- "operationId": "gists-create-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The comment text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/create.json b/openapi/ghe-2.14/operations/gists/create.json
deleted file mode 100644
index 8106160534..0000000000
--- a/openapi/ghe-2.14/operations/gists/create.json
+++ /dev/null
@@ -1,470 +0,0 @@
-{
- "summary": "Create a gist",
- "description": "Allows you to add a new gist with one or more files.\n\n**Note:** Don't name your files \"gistfile\" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.",
- "operationId": "gists-create",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#create-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "files": {
- "description": "The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`.",
- "type": "object",
- "properties": {
- "content": {
- "description": "The content of the file.",
- "type": "string"
- }
- }
- },
- "description": {
- "description": "A descriptive name for this gist.",
- "type": "string"
- },
- "public": {
- "description": "When `true`, the gist will be public and available for anyone to see.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "files"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists \\\n -d '{\"files\":\"files\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n files: 'files'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/delete-comment.json b/openapi/ghe-2.14/operations/gists/delete-comment.json
deleted file mode 100644
index 53792144d8..0000000000
--- a/openapi/ghe-2.14/operations/gists/delete-comment.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "gists-delete-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/delete.json b/openapi/ghe-2.14/operations/gists/delete.json
deleted file mode 100644
index 1bf7cb966f..0000000000
--- a/openapi/ghe-2.14/operations/gists/delete.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a gist",
- "description": "",
- "operationId": "gists-delete",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#delete-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/fork.json b/openapi/ghe-2.14/operations/gists/fork.json
deleted file mode 100644
index 26ac4dd3e4..0000000000
--- a/openapi/ghe-2.14/operations/gists/fork.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Fork a gist",
- "description": "**Note**: This was previously `/gists/:gist_id/fork`.",
- "operationId": "gists-fork",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#fork-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//forks"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/get-comment.json b/openapi/ghe-2.14/operations/gists/get-comment.json
deleted file mode 100644
index dc6d7eefff..0000000000
--- a/openapi/ghe-2.14/operations/gists/get-comment.json
+++ /dev/null
@@ -1,147 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "gists-get-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/get-revision.json b/openapi/ghe-2.14/operations/gists/get-revision.json
deleted file mode 100644
index 741665b1df..0000000000
--- a/openapi/ghe-2.14/operations/gists/get-revision.json
+++ /dev/null
@@ -1,455 +0,0 @@
-{
- "summary": "Get a specific revision of a gist",
- "description": "",
- "operationId": "gists-get-revision",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#get-a-specific-revision-of-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//:sha"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/get.json b/openapi/ghe-2.14/operations/gists/get.json
deleted file mode 100644
index 622a68a9b8..0000000000
--- a/openapi/ghe-2.14/operations/gists/get.json
+++ /dev/null
@@ -1,446 +0,0 @@
-{
- "summary": "Get a single gist",
- "description": "",
- "operationId": "gists-get",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#get-a-single-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/list-comments.json b/openapi/ghe-2.14/operations/gists/list-comments.json
deleted file mode 100644
index fd46ab6024..0000000000
--- a/openapi/ghe-2.14/operations/gists/list-comments.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List comments on a gist",
- "description": "",
- "operationId": "gists-list-comments",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/comments/#list-comments-on-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/list-commits.json b/openapi/ghe-2.14/operations/gists/list-commits.json
deleted file mode 100644
index 3165be4ecf..0000000000
--- a/openapi/ghe-2.14/operations/gists/list-commits.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List gist commits",
- "description": "",
- "operationId": "gists-list-commits",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#list-gist-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//commits"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/list-forks.json b/openapi/ghe-2.14/operations/gists/list-forks.json
deleted file mode 100644
index 7df6160a88..0000000000
--- a/openapi/ghe-2.14/operations/gists/list-forks.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List gist forks",
- "description": "",
- "operationId": "gists-list-forks",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#list-gist-forks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//forks"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/list-public-for-user.json b/openapi/ghe-2.14/operations/gists/list-public-for-user.json
deleted file mode 100644
index e3a9644b39..0000000000
--- a/openapi/ghe-2.14/operations/gists/list-public-for-user.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List public gists for the specified user",
- "description": "",
- "operationId": "gists-list-public-for-user",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#list-a-users-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//gists"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/list-public.json b/openapi/ghe-2.14/operations/gists/list-public.json
deleted file mode 100644
index bb9943206b..0000000000
--- a/openapi/ghe-2.14/operations/gists/list-public.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List all public gists",
- "description": "List all public gists sorted by most recently updated to least recently updated.\n\nNote: With [pagination](https://developer.github.com/enterprise/2.14/v3/#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.",
- "operationId": "gists-list-public",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#list-all-public-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/public"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/list-starred.json b/openapi/ghe-2.14/operations/gists/list-starred.json
deleted file mode 100644
index 0f378cc3ca..0000000000
--- a/openapi/ghe-2.14/operations/gists/list-starred.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List starred gists",
- "description": "List the authenticated user's starred gists:",
- "operationId": "gists-list-starred",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#list-starred-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/starred"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/list.json b/openapi/ghe-2.14/operations/gists/list.json
deleted file mode 100644
index 215cd686bf..0000000000
--- a/openapi/ghe-2.14/operations/gists/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List the authenticated user's gists or if called anonymously, this will return all public gists",
- "description": "",
- "operationId": "gists-list",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#list-a-users-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/star.json b/openapi/ghe-2.14/operations/gists/star.json
deleted file mode 100644
index 268f57fd2e..0000000000
--- a/openapi/ghe-2.14/operations/gists/star.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Star a gist",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "gists-star",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#star-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/unstar.json b/openapi/ghe-2.14/operations/gists/unstar.json
deleted file mode 100644
index aa068a36ce..0000000000
--- a/openapi/ghe-2.14/operations/gists/unstar.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Unstar a gist",
- "description": "",
- "operationId": "gists-unstar",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#unstar-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/update-comment.json b/openapi/ghe-2.14/operations/gists/update-comment.json
deleted file mode 100644
index 7b07ef21a8..0000000000
--- a/openapi/ghe-2.14/operations/gists/update-comment.json
+++ /dev/null
@@ -1,165 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "gists-update-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The comment text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gists/update.json b/openapi/ghe-2.14/operations/gists/update.json
deleted file mode 100644
index c12b365d0f..0000000000
--- a/openapi/ghe-2.14/operations/gists/update.json
+++ /dev/null
@@ -1,475 +0,0 @@
-{
- "summary": "Edit a gist",
- "description": "Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged.",
- "operationId": "gists-update",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gists/#edit-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "description": {
- "description": "A descriptive name for this gist.",
- "type": "string"
- },
- "files": {
- "description": "The filenames and content that make up this gist.",
- "type": "object",
- "properties": {
- "content": {
- "description": "The updated content of the file.",
- "type": "string"
- },
- "filename": {
- "description": "The new name for this file. To delete a file, set the value of the filename to `null`.",
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.md": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "new_file.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/create-blob.json b/openapi/ghe-2.14/operations/git/create-blob.json
deleted file mode 100644
index efaa6db239..0000000000
--- a/openapi/ghe-2.14/operations/git/create-blob.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "summary": "Create a blob",
- "description": "",
- "operationId": "git-create-blob",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/blobs/#create-a-blob"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The new blob's content.",
- "type": "string"
- },
- "encoding": {
- "description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "type": "string",
- "default": "utf-8"
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/blobs \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/create-commit.json b/openapi/ghe-2.14/operations/git/create-commit.json
deleted file mode 100644
index b136a57200..0000000000
--- a/openapi/ghe-2.14/operations/git/create-commit.json
+++ /dev/null
@@ -1,223 +0,0 @@
-{
- "summary": "Create a commit",
- "description": "Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\nIn this example, the payload of the signature would be:\n\n\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-create-commit",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/commits/#create-a-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message",
- "type": "string"
- },
- "tree": {
- "description": "The SHA of the tree object this commit points to",
- "type": "string"
- },
- "parents": {
- "description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "author": {
- "description": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- },
- "date": {
- "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- },
- "committer": {
- "description": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- },
- "date": {
- "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- },
- "signature": {
- "description": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.",
- "type": "string"
- }
- },
- "required": [
- "message",
- "tree",
- "parents"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/commits \\\n -d '{\"message\":\"message\",\"tree\":\"tree\",\"parents\":\"parents\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n message: 'message',\n tree: 'tree',\n parents: 'parents'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/create-ref.json b/openapi/ghe-2.14/operations/git/create-ref.json
deleted file mode 100644
index e2665a5254..0000000000
--- a/openapi/ghe-2.14/operations/git/create-ref.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Create a reference",
- "description": "Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches.",
- "operationId": "git-create-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/refs/#create-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ref": {
- "description": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
- "type": "string"
- },
- "sha": {
- "description": "The SHA1 value for this reference.",
- "type": "string"
- }
- },
- "required": [
- "ref",
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ref": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs \\\n -d '{\"ref\":\"ref\",\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/create-tag.json b/openapi/ghe-2.14/operations/git/create-tag.json
deleted file mode 100644
index a96bbbfbbd..0000000000
--- a/openapi/ghe-2.14/operations/git/create-tag.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Create a tag object",
- "description": "Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://developer.github.com/enterprise/2.14/v3/git/refs/#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://developer.github.com/enterprise/2.14/v3/git/refs/#create-a-reference) the tag reference - this call would be unnecessary.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-create-tag",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/tags/#create-a-tag-object"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag": {
- "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
- "type": "string"
- },
- "message": {
- "description": "The tag message.",
- "type": "string"
- },
- "object": {
- "description": "The SHA of the git object this is tagging.",
- "type": "string"
- },
- "type": {
- "description": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
- "type": "string",
- "enum": [
- "commit",
- "tree",
- "blob"
- ]
- },
- "tagger": {
- "description": "An object with information about the individual creating the tag.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author of the tag",
- "type": "string"
- },
- "email": {
- "description": "The email of the author of the tag",
- "type": "string"
- },
- "date": {
- "description": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- }
- },
- "required": [
- "tag",
- "message",
- "object",
- "type"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "node_id": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tagger": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/tags \\\n -d '{\"tag\":\"tag\",\"message\":\"message\",\"object\":\"object\",\"type\":\"type\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag: 'tag',\n message: 'message',\n object: 'object',\n type: 'type'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/create-tree.json b/openapi/ghe-2.14/operations/git/create-tree.json
deleted file mode 100644
index a56e47ea8e..0000000000
--- a/openapi/ghe-2.14/operations/git/create-tree.json
+++ /dev/null
@@ -1,161 +0,0 @@
-{
- "summary": "Create a tree",
- "description": "The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out.",
- "operationId": "git-create-tree",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/trees/#create-a-tree"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tree": {
- "description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The file referenced in the tree.",
- "type": "string"
- },
- "mode": {
- "description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "type": "string",
- "enum": [
- "100644",
- "100755",
- "040000",
- "160000",
- "120000"
- ]
- },
- "type": {
- "description": "Either `blob`, `tree`, or `commit`.",
- "type": "string",
- "enum": [
- "blob",
- "tree",
- "commit"
- ]
- },
- "sha": {
- "description": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "type": "string"
- },
- "content": {
- "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "type": "string"
- }
- }
- }
- },
- "base_tree": {
- "description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.",
- "type": "string"
- }
- },
- "required": [
- "tree"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "tree": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- },
- "mode": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/trees \\\n -d '{\"tree\":\"tree\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tree: 'tree'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/delete-ref.json b/openapi/ghe-2.14/operations/git/delete-ref.json
deleted file mode 100644
index c886ab7c86..0000000000
--- a/openapi/ghe-2.14/operations/git/delete-ref.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a reference",
- "description": "```\nDELETE /repos/octocat/Hello-World/git/refs/heads/feature-a\n```\n\n```\nDELETE /repos/octocat/Hello-World/git/refs/tags/v1.0\n```",
- "operationId": "git-delete-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/refs/#delete-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/get-blob.json b/openapi/ghe-2.14/operations/git/get-blob.json
deleted file mode 100644
index 3512d984e3..0000000000
--- a/openapi/ghe-2.14/operations/git/get-blob.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Get a blob",
- "description": "The `content` in the response will always be Base64 encoded.\n\n_Note_: This API supports blobs up to 100 megabytes in size.",
- "operationId": "git-get-blob",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/blobs/#get-a-blob"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "file_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "file_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/blobs/:file_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n file_sha: 'file_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/get-commit.json b/openapi/ghe-2.14/operations/git/get-commit.json
deleted file mode 100644
index 18b92967c5..0000000000
--- a/openapi/ghe-2.14/operations/git/get-commit.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "summary": "Get a commit",
- "description": "Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-get-commit",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/commits/#get-a-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/commits/:commit_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/get-ref.json b/openapi/ghe-2.14/operations/git/get-ref.json
deleted file mode 100644
index a2be26bae4..0000000000
--- a/openapi/ghe-2.14/operations/git/get-ref.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get a reference",
- "description": "Returns a branch or tag reference. Other than the [REST API](https://developer.github.com/v3/git/refs/#get-a-reference) it always returns a single reference. If the REST API returns with an array then the method responds with an error.",
- "operationId": "git-get-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/refs/#get-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "Must be formatted as `heads/branch`, not just `branch`"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/get-tag.json b/openapi/ghe-2.14/operations/git/get-tag.json
deleted file mode 100644
index f8aabb596a..0000000000
--- a/openapi/ghe-2.14/operations/git/get-tag.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "summary": "Get a tag",
- "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-get-tag",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/tags/#get-a-tag"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tag_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tag_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "node_id": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tagger": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/tags/:tag_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag_sha: 'tag_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/get-tree.json b/openapi/ghe-2.14/operations/git/get-tree.json
deleted file mode 100644
index 8c17de3589..0000000000
--- a/openapi/ghe-2.14/operations/git/get-tree.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get a tree",
- "description": "If `truncated` in the response is `true`, the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, omit the `recursive` parameter, and fetch one sub-tree at a time. If you need to fetch even more items, you can clone the repository and iterate over the Git data locally.",
- "operationId": "git-get-tree",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/trees/#get-a-tree"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tree_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tree_sha parameter"
- },
- {
- "name": "recursive",
- "in": "query",
- "schema": {
- "type": "integer",
- "enum": [
- 1
- ]
- },
- "description": "recursive parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/trees/:tree_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tree_sha: 'tree_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/git/update-ref.json b/openapi/ghe-2.14/operations/git/update-ref.json
deleted file mode 100644
index fdcc01c1c3..0000000000
--- a/openapi/ghe-2.14/operations/git/update-ref.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "summary": "Update a reference",
- "description": "",
- "operationId": "git-update-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/git/refs/#update-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "sha": {
- "description": "The SHA1 value to set this reference to",
- "type": "string"
- },
- "force": {
- "description": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ref": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref \\\n -d '{\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gitignore/get-template.json b/openapi/ghe-2.14/operations/gitignore/get-template.json
deleted file mode 100644
index 4948803044..0000000000
--- a/openapi/ghe-2.14/operations/gitignore/get-template.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get a single template",
- "description": "The API also allows fetching the source of a single template.\n\nUse the raw [media type](https://developer.github.com/enterprise/2.14/v3/media/) to get the raw contents.\n\n",
- "operationId": "gitignore-get-template",
- "tags": [
- "gitignore"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gitignore/#get-a-single-template"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "source": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gitignore/templates/"
- },
- {
- "lang": "JS",
- "source": "octokit.gitignore.get({\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/gitignore/list-templates.json b/openapi/ghe-2.14/operations/gitignore/list-templates.json
deleted file mode 100644
index 84c3a0907c..0000000000
--- a/openapi/ghe-2.14/operations/gitignore/list-templates.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Listing available templates",
- "description": "List all templates available to pass as an option when [creating a repository](https://developer.github.com/enterprise/2.14/v3/repos/#create).",
- "operationId": "gitignore-list-templates",
- "tags": [
- "gitignore"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/gitignore/#listing-available-templates"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gitignore/templates"
- },
- {
- "lang": "JS",
- "source": "octokit.gitignore.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/add-assignees.json b/openapi/ghe-2.14/operations/issues/add-assignees.json
deleted file mode 100644
index 0985919b55..0000000000
--- a/openapi/ghe-2.14/operations/issues/add-assignees.json
+++ /dev/null
@@ -1,516 +0,0 @@
-{
- "summary": "Add assignees to an issue",
- "description": "Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.\n\nThis example adds two assignees to the existing `octocat` assignee.",
- "operationId": "issues-add-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/assignees/#add-assignees-to-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "assignees": {
- "description": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/add-labels.json b/openapi/ghe-2.14/operations/issues/add-labels.json
deleted file mode 100644
index c9c0681f6f..0000000000
--- a/openapi/ghe-2.14/operations/issues/add-labels.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "Add labels to an issue",
- "description": "",
- "operationId": "issues-add-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#add-labels-to-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string",
- "description": "labels parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels \\\n -d '{\"labels\":\"labels\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n labels: 'labels'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "labels"
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/check-assignee.json b/openapi/ghe-2.14/operations/issues/check-assignee.json
deleted file mode 100644
index 513bd8b745..0000000000
--- a/openapi/ghe-2.14/operations/issues/check-assignee.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check assignee",
- "description": "Checks if a user has permission to be assigned to an issue in this repository.\n\nIf the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.\n\nOtherwise a `404` status code is returned.",
- "operationId": "issues-check-assignee",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/assignees/#check-assignee"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "assignee",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "assignee parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/assignees/:assignee"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n assignee: 'assignee'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/create-comment.json b/openapi/ghe-2.14/operations/issues/create-comment.json
deleted file mode 100644
index 8f89267392..0000000000
--- a/openapi/ghe-2.14/operations/issues/create-comment.json
+++ /dev/null
@@ -1,187 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "issues-create-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/create-label.json b/openapi/ghe-2.14/operations/issues/create-label.json
deleted file mode 100644
index 4e5f578f13..0000000000
--- a/openapi/ghe-2.14/operations/issues/create-label.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "summary": "Create a label",
- "description": "",
- "operationId": "issues-create-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#create-a-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).",
- "type": "string"
- },
- "color": {
- "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the label.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "color"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels \\\n -d '{\"name\":\"name\",\"color\":\"color\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name',\n color: 'color'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/create-milestone.json b/openapi/ghe-2.14/operations/issues/create-milestone.json
deleted file mode 100644
index df7e550d63..0000000000
--- a/openapi/ghe-2.14/operations/issues/create-milestone.json
+++ /dev/null
@@ -1,209 +0,0 @@
-{
- "summary": "Create a milestone",
- "description": "",
- "operationId": "issues-create-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/milestones/#create-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the milestone.",
- "type": "string"
- },
- "state": {
- "description": "The state of the milestone. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open"
- },
- "description": {
- "description": "A description of the milestone.",
- "type": "string"
- },
- "due_on": {
- "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- },
- "required": [
- "title"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones \\\n -d '{\"title\":\"title\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/create.json b/openapi/ghe-2.14/operations/issues/create.json
deleted file mode 100644
index 8e016d7800..0000000000
--- a/openapi/ghe-2.14/operations/issues/create.json
+++ /dev/null
@@ -1,562 +0,0 @@
-{
- "summary": "Create an issue",
- "description": "Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` status.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "issues-create",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/#create-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the issue.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the issue.",
- "type": "string"
- },
- "assignee": {
- "description": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
- "type": "string"
- },
- "milestone": {
- "description": "The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._",
- "type": "integer"
- },
- "labels": {
- "description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "assignees": {
- "description": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "title"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues \\\n -d '{\"title\":\"title\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/delete-comment.json b/openapi/ghe-2.14/operations/issues/delete-comment.json
deleted file mode 100644
index 5eb4e53508..0000000000
--- a/openapi/ghe-2.14/operations/issues/delete-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "issues-delete-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/delete-label.json b/openapi/ghe-2.14/operations/issues/delete-label.json
deleted file mode 100644
index 4a8fb195bf..0000000000
--- a/openapi/ghe-2.14/operations/issues/delete-label.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a label",
- "description": "",
- "operationId": "issues-delete-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#delete-a-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/delete-milestone.json b/openapi/ghe-2.14/operations/issues/delete-milestone.json
deleted file mode 100644
index 0bc7dfa9be..0000000000
--- a/openapi/ghe-2.14/operations/issues/delete-milestone.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Delete a milestone",
- "description": "",
- "operationId": "issues-delete-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/milestones/#delete-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/get-comment.json b/openapi/ghe-2.14/operations/issues/get-comment.json
deleted file mode 100644
index 1b68af14f4..0000000000
--- a/openapi/ghe-2.14/operations/issues/get-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "issues-get-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/get-event.json b/openapi/ghe-2.14/operations/issues/get-event.json
deleted file mode 100644
index f7a2358ca6..0000000000
--- a/openapi/ghe-2.14/operations/issues/get-event.json
+++ /dev/null
@@ -1,553 +0,0 @@
-{
- "summary": "Get a single event",
- "description": "",
- "operationId": "issues-get-event",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/events/#get-a-single-event"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "event_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "event_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "actor": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "event": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "commit_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "issue": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/events/:event_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n event_id: 'event_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/get-label.json b/openapi/ghe-2.14/operations/issues/get-label.json
deleted file mode 100644
index f46ec2ebd5..0000000000
--- a/openapi/ghe-2.14/operations/issues/get-label.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "summary": "Get a single label",
- "description": "",
- "operationId": "issues-get-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#get-a-single-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/get-milestone.json b/openapi/ghe-2.14/operations/issues/get-milestone.json
deleted file mode 100644
index 58604cfecf..0000000000
--- a/openapi/ghe-2.14/operations/issues/get-milestone.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Get a single milestone",
- "description": "",
- "operationId": "issues-get-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/milestones/#get-a-single-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/get.json b/openapi/ghe-2.14/operations/issues/get.json
deleted file mode 100644
index 64ab934d81..0000000000
--- a/openapi/ghe-2.14/operations/issues/get.json
+++ /dev/null
@@ -1,537 +0,0 @@
-{
- "summary": "Get a single issue",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.14/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-get",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/#get-a-single-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-assignees.json b/openapi/ghe-2.14/operations/issues/list-assignees.json
deleted file mode 100644
index 676f89652d..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-assignees.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List assignees",
- "description": "Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository.",
- "operationId": "issues-list-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/assignees/#list-assignees"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-comments-for-repo.json b/openapi/ghe-2.14/operations/issues/list-comments-for-repo.json
deleted file mode 100644
index 2ba82fa88f..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-comments-for-repo.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "List comments in a repository",
- "description": "By default, Issue Comments are ordered by ascending ID.",
- "operationId": "issues-list-comments-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/comments/#list-comments-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Either `created` or `updated`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Either `asc` or `desc`. Ignored without the `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-comments.json b/openapi/ghe-2.14/operations/issues/list-comments.json
deleted file mode 100644
index b307f31e41..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-comments.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "List comments on an issue",
- "description": "Issue Comments are ordered by ascending ID.",
- "operationId": "issues-list-comments",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/comments/#list-comments-on-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-events-for-repo.json b/openapi/ghe-2.14/operations/issues/list-events-for-repo.json
deleted file mode 100644
index 343f336b79..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-events-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List events for a repository",
- "description": "",
- "operationId": "issues-list-events-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/events/#list-events-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/events"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-events-for-timeline.json b/openapi/ghe-2.14/operations/issues/list-events-for-timeline.json
deleted file mode 100644
index 9a8488428e..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-events-for-timeline.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List events for an issue",
- "description": "",
- "operationId": "issues-list-events-for-timeline",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/timeline/#list-events-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.mockingbird-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.mockingbird-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/timeline"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-events.json b/openapi/ghe-2.14/operations/issues/list-events.json
deleted file mode 100644
index e934af46dd..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-events.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List events for an issue",
- "description": "",
- "operationId": "issues-list-events",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/events/#list-events-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/events"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-for-authenticated-user.json b/openapi/ghe-2.14/operations/issues/list-for-authenticated-user.json
deleted file mode 100644
index d3eba2f477..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-for-authenticated-user.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "summary": "List all issues across owned and member repositories assigned to the authenticated user",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.14/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-authenticated-user",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-for-org.json b/openapi/ghe-2.14/operations/issues/list-for-org.json
deleted file mode 100644
index 8c1a2f7d3d..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-for-org.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "summary": "List all issues for a given organization assigned to the authenticated user",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.14/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-org",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-for-repo.json b/openapi/ghe-2.14/operations/issues/list-for-repo.json
deleted file mode 100644
index d8c22d850f..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-for-repo.json
+++ /dev/null
@@ -1,185 +0,0 @@
-{
- "summary": "List issues for a repository",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.14/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/#list-issues-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned."
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "assignee",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user."
- },
- {
- "name": "creator",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The user that created the issue."
- },
- {
- "name": "mentioned",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A user that's mentioned in the issue."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-labels-for-milestone.json b/openapi/ghe-2.14/operations/issues/list-labels-for-milestone.json
deleted file mode 100644
index 7055c49706..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-labels-for-milestone.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "Get labels for every issue in a milestone",
- "description": "",
- "operationId": "issues-list-labels-for-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-labels-for-repo.json b/openapi/ghe-2.14/operations/issues/list-labels-for-repo.json
deleted file mode 100644
index 209b31017c..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-labels-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List all labels for this repository",
- "description": "",
- "operationId": "issues-list-labels-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#list-all-labels-for-this-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-labels-on-issue.json b/openapi/ghe-2.14/operations/issues/list-labels-on-issue.json
deleted file mode 100644
index 6068f1793e..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-labels-on-issue.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List labels on an issue",
- "description": "",
- "operationId": "issues-list-labels-on-issue",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#list-labels-on-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/list-milestones-for-repo.json b/openapi/ghe-2.14/operations/issues/list-milestones-for-repo.json
deleted file mode 100644
index 9d4f2899f3..0000000000
--- a/openapi/ghe-2.14/operations/issues/list-milestones-for-repo.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "summary": "List milestones for a repository",
- "description": "",
- "operationId": "issues-list-milestones-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/milestones/#list-milestones-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "The state of the milestone. Either `open`, `closed`, or `all`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "due_on",
- "completeness"
- ],
- "default": "due_on"
- },
- "required": false,
- "description": "What to sort results by. Either `due_on` or `completeness`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "asc"
- },
- "required": false,
- "description": "The direction of the sort. Either `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/list.json b/openapi/ghe-2.14/operations/issues/list.json
deleted file mode 100644
index bc4b421c73..0000000000
--- a/openapi/ghe-2.14/operations/issues/list.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "summary": "List all issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.14/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/lock.json b/openapi/ghe-2.14/operations/issues/lock.json
deleted file mode 100644
index 76f1fe6853..0000000000
--- a/openapi/ghe-2.14/operations/issues/lock.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "Lock an issue",
- "description": "Users with push access can lock an issue or pull request's conversation.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "issues-lock",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/#lock-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "lock_reason": {
- "description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
- "type": "string",
- "enum": [
- "off-topic",
- "too heated",
- "resolved",
- "spam"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/lock"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/remove-assignees.json b/openapi/ghe-2.14/operations/issues/remove-assignees.json
deleted file mode 100644
index 2aa5591833..0000000000
--- a/openapi/ghe-2.14/operations/issues/remove-assignees.json
+++ /dev/null
@@ -1,496 +0,0 @@
-{
- "summary": "Remove assignees from an issue",
- "description": "Removes one or more assignees from an issue.\n\nThis example removes two of three assignees, leaving the `octocat` assignee.",
- "operationId": "issues-remove-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/assignees/#remove-assignees-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "assignees": {
- "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/remove-label.json b/openapi/ghe-2.14/operations/issues/remove-label.json
deleted file mode 100644
index 2fa78d0478..0000000000
--- a/openapi/ghe-2.14/operations/issues/remove-label.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "summary": "Remove a label from an issue",
- "description": "Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist.",
- "operationId": "issues-remove-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#remove-a-label-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/remove-labels.json b/openapi/ghe-2.14/operations/issues/remove-labels.json
deleted file mode 100644
index ee6f8b1db3..0000000000
--- a/openapi/ghe-2.14/operations/issues/remove-labels.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Remove all labels from an issue",
- "description": "",
- "operationId": "issues-remove-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#remove-all-labels-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/replace-labels.json b/openapi/ghe-2.14/operations/issues/replace-labels.json
deleted file mode 100644
index 3cc55e4798..0000000000
--- a/openapi/ghe-2.14/operations/issues/replace-labels.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "Replace all labels for an issue",
- "description": "Sending an empty array (`[]`) will remove all labels from the issue.",
- "operationId": "issues-replace-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/labels/#replace-all-labels-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string",
- "description": "labels parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels \\\n -d '{\"labels\":\"labels\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n labels: 'labels'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "labels"
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/unlock.json b/openapi/ghe-2.14/operations/issues/unlock.json
deleted file mode 100644
index bee67f5a0c..0000000000
--- a/openapi/ghe-2.14/operations/issues/unlock.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Unlock an issue",
- "description": "Users with push access can unlock an issue's conversation.",
- "operationId": "issues-unlock",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/#unlock-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/lock"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/update-comment.json b/openapi/ghe-2.14/operations/issues/update-comment.json
deleted file mode 100644
index 1e58347e47..0000000000
--- a/openapi/ghe-2.14/operations/issues/update-comment.json
+++ /dev/null
@@ -1,177 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "issues-update-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/issues/update-milestone.json b/openapi/ghe-2.14/operations/issues/update-milestone.json
deleted file mode 100644
index b8d43d63db..0000000000
--- a/openapi/ghe-2.14/operations/issues/update-milestone.json
+++ /dev/null
@@ -1,225 +0,0 @@
-{
- "summary": "Update a milestone",
- "description": "",
- "operationId": "issues-update-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/milestones/#update-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the milestone.",
- "type": "string"
- },
- "state": {
- "description": "The state of the milestone. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open"
- },
- "description": {
- "description": "A description of the milestone.",
- "type": "string"
- },
- "due_on": {
- "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/issues/update.json b/openapi/ghe-2.14/operations/issues/update.json
deleted file mode 100644
index b47d8e4f5b..0000000000
--- a/openapi/ghe-2.14/operations/issues/update.json
+++ /dev/null
@@ -1,587 +0,0 @@
-{
- "summary": "Edit an issue",
- "description": "Issue owners and users with push access can edit an issue.",
- "operationId": "issues-update",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/issues/#edit-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the issue.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the issue.",
- "type": "string"
- },
- "assignee": {
- "description": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
- "type": "string"
- },
- "state": {
- "description": "State of the issue. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "milestone": {
- "description": "The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._",
- "type": "integer",
- "nullable": true
- },
- "labels": {
- "description": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "assignees": {
- "description": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/licenses/get-for-repo.json b/openapi/ghe-2.14/operations/licenses/get-for-repo.json
deleted file mode 100644
index ad62c7a9bf..0000000000
--- a/openapi/ghe-2.14/operations/licenses/get-for-repo.json
+++ /dev/null
@@ -1,137 +0,0 @@
-{
- "summary": "Get the contents of a repository's license",
- "description": "This method returns the contents of the repository's license file, if one is detected.\n\nSimilar to [the repository contents API](https://developer.github.com/enterprise/2.14/v3/repos/contents/#get-contents), this method also supports [custom media types](https://developer.github.com/enterprise/2.14/v3/repos/contents/#custom-media-types) for retrieving the raw license content or rendered license HTML.",
- "operationId": "licenses-get-for-repo",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/licenses/#get-the-contents-of-a-repositorys-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- },
- "license": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/license"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/licenses/get.json b/openapi/ghe-2.14/operations/licenses/get.json
deleted file mode 100644
index fa1b22fe3c..0000000000
--- a/openapi/ghe-2.14/operations/licenses/get.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get an individual license",
- "description": "",
- "operationId": "licenses-get",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/licenses/#get-an-individual-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "license",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "license parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "permissions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "conditions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "limitations": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "body": {
- "type": "string"
- },
- "featured": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/licenses/"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get({\n license: 'license'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/licenses/list-commonly-used.json b/openapi/ghe-2.14/operations/licenses/list-commonly-used.json
deleted file mode 100644
index 251bb889b4..0000000000
--- a/openapi/ghe-2.14/operations/licenses/list-commonly-used.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "List commonly used licenses",
- "description": "",
- "operationId": "licenses-list-commonly-used",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/licenses/#list-commonly-used-licenses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/licenses"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-03-05",
- "note": "\"List all licenses\" renamed to \"List commonly used licenses\"",
- "meta": {
- "before": {
- "idName": "list"
- },
- "after": {
- "idName": "list-commonly-used"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/markdown/render-raw.json b/openapi/ghe-2.14/operations/markdown/render-raw.json
deleted file mode 100644
index 87dc796edf..0000000000
--- a/openapi/ghe-2.14/operations/markdown/render-raw.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Render a Markdown document in raw mode",
- "description": "You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.\n\n",
- "operationId": "markdown-render-raw",
- "tags": [
- "markdown"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/markdown/#render-a-markdown-document-in-raw-mode"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "content-type",
- "description": "Setting content-type header is required for this endpoint",
- "in": "header",
- "schema": {
- "type": "string",
- "enum": [
- "text/plain; charset=utf-8"
- ]
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string",
- "description": "data parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/markdown/raw \\\n -d '{\"data\":\"data\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.markdown.get({\n data: 'data'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "data"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/markdown/render.json b/openapi/ghe-2.14/operations/markdown/render.json
deleted file mode 100644
index e1692d5bc6..0000000000
--- a/openapi/ghe-2.14/operations/markdown/render.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Render an arbitrary Markdown document",
- "description": "",
- "operationId": "markdown-render",
- "tags": [
- "markdown"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/markdown/#render-an-arbitrary-markdown-document"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "text": {
- "description": "The Markdown text to render in HTML. Markdown content must be 400 KB or less.",
- "type": "string"
- },
- "mode": {
- "description": "The rendering mode. Can be either: \n\\* `markdown` to render a document in plain Markdown, just like README.md files are rendered. \n\\* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests.",
- "type": "string",
- "enum": [
- "markdown",
- "gfm"
- ],
- "default": "markdown"
- },
- "context": {
- "description": "The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode.",
- "type": "string"
- }
- },
- "required": [
- "text"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/markdown \\\n -d '{\"text\":\"text\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.markdown.get({\n text: 'text'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/meta/get.json b/openapi/ghe-2.14/operations/meta/get.json
deleted file mode 100644
index 36e00cd04c..0000000000
--- a/openapi/ghe-2.14/operations/meta/get.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "summary": "Get",
- "description": "If you access this endpoint on your organization's [GitHub Enterprise](https://enterprise.github.com/) installation, this endpoint provides information about that installation.\n\n**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.14/v3/guides/replacing-github-services) to help you update your services to webhooks.",
- "operationId": "meta-get",
- "tags": [
- "meta"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/meta/#meta"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "verifiable_password_authentication": {
- "type": "boolean"
- },
- "installed_version": {
- "type": "string"
- },
- "github_services_sha": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/meta"
- },
- {
- "lang": "JS",
- "source": "octokit.meta.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/check-authorization.json b/openapi/ghe-2.14/operations/oauth_authorizations/check-authorization.json
deleted file mode 100644
index d3057086e3..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/check-authorization.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Check an authorization",
- "description": "OAuth applications can use a special API method for checking OAuth token validity without running afoul of normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/enterprise/2.14/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
- "operationId": "oauth_authorizations-check-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#check-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/create-authorization.json b/openapi/ghe-2.14/operations/oauth_authorizations/create-authorization.json
deleted file mode 100644
index 7a6a5ebfa7..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/create-authorization.json
+++ /dev/null
@@ -1,143 +0,0 @@
-{
- "summary": "Create a new authorization",
- "description": "Creates OAuth tokens using [Basic Authentication](https://developer.github.com/enterprise/2.14/v3/auth#basic-authentication). If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.14/v3/auth/#working-with-two-factor-authentication).\"\n\nYou can use this endpoint to create multiple OAuth tokens instead of implementing the [web flow](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/authorizing-oauth-apps/).\n\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them.\n\nYou can also create tokens on GitHub from the [personal access tokens settings](https://github.com/settings/tokens) page. Read more about these tokens in [the GitHub Help documentation](https://help.github.com/articles/creating-an-access-token-for-command-line-use).",
- "operationId": "oauth_authorizations-create-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#create-a-new-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "client_id": {
- "description": "The 20 character OAuth app client key for which to create the token.",
- "type": "string"
- },
- "client_secret": {
- "description": "The 40 character OAuth app client secret for which to create the token.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "type": "string"
- }
- },
- "required": [
- "note"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations \\\n -d '{\"note\":\"note\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n note: 'note'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/delete-authorization.json b/openapi/ghe-2.14/operations/oauth_authorizations/delete-authorization.json
deleted file mode 100644
index e278488b78..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/delete-authorization.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete an authorization",
- "description": "",
- "operationId": "oauth_authorizations-delete-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#delete-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/delete-grant.json b/openapi/ghe-2.14/operations/oauth_authorizations/delete-grant.json
deleted file mode 100644
index 087a05e3e0..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/delete-grant.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a grant",
- "description": "Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
- "operationId": "oauth_authorizations-delete-grant",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#delete-a-grant"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "grant_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "grant_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n grant_id: 'grant_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/get-authorization.json b/openapi/ghe-2.14/operations/oauth_authorizations/get-authorization.json
deleted file mode 100644
index d1bf79fe4c..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/get-authorization.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "summary": "Get a single authorization",
- "description": "",
- "operationId": "oauth_authorizations-get-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#get-a-single-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/get-grant.json b/openapi/ghe-2.14/operations/oauth_authorizations/get-grant.json
deleted file mode 100644
index e3849ca248..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/get-grant.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "Get a single grant",
- "description": "",
- "operationId": "oauth_authorizations-get-grant",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#get-a-single-grant"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "grant_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "grant_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n grant_id: 'grant_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json b/openapi/ghe-2.14/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json
deleted file mode 100644
index 8f70dd56d1..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get-or-create an authorization for a specific app and fingerprint",
- "description": "This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.14/v3/auth/#working-with-two-factor-authentication).\"",
- "operationId": "oauth_authorizations-get-or-create-authorization-for-app-and-fingerprint",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "fingerprint",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "fingerprint parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "client_secret": {
- "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
- "type": "string"
- },
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- }
- },
- "required": [
- "client_secret"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/clients//:fingerprint \\\n -d '{\"client_secret\":\"client_secret\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n fingerprint: 'fingerprint',\n client_secret: 'client_secret'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2018-12-27",
- "note": "`idName` changed for \"Get-or-create an authorization for a specific app and fingerprint\". It now includes `-and-`",
- "meta": {
- "before": {
- "idName": "get-or-create-authorization-for-app-fingerprint"
- },
- "after": {
- "idName": "get-or-create-authorization-for-app-and-fingerprint"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/get-or-create-authorization-for-app.json b/openapi/ghe-2.14/operations/oauth_authorizations/get-or-create-authorization-for-app.json
deleted file mode 100644
index 768a444263..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/get-or-create-authorization-for-app.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Get-or-create an authorization for a specific app",
- "description": "Creates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.14/v3/auth/#working-with-two-factor-authentication).\"",
- "operationId": "oauth_authorizations-get-or-create-authorization-for-app",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "client_secret": {
- "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
- "type": "string"
- },
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint).",
- "type": "string"
- }
- },
- "required": [
- "client_secret"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/clients/ \\\n -d '{\"client_secret\":\"client_secret\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n client_secret: 'client_secret'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/list-authorizations.json b/openapi/ghe-2.14/operations/oauth_authorizations/list-authorizations.json
deleted file mode 100644
index 4d0dfb4e20..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/list-authorizations.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your authorizations",
- "description": "",
- "operationId": "oauth_authorizations-list-authorizations",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#list-your-authorizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/list-grants.json b/openapi/ghe-2.14/operations/oauth_authorizations/list-grants.json
deleted file mode 100644
index 2252f684ec..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/list-grants.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your grants",
- "description": "You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `[\"repo\", \"user\"]`.",
- "operationId": "oauth_authorizations-list-grants",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#list-your-grants"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/reset-authorization.json b/openapi/ghe-2.14/operations/oauth_authorizations/reset-authorization.json
deleted file mode 100644
index 2acb6d3679..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/reset-authorization.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Reset an authorization",
- "description": "OAuth applications can use this API method to reset a valid OAuth token without end user involvement. Applications must save the \"token\" property in the response, because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/enterprise/2.14/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
- "operationId": "oauth_authorizations-reset-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#reset-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/revoke-authorization-for-application.json b/openapi/ghe-2.14/operations/oauth_authorizations/revoke-authorization-for-application.json
deleted file mode 100644
index 4b63c2217c..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/revoke-authorization-for-application.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Revoke an authorization for an application",
- "description": "OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/enterprise/2.14/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`.",
- "operationId": "oauth_authorizations-revoke-authorization-for-application",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#revoke-an-authorization-for-an-application"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/revoke-grant-for-application.json b/openapi/ghe-2.14/operations/oauth_authorizations/revoke-grant-for-application.json
deleted file mode 100644
index cf06dd90d5..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/revoke-grant-for-application.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Revoke a grant for an application",
- "description": "OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/enterprise/2.14/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted.\n\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
- "operationId": "oauth_authorizations-revoke-grant-for-application",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#revoke-a-grant-for-an-application"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//grants/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/oauth_authorizations/update-authorization.json b/openapi/ghe-2.14/operations/oauth_authorizations/update-authorization.json
deleted file mode 100644
index 26d1f6fff4..0000000000
--- a/openapi/ghe-2.14/operations/oauth_authorizations/update-authorization.json
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "summary": "Update an existing authorization",
- "description": "If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.14/v3/auth/#working-with-two-factor-authentication).\"\n\nYou can only send one of these scope keys at a time.",
- "operationId": "oauth_authorizations-update-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/oauth_authorizations/#update-an-existing-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "Replaces the authorization scopes with these.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "add_scopes": {
- "description": "A list of scopes to add to this authorization.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "remove_scopes": {
- "description": "A list of scopes to remove from this authorization.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/add-or-update-membership.json b/openapi/ghe-2.14/operations/orgs/add-or-update-membership.json
deleted file mode 100644
index e4633a26aa..0000000000
--- a/openapi/ghe-2.14/operations/orgs/add-or-update-membership.json
+++ /dev/null
@@ -1,202 +0,0 @@
-{
- "summary": "Add or update organization membership",
- "description": "Only authenticated organization owners can add a member to the organization or update the member's role.",
- "operationId": "orgs-add-or-update-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#add-or-update-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "role": {
- "description": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.",
- "type": "string",
- "enum": [
- "admin",
- "member"
- ],
- "default": "member"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/check-membership.json b/openapi/ghe-2.14/operations/orgs/check-membership.json
deleted file mode 100644
index 56826fc7df..0000000000
--- a/openapi/ghe-2.14/operations/orgs/check-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check membership",
- "description": "Check if a user is, publicly or privately, a member of the organization.",
- "operationId": "orgs-check-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#check-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/check-public-membership.json b/openapi/ghe-2.14/operations/orgs/check-public-membership.json
deleted file mode 100644
index 954371addd..0000000000
--- a/openapi/ghe-2.14/operations/orgs/check-public-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check public membership",
- "description": "",
- "operationId": "orgs-check-public-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#check-public-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/conceal-membership.json b/openapi/ghe-2.14/operations/orgs/conceal-membership.json
deleted file mode 100644
index 54dc8ec0be..0000000000
--- a/openapi/ghe-2.14/operations/orgs/conceal-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Conceal a user's membership",
- "description": "",
- "operationId": "orgs-conceal-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#conceal-a-users-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/convert-member-to-outside-collaborator.json b/openapi/ghe-2.14/operations/orgs/convert-member-to-outside-collaborator.json
deleted file mode 100644
index 5127c6c241..0000000000
--- a/openapi/ghe-2.14/operations/orgs/convert-member-to-outside-collaborator.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Convert member to outside collaborator",
- "description": "When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see \"[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\".",
- "operationId": "orgs-convert-member-to-outside-collaborator",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/create-hook.json b/openapi/ghe-2.14/operations/orgs/create-hook.json
deleted file mode 100644
index b238ff30ec..0000000000
--- a/openapi/ghe-2.14/operations/orgs/create-hook.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "summary": "Create a hook",
- "description": "Here's how you can create a hook that posts payloads in JSON format:",
- "operationId": "orgs-create-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/hooks/#create-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Must be passed as \"web\".",
- "type": "string"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.14/v3/orgs/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.14/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name",
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks \\\n -d '{\"name\":\"name\",\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n name: 'name',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/delete-hook.json b/openapi/ghe-2.14/operations/orgs/delete-hook.json
deleted file mode 100644
index 00a6480207..0000000000
--- a/openapi/ghe-2.14/operations/orgs/delete-hook.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a hook",
- "description": "",
- "operationId": "orgs-delete-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/hooks/#delete-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/get-hook.json b/openapi/ghe-2.14/operations/orgs/get-hook.json
deleted file mode 100644
index fa8304e331..0000000000
--- a/openapi/ghe-2.14/operations/orgs/get-hook.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
- "summary": "Get single hook",
- "description": "",
- "operationId": "orgs-get-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/hooks/#get-single-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/get-membership-for-authenticated-user.json b/openapi/ghe-2.14/operations/orgs/get-membership-for-authenticated-user.json
deleted file mode 100644
index 0c0baeee62..0000000000
--- a/openapi/ghe-2.14/operations/orgs/get-membership-for-authenticated-user.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "summary": "Get your organization membership",
- "description": "",
- "operationId": "orgs-get-membership-for-authenticated-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#get-your-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/get-membership.json b/openapi/ghe-2.14/operations/orgs/get-membership.json
deleted file mode 100644
index 4b49ebd499..0000000000
--- a/openapi/ghe-2.14/operations/orgs/get-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get organization membership",
- "description": "In order to get a user's membership with an organization, the authenticated user must be an organization member.",
- "operationId": "orgs-get-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#get-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/get.json b/openapi/ghe-2.14/operations/orgs/get.json
deleted file mode 100644
index a7fb7546b2..0000000000
--- a/openapi/ghe-2.14/operations/orgs/get.json
+++ /dev/null
@@ -1,180 +0,0 @@
-{
- "summary": "Get an organization",
- "description": "To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/).",
- "operationId": "orgs-get",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/#get-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "billing_email": {
- "type": "string"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- }
- }
- },
- "default_repository_settings": {
- "type": "string"
- },
- "members_can_create_repositories": {
- "type": "boolean"
- },
- "two_factor_requirement_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/list-for-authenticated-user.json b/openapi/ghe-2.14/operations/orgs/list-for-authenticated-user.json
deleted file mode 100644
index f456616695..0000000000
--- a/openapi/ghe-2.14/operations/orgs/list-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your organizations",
- "description": "List organizations for the authenticated user.\n\n**OAuth scope requirements**\n\nThis only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response.",
- "operationId": "orgs-list-for-authenticated-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/#list-your-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/list-for-user.json b/openapi/ghe-2.14/operations/orgs/list-for-user.json
deleted file mode 100644
index 61397037b4..0000000000
--- a/openapi/ghe-2.14/operations/orgs/list-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List user organizations",
- "description": "List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user.\n\nThis method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List your organizations](https://developer.github.com/enterprise/2.14/v3/orgs/#list-your-organizations) API instead.",
- "operationId": "orgs-list-for-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/#list-user-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/list-hooks.json b/openapi/ghe-2.14/operations/orgs/list-hooks.json
deleted file mode 100644
index 6d692de5ef..0000000000
--- a/openapi/ghe-2.14/operations/orgs/list-hooks.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List hooks",
- "description": "",
- "operationId": "orgs-list-hooks",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/hooks/#list-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/list-members.json b/openapi/ghe-2.14/operations/orgs/list-members.json
deleted file mode 100644
index 6f6cd68953..0000000000
--- a/openapi/ghe-2.14/operations/orgs/list-members.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Members list",
- "description": "List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned.\n\n",
- "operationId": "orgs-list-members",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#members-list"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "2fa_disabled",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter members returned in the list. Can be one of: \n\\* `2fa_disabled` - Members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. Available for organization owners. \n\\* `all` - All members the authenticated user can see."
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "admin",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter members returned by their role. Can be one of: \n\\* `all` - All members of the organization, regardless of role. \n\\* `admin` - Organization owners. \n\\* `member` - Non-owner organization members."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/list-memberships.json b/openapi/ghe-2.14/operations/orgs/list-memberships.json
deleted file mode 100644
index a6990665b0..0000000000
--- a/openapi/ghe-2.14/operations/orgs/list-memberships.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List your organization memberships",
- "description": "",
- "operationId": "orgs-list-memberships",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#list-your-organization-memberships"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "active",
- "pending"
- ]
- },
- "required": false,
- "description": "Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/list-outside-collaborators.json b/openapi/ghe-2.14/operations/orgs/list-outside-collaborators.json
deleted file mode 100644
index 0ed0221dbe..0000000000
--- a/openapi/ghe-2.14/operations/orgs/list-outside-collaborators.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "List outside collaborators",
- "description": "List all users who are outside collaborators of an organization.\n\n",
- "operationId": "orgs-list-outside-collaborators",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/outside_collaborators/#list-outside-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "2fa_disabled",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter the list of outside collaborators. Can be one of: \n\\* `2fa_disabled`: Outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. \n\\* `all`: All outside collaborators."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/list-public-members.json b/openapi/ghe-2.14/operations/orgs/list-public-members.json
deleted file mode 100644
index cb162faf1a..0000000000
--- a/openapi/ghe-2.14/operations/orgs/list-public-members.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Public members list",
- "description": "Members of an organization can choose to have their membership publicized or not.",
- "operationId": "orgs-list-public-members",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#public-members-list"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/list.json b/openapi/ghe-2.14/operations/orgs/list.json
deleted file mode 100644
index d716cfc7f7..0000000000
--- a/openapi/ghe-2.14/operations/orgs/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List all organizations",
- "description": "Lists all organizations, in the order that they were created on GitHub Enterprise.\n\n**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.14/v3/#link-header) to get the URL for the next page of organizations.",
- "operationId": "orgs-list",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/#list-all-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last Organization that you've seen."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/organizations"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/ping-hook.json b/openapi/ghe-2.14/operations/orgs/ping-hook.json
deleted file mode 100644
index 12497ff5a4..0000000000
--- a/openapi/ghe-2.14/operations/orgs/ping-hook.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Ping a hook",
- "description": "This will trigger a [ping event](https://developer.github.com/enterprise/2.14/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "orgs-ping-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/hooks/#ping-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id/pings"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/publicize-membership.json b/openapi/ghe-2.14/operations/orgs/publicize-membership.json
deleted file mode 100644
index ca65b5592b..0000000000
--- a/openapi/ghe-2.14/operations/orgs/publicize-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Publicize a user's membership",
- "description": "The user can publicize their own membership. (A user cannot publicize the membership for another user.)\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "orgs-publicize-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#publicize-a-users-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/remove-member.json b/openapi/ghe-2.14/operations/orgs/remove-member.json
deleted file mode 100644
index 390f41b039..0000000000
--- a/openapi/ghe-2.14/operations/orgs/remove-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove a member",
- "description": "Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.",
- "operationId": "orgs-remove-member",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#remove-a-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/remove-membership.json b/openapi/ghe-2.14/operations/orgs/remove-membership.json
deleted file mode 100644
index cfbe97f9ba..0000000000
--- a/openapi/ghe-2.14/operations/orgs/remove-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove organization membership",
- "description": "In order to remove a user's membership with an organization, the authenticated user must be an organization owner.\n\nIf the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases.",
- "operationId": "orgs-remove-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#remove-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/remove-outside-collaborator.json b/openapi/ghe-2.14/operations/orgs/remove-outside-collaborator.json
deleted file mode 100644
index 1dd3fb8de3..0000000000
--- a/openapi/ghe-2.14/operations/orgs/remove-outside-collaborator.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove outside collaborator",
- "description": "Removing a user from this list will remove them from all the organization's repositories.",
- "operationId": "orgs-remove-outside-collaborator",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/outside_collaborators/#remove-outside-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/update-hook.json b/openapi/ghe-2.14/operations/orgs/update-hook.json
deleted file mode 100644
index 5f867dd2da..0000000000
--- a/openapi/ghe-2.14/operations/orgs/update-hook.json
+++ /dev/null
@@ -1,159 +0,0 @@
-{
- "summary": "Edit a hook",
- "description": "",
- "operationId": "orgs-update-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/hooks/#edit-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.14/v3/orgs/hooks/#update-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.14/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/update-membership.json b/openapi/ghe-2.14/operations/orgs/update-membership.json
deleted file mode 100644
index 2755feb883..0000000000
--- a/openapi/ghe-2.14/operations/orgs/update-membership.json
+++ /dev/null
@@ -1,194 +0,0 @@
-{
- "summary": "Edit your organization membership",
- "description": "",
- "operationId": "orgs-update-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/members/#edit-your-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state that the membership should be in. Only `\"active\"` will be accepted.",
- "type": "string",
- "enum": [
- "active"
- ]
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs/ \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/orgs/update.json b/openapi/ghe-2.14/operations/orgs/update.json
deleted file mode 100644
index 95506bded5..0000000000
--- a/openapi/ghe-2.14/operations/orgs/update.json
+++ /dev/null
@@ -1,239 +0,0 @@
-{
- "summary": "Edit an organization",
- "description": "",
- "operationId": "orgs-update",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/orgs/#edit-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "billing_email": {
- "description": "Billing email address. This address is not publicized.",
- "type": "string"
- },
- "company": {
- "description": "The company name.",
- "type": "string"
- },
- "email": {
- "description": "The publicly visible email address.",
- "type": "string"
- },
- "location": {
- "description": "The location.",
- "type": "string"
- },
- "name": {
- "description": "The shorthand name of the company.",
- "type": "string"
- },
- "description": {
- "description": "The description of the company.",
- "type": "string"
- },
- "has_organization_projects": {
- "description": "Toggles whether organization projects are enabled for the organization.",
- "type": "boolean"
- },
- "has_repository_projects": {
- "description": "Toggles whether repository projects are enabled for repositories that belong to the organization.",
- "type": "boolean"
- },
- "default_repository_permission": {
- "description": "Default permission level members have for organization repositories: \n\\* `read` - can pull, but not push to or administer this repository. \n\\* `write` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push, and administer this repository. \n\\* `none` - no permissions granted by default.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin",
- "none"
- ],
- "default": "read"
- },
- "members_can_create_repositories": {
- "description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only admin members can create repositories.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "billing_email": {
- "type": "string"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- }
- }
- },
- "default_repository_settings": {
- "type": "string"
- },
- "members_can_create_repositories": {
- "type": "boolean"
- },
- "two_factor_requirement_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/add-collaborator.json b/openapi/ghe-2.14/operations/projects/add-collaborator.json
deleted file mode 100644
index 4438fe84ff..0000000000
--- a/openapi/ghe-2.14/operations/projects/add-collaborator.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "summary": "Add user as a collaborator",
- "description": "Adds a collaborator to a an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator.",
- "operationId": "projects-add-collaborator",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/collaborators/#add-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\" Can be one of: \n\\* `read` - can read, but not write to or administer this project. \n\\* `write` - can read and write, but not administer this project. \n\\* `admin` - can read, write and administer this project.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ],
- "default": "write"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/create-card.json b/openapi/ghe-2.14/operations/projects/create-card.json
deleted file mode 100644
index c2eba39df6..0000000000
--- a/openapi/ghe-2.14/operations/projects/create-card.json
+++ /dev/null
@@ -1,168 +0,0 @@
-{
- "summary": "Create a project card",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.14/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "projects-create-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/cards/#create-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "note": {
- "description": "The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`.",
- "type": "string"
- },
- "content_id": {
- "description": "The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/enterprise/2.14/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/enterprise/2.14/v3/pulls/#list-pull-requests) endpoints to find this id. \n**Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`.",
- "type": "integer"
- },
- "content_type": {
- "description": "**Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "column_url": {
- "type": "string"
- },
- "content_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//cards"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/create-column.json b/openapi/ghe-2.14/operations/projects/create-column.json
deleted file mode 100644
index 2caf54c86e..0000000000
--- a/openapi/ghe-2.14/operations/projects/create-column.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Create a project column",
- "description": "",
- "operationId": "projects-create-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/columns/#create-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the column.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//columns \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/create-for-org.json b/openapi/ghe-2.14/operations/projects/create-for-org.json
deleted file mode 100644
index bf712dd1f2..0000000000
--- a/openapi/ghe-2.14/operations/projects/create-for-org.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Create an organization project",
- "description": "Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-create-for-org",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/#create-an-organization-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/orgs//projects \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/create-for-repo.json b/openapi/ghe-2.14/operations/projects/create-for-repo.json
deleted file mode 100644
index 462fb3a2c3..0000000000
--- a/openapi/ghe-2.14/operations/projects/create-for-repo.json
+++ /dev/null
@@ -1,208 +0,0 @@
-{
- "summary": "Create a repository project",
- "description": "Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-create-for-repo",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/#create-a-repository-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/projects \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/delete-card.json b/openapi/ghe-2.14/operations/projects/delete-card.json
deleted file mode 100644
index 13683d8fc2..0000000000
--- a/openapi/ghe-2.14/operations/projects/delete-card.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project card",
- "description": "",
- "operationId": "projects-delete-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/cards/#delete-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/delete-column.json b/openapi/ghe-2.14/operations/projects/delete-column.json
deleted file mode 100644
index 9670d844a9..0000000000
--- a/openapi/ghe-2.14/operations/projects/delete-column.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project column",
- "description": "",
- "operationId": "projects-delete-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/columns/#delete-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/delete.json b/openapi/ghe-2.14/operations/projects/delete.json
deleted file mode 100644
index bfa332620d..0000000000
--- a/openapi/ghe-2.14/operations/projects/delete.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project",
- "description": "Deletes a project board. Returns a `404 Not Found` status if projects are disabled.",
- "operationId": "projects-delete",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/#delete-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/get-card.json b/openapi/ghe-2.14/operations/projects/get-card.json
deleted file mode 100644
index af16c8a3b5..0000000000
--- a/openapi/ghe-2.14/operations/projects/get-card.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Get a project card",
- "description": "",
- "operationId": "projects-get-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/cards/#get-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/get-column.json b/openapi/ghe-2.14/operations/projects/get-column.json
deleted file mode 100644
index b8f2c210f9..0000000000
--- a/openapi/ghe-2.14/operations/projects/get-column.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Get a project column",
- "description": "",
- "operationId": "projects-get-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/columns/#get-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/get.json b/openapi/ghe-2.14/operations/projects/get.json
deleted file mode 100644
index 630ffe86d1..0000000000
--- a/openapi/ghe-2.14/operations/projects/get.json
+++ /dev/null
@@ -1,177 +0,0 @@
-{
- "summary": "Get a project",
- "description": "Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-get",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/#get-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/list-cards.json b/openapi/ghe-2.14/operations/projects/list-cards.json
deleted file mode 100644
index 9c197678d6..0000000000
--- a/openapi/ghe-2.14/operations/projects/list-cards.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "List project cards",
- "description": "",
- "operationId": "projects-list-cards",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/cards/#list-project-cards"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//cards"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/list-collaborators.json b/openapi/ghe-2.14/operations/projects/list-collaborators.json
deleted file mode 100644
index 16a5f25933..0000000000
--- a/openapi/ghe-2.14/operations/projects/list-collaborators.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List collaborators",
- "description": "Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators.",
- "operationId": "projects-list-collaborators",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/collaborators/#list-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "outside",
- "direct",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filters the collaborators by their affiliation. Can be one of: \n\\* `outside`: Outside collaborators of a project that are not a member of the project's organization. \n\\* `direct`: Collaborators with permissions to a project, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/list-columns.json b/openapi/ghe-2.14/operations/projects/list-columns.json
deleted file mode 100644
index c10fdc1cd5..0000000000
--- a/openapi/ghe-2.14/operations/projects/list-columns.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "List project columns",
- "description": "",
- "operationId": "projects-list-columns",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/columns/#list-project-columns"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//columns"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/list-for-org.json b/openapi/ghe-2.14/operations/projects/list-for-org.json
deleted file mode 100644
index 611534f595..0000000000
--- a/openapi/ghe-2.14/operations/projects/list-for-org.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List organization projects",
- "description": "Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.\n\ns",
- "operationId": "projects-list-for-org",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/#list-organization-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/orgs//projects"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/list-for-repo.json b/openapi/ghe-2.14/operations/projects/list-for-repo.json
deleted file mode 100644
index 18da3d1c6a..0000000000
--- a/openapi/ghe-2.14/operations/projects/list-for-repo.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "List repository projects",
- "description": "Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-list-for-repo",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/#list-repository-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/projects"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/move-card.json b/openapi/ghe-2.14/operations/projects/move-card.json
deleted file mode 100644
index a4c5a0d25b..0000000000
--- a/openapi/ghe-2.14/operations/projects/move-card.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Move a project card",
- "description": "",
- "operationId": "projects-move-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/cards/#move-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "position": {
- "description": "Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`.",
- "type": "string",
- "pattern": "^(top|bottom|after:\\d+)$"
- },
- "column_id": {
- "description": "The `id` value of a column in the same project.",
- "type": "integer"
- }
- },
- "required": [
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards//moves \\\n -d '{\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/move-column.json b/openapi/ghe-2.14/operations/projects/move-column.json
deleted file mode 100644
index 484055ed03..0000000000
--- a/openapi/ghe-2.14/operations/projects/move-column.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Move a project column",
- "description": "",
- "operationId": "projects-move-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/columns/#move-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "position": {
- "description": "Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project.",
- "type": "string",
- "pattern": "^(first|last|after:\\d+)$"
- }
- },
- "required": [
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//moves \\\n -d '{\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/remove-collaborator.json b/openapi/ghe-2.14/operations/projects/remove-collaborator.json
deleted file mode 100644
index 422b85331c..0000000000
--- a/openapi/ghe-2.14/operations/projects/remove-collaborator.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Remove user as a collaborator",
- "description": "Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator.",
- "operationId": "projects-remove-collaborator",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/collaborators/#remove-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/review-user-permission-level.json b/openapi/ghe-2.14/operations/projects/review-user-permission-level.json
deleted file mode 100644
index 462cc1debf..0000000000
--- a/openapi/ghe-2.14/operations/projects/review-user-permission-level.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "summary": "Review a user's permission level",
- "description": "Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level.",
- "operationId": "projects-review-user-permission-level",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/collaborators/#review-a-users-permission-level"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "permission": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username/permission"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/update-card.json b/openapi/ghe-2.14/operations/projects/update-card.json
deleted file mode 100644
index eb0be924ba..0000000000
--- a/openapi/ghe-2.14/operations/projects/update-card.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "Update a project card",
- "description": "",
- "operationId": "projects-update-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/cards/#update-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "note": {
- "description": "The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/update-column.json b/openapi/ghe-2.14/operations/projects/update-column.json
deleted file mode 100644
index 3d4ac58371..0000000000
--- a/openapi/ghe-2.14/operations/projects/update-column.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Update a project column",
- "description": "",
- "operationId": "projects-update-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/columns/#update-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new name of the column.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/ \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/projects/update.json b/openapi/ghe-2.14/operations/projects/update.json
deleted file mode 100644
index 9be3bcca01..0000000000
--- a/openapi/ghe-2.14/operations/projects/update.json
+++ /dev/null
@@ -1,212 +0,0 @@
-{
- "summary": "Update a project",
- "description": "Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-update",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/projects/#update-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- },
- "state": {
- "description": "State of the project. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "organization_permission": {
- "description": "The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/enterprise/2.14/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/enterprise/2.14/v3/projects/collaborators/#add-user-as-a-collaborator). \n \n**Note:** Updating a project's `organization_permission` requires `admin` access to the project. \n \nCan be one of: \n\\* `read` - Organization members can read, but not write to or administer this project. \n\\* `write` - Organization members can read and write, but not administer this project. \n\\* `admin` - Organization members can read, write and administer this project. \n\\* `none` - Organization members can only see this project if it is public.",
- "type": "string"
- },
- "private": {
- "description": "Sets the visibility of a project board. Setting `private` is only available for organization projects. **Note:** Updating a project's visibility requires `admin` access to the project. \n \nCan be one of: \n\\* `false` - Anyone can see the project. \n\\* `true` - Organization members with the appropriate `organization_permission` can see project boards in an organization account.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/pulls/check-if-merged.json b/openapi/ghe-2.14/operations/pulls/check-if-merged.json
deleted file mode 100644
index b6d8f1a4df..0000000000
--- a/openapi/ghe-2.14/operations/pulls/check-if-merged.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Get if a pull request has been merged",
- "description": "",
- "operationId": "pulls-check-if-merged",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/#get-if-a-pull-request-has-been-merged"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/merge"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/create-comment-reply.json b/openapi/ghe-2.14/operations/pulls/create-comment-reply.json
deleted file mode 100644
index 62ee9e1888..0000000000
--- a/openapi/ghe-2.14/operations/pulls/create-comment-reply.json
+++ /dev/null
@@ -1,248 +0,0 @@
-{
- "summary": "Create a comment reply",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.14/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.14/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-comment-reply",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- },
- "in_reply_to": {
- "description": "The comment ID to reply to. **Note**: This must be the ID of a _top-level comment_, not a reply to that comment. Replies to replies are not supported.",
- "type": "integer"
- }
- },
- "required": [
- "body",
- "in_reply_to"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments \\\n -d '{\"body\":\"body\",\"in_reply_to\":\"in_reply_to\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n body: 'body',\n in_reply_to: 'in_reply_to'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/create-comment.json b/openapi/ghe-2.14/operations/pulls/create-comment.json
deleted file mode 100644
index e0426db049..0000000000
--- a/openapi/ghe-2.14/operations/pulls/create-comment.json
+++ /dev/null
@@ -1,258 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.14/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.14/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- },
- "commit_id": {
- "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "type": "string"
- },
- "path": {
- "description": "The relative path to the file that necessitates a comment.",
- "type": "string"
- },
- "position": {
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "type": "integer"
- }
- },
- "required": [
- "body",
- "commit_id",
- "path",
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments \\\n -d '{\"body\":\"body\",\"commit_id\":\"commit_id\",\"path\":\"path\",\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n body: 'body',\n commit_id: 'commit_id',\n path: 'path',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/create-from-issue.json b/openapi/ghe-2.14/operations/pulls/create-from-issue.json
deleted file mode 100644
index e2255bc70b..0000000000
--- a/openapi/ghe-2.14/operations/pulls/create-from-issue.json
+++ /dev/null
@@ -1,1528 +0,0 @@
-{
- "summary": "Create a Pull Request from an Issue",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create-from-issue",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/#create-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "issue": {
- "description": "The issue number in this repository to turn into a Pull Request.",
- "type": "integer"
- },
- "head": {
- "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "type": "string"
- },
- "base": {
- "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- },
- "required": [
- "issue",
- "head",
- "base"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls \\\n -d '{\"issue\":\"issue\",\"head\":\"head\",\"base\":\"base\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue: 'issue',\n head: 'head',\n base: 'base'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/pulls/create-review-request.json b/openapi/ghe-2.14/operations/pulls/create-review-request.json
deleted file mode 100644
index 1daf6e2e4e..0000000000
--- a/openapi/ghe-2.14/operations/pulls/create-review-request.json
+++ /dev/null
@@ -1,1468 +0,0 @@
-{
- "summary": "Create a review request",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create-review-request",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/review_requests/#create-a-review-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reviewers": {
- "description": "An array of user `login`s that will be requested.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "team_reviewers": {
- "description": "An array of team `slug`s that will be requested.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/create-review.json b/openapi/ghe-2.14/operations/pulls/create-review.json
deleted file mode 100644
index 6029c9fa41..0000000000
--- a/openapi/ghe-2.14/operations/pulls/create-review.json
+++ /dev/null
@@ -1,244 +0,0 @@
-{
- "summary": "Create a pull request review",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.14/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.14/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/reviews/#create-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "commit_id": {
- "description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "type": "string"
- },
- "body": {
- "description": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "type": "string"
- },
- "event": {
- "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/enterprise/2.14/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready.",
- "type": "string",
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- },
- "comments": {
- "description": "Use the following table to specify the location, destination, and contents of the draft review comment.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The relative path to the file that necessitates a review comment.",
- "type": "string"
- },
- "position": {
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "type": "integer"
- },
- "body": {
- "description": "Text of the review comment.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "position",
- "body"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews \\\n -d '{\"comments[].path\":\"comments[].path\",\"comments[].position\":\"comments[].position\",\"comments[].body\":\"comments[].body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n 'comments[].path': 'comments[].path',\n 'comments[].position': 'comments[].position',\n 'comments[].body': 'comments[].body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/create.json b/openapi/ghe-2.14/operations/pulls/create.json
deleted file mode 100644
index 5453d1019a..0000000000
--- a/openapi/ghe-2.14/operations/pulls/create.json
+++ /dev/null
@@ -1,1532 +0,0 @@
-{
- "summary": "Create a pull request",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/#create-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the pull request.",
- "type": "string"
- },
- "head": {
- "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "type": "string"
- },
- "base": {
- "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the pull request.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- },
- "required": [
- "title",
- "head",
- "base"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls \\\n -d '{\"title\":\"title\",\"head\":\"head\",\"base\":\"base\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title',\n head: 'head',\n base: 'base'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/pulls/delete-comment.json b/openapi/ghe-2.14/operations/pulls/delete-comment.json
deleted file mode 100644
index f167d04ae8..0000000000
--- a/openapi/ghe-2.14/operations/pulls/delete-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "pulls-delete-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/pulls/delete-pending-review.json b/openapi/ghe-2.14/operations/pulls/delete-pending-review.json
deleted file mode 100644
index 1236b0fac6..0000000000
--- a/openapi/ghe-2.14/operations/pulls/delete-pending-review.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Delete a pending review",
- "description": "",
- "operationId": "pulls-delete-pending-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/reviews/#delete-a-pending-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/delete-review-request.json b/openapi/ghe-2.14/operations/pulls/delete-review-request.json
deleted file mode 100644
index 6e3820aebe..0000000000
--- a/openapi/ghe-2.14/operations/pulls/delete-review-request.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "summary": "Delete a review request",
- "description": "",
- "operationId": "pulls-delete-review-request",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/review_requests/#delete-a-review-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reviewers": {
- "description": "An array of user `login`s that will be removed.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "team_reviewers": {
- "description": "An array of team `slug`s that will be removed.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/dismiss-review.json b/openapi/ghe-2.14/operations/pulls/dismiss-review.json
deleted file mode 100644
index 0662d61dfc..0000000000
--- a/openapi/ghe-2.14/operations/pulls/dismiss-review.json
+++ /dev/null
@@ -1,217 +0,0 @@
-{
- "summary": "Dismiss a pull request review",
- "description": "**Note:** To dismiss a pull request review on a [protected branch](https://developer.github.com/enterprise/2.14/v3/repos/branches/), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.",
- "operationId": "pulls-dismiss-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/reviews/#dismiss-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The message for the pull request review dismissal",
- "type": "string"
- }
- },
- "required": [
- "message"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/dismissals \\\n -d '{\"message\":\"message\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id',\n message: 'message'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/get-comment.json b/openapi/ghe-2.14/operations/pulls/get-comment.json
deleted file mode 100644
index 14cf33c753..0000000000
--- a/openapi/ghe-2.14/operations/pulls/get-comment.json
+++ /dev/null
@@ -1,215 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "pulls-get-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/pulls/get-comments-for-review.json b/openapi/ghe-2.14/operations/pulls/get-comments-for-review.json
deleted file mode 100644
index 7ccd67ab57..0000000000
--- a/openapi/ghe-2.14/operations/pulls/get-comments-for-review.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "Get comments for a single review",
- "description": "",
- "operationId": "pulls-get-comments-for-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/reviews/#get-comments-for-a-single-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/get-review.json b/openapi/ghe-2.14/operations/pulls/get-review.json
deleted file mode 100644
index d3c5d11ed4..0000000000
--- a/openapi/ghe-2.14/operations/pulls/get-review.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Get a single review",
- "description": "",
- "operationId": "pulls-get-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/reviews/#get-a-single-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/get.json b/openapi/ghe-2.14/operations/pulls/get.json
deleted file mode 100644
index 02d7d767e6..0000000000
--- a/openapi/ghe-2.14/operations/pulls/get.json
+++ /dev/null
@@ -1,1515 +0,0 @@
-{
- "summary": "Get a single pull request",
- "description": "Lists details of a pull request by providing its number.\n\nWhen you get, [create](https://developer.github.com/enterprise/2.14/v3/pulls/#create-a-pull-request), or [edit](https://developer.github.com/enterprise/2.14/v3/pulls/#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see \"[Checking mergeability of pull requests](https://developer.github.com/enterprise/2.14/v3/git/#checking-mergeability-of-pull-requests)\".\n\nThe value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit.\n\nThe value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request:\n\n* If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit.\n* If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch.\n* If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to.\n\nPass the appropriate [media type](https://developer.github.com/enterprise/2.14/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.",
- "operationId": "pulls-get",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/#get-a-single-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/list-comments-for-repo.json b/openapi/ghe-2.14/operations/pulls/list-comments-for-repo.json
deleted file mode 100644
index 7b80091f4f..0000000000
--- a/openapi/ghe-2.14/operations/pulls/list-comments-for-repo.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "summary": "List comments in a repository",
- "description": "By default, review comments are ordered by ascending ID.",
- "operationId": "pulls-list-comments-for-repo",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/comments/#list-comments-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Can be either `created` or `updated` comments."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/pulls/list-comments.json b/openapi/ghe-2.14/operations/pulls/list-comments.json
deleted file mode 100644
index c9a1aa17ea..0000000000
--- a/openapi/ghe-2.14/operations/pulls/list-comments.json
+++ /dev/null
@@ -1,142 +0,0 @@
-{
- "summary": "List comments on a pull request",
- "description": "By default, review comments are ordered by ascending ID.",
- "operationId": "pulls-list-comments",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/comments/#list-comments-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Can be either `created` or `updated` comments."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/list-commits.json b/openapi/ghe-2.14/operations/pulls/list-commits.json
deleted file mode 100644
index bfcd6652e4..0000000000
--- a/openapi/ghe-2.14/operations/pulls/list-commits.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List commits on a pull request",
- "description": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [Commit List API](https://developer.github.com/enterprise/2.14/v3/repos/commits/#list-commits-on-a-repository).",
- "operationId": "pulls-list-commits",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/#list-commits-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/list-files.json b/openapi/ghe-2.14/operations/pulls/list-files.json
deleted file mode 100644
index 6d30c9acbc..0000000000
--- a/openapi/ghe-2.14/operations/pulls/list-files.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List pull requests files",
- "description": "**Note:** The response includes a maximum of 300 files.",
- "operationId": "pulls-list-files",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/#list-pull-requests-files"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/files"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/list-review-requests.json b/openapi/ghe-2.14/operations/pulls/list-review-requests.json
deleted file mode 100644
index d6fa8c79d2..0000000000
--- a/openapi/ghe-2.14/operations/pulls/list-review-requests.json
+++ /dev/null
@@ -1,212 +0,0 @@
-{
- "summary": "List review requests",
- "description": "",
- "operationId": "pulls-list-review-requests",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/review_requests/#list-review-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/list-reviews.json b/openapi/ghe-2.14/operations/pulls/list-reviews.json
deleted file mode 100644
index 863587143b..0000000000
--- a/openapi/ghe-2.14/operations/pulls/list-reviews.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List reviews on a pull request",
- "description": "The list of reviews returns in chronological order.",
- "operationId": "pulls-list-reviews",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/reviews/#list-reviews-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/list.json b/openapi/ghe-2.14/operations/pulls/list.json
deleted file mode 100644
index 6d2b68872a..0000000000
--- a/openapi/ghe-2.14/operations/pulls/list.json
+++ /dev/null
@@ -1,149 +0,0 @@
-{
- "summary": "List pull requests",
- "description": "",
- "operationId": "pulls-list",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/#list-pull-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Either `open`, `closed`, or `all` to filter by state."
- },
- {
- "name": "head",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`."
- },
- {
- "name": "base",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter pulls by base branch name. Example: `gh-pages`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "popularity",
- "long-running"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/pulls/merge.json b/openapi/ghe-2.14/operations/pulls/merge.json
deleted file mode 100644
index a4bbe95597..0000000000
--- a/openapi/ghe-2.14/operations/pulls/merge.json
+++ /dev/null
@@ -1,113 +0,0 @@
-{
- "summary": "Merge a pull request (Merge Button)",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-merge",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/#merge-a-pull-request-merge-button"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "commit_title": {
- "description": "Title for the automatic commit message.",
- "type": "string"
- },
- "commit_message": {
- "description": "Extra detail to append to automatic commit message.",
- "type": "string"
- },
- "sha": {
- "description": "SHA that pull request head must match to allow merge.",
- "type": "string"
- },
- "merge_method": {
- "description": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "type": "string",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/merge"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/submit-review.json b/openapi/ghe-2.14/operations/pulls/submit-review.json
deleted file mode 100644
index f3d6654c2a..0000000000
--- a/openapi/ghe-2.14/operations/pulls/submit-review.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Submit a pull request review",
- "description": "",
- "operationId": "pulls-submit-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/reviews/#submit-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The body text of the pull request review",
- "type": "string"
- },
- "event": {
- "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "type": "string",
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- }
- },
- "required": [
- "event"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/events \\\n -d '{\"event\":\"event\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id',\n event: 'event'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/pulls/update-comment.json b/openapi/ghe-2.14/operations/pulls/update-comment.json
deleted file mode 100644
index 25eb82df8e..0000000000
--- a/openapi/ghe-2.14/operations/pulls/update-comment.json
+++ /dev/null
@@ -1,233 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "pulls-update-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/pulls/update.json b/openapi/ghe-2.14/operations/pulls/update.json
deleted file mode 100644
index 163cc3c817..0000000000
--- a/openapi/ghe-2.14/operations/pulls/update.json
+++ /dev/null
@@ -1,1550 +0,0 @@
-{
- "summary": "Update a pull request",
- "description": "",
- "operationId": "pulls-update",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/pulls/#update-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the pull request.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the pull request.",
- "type": "string"
- },
- "state": {
- "description": "State of this Pull Request. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "base": {
- "description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/rate_limit/get.json b/openapi/ghe-2.14/operations/rate_limit/get.json
deleted file mode 100644
index c5953b1c3d..0000000000
--- a/openapi/ghe-2.14/operations/rate_limit/get.json
+++ /dev/null
@@ -1,113 +0,0 @@
-{
- "summary": "Get your current rate limit status",
- "description": "**Note:** Accessing this endpoint does not count against your REST API rate limit.\n\n**Understanding your rate limit status**\n\nThe Search API has a [custom rate limit](https://developer.github.com/enterprise/2.14/v3/search/#rate-limit), separate from the rate limit governing the rest of the REST API. The GraphQL API also has a [custom rate limit](https://developer.github.com/enterprise/2.14/v4/guides/resource-limitations/#rate-limit) that is separate from and calculated differently than rate limits in the REST API.\n\nFor these reasons, the Rate Limit API response categorizes your rate limit. Under `resources`, you'll see three objects:\n\n* The `core` object provides your rate limit status for all non-search-related resources in the REST API.\n* The `search` object provides your rate limit status for the [Search API](https://developer.github.com/enterprise/2.14/v3/search/).\n* The `graphql` object provides your rate limit status for the [GraphQL API](https://developer.github.com/enterprise/2.14/v4/).\n\nFor more information on the headers and values in the rate limit response, see \"[Rate limiting](https://developer.github.com/enterprise/2.14/v3/#rate-limiting).\"\n\nThe `rate` object (shown at the bottom of the response above) is deprecated.\n\nIf you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object.",
- "operationId": "rate_limit-get",
- "tags": [
- "rate_limit"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/rate_limit/#get-your-current-rate-limit-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "resources": {
- "type": "object",
- "properties": {
- "core": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- },
- "search": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- },
- "graphql": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- }
- }
- },
- "rate": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/rate_limit"
- },
- {
- "lang": "JS",
- "source": "octokit.rate_limit.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/create-for-commit-comment.json b/openapi/ghe-2.14/operations/reactions/create-for-commit-comment.json
deleted file mode 100644
index ad57c6315a..0000000000
--- a/openapi/ghe-2.14/operations/reactions/create-for-commit-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a commit comment",
- "description": "Create a reaction to a [commit comment](https://developer.github.com/enterprise/2.14/v3/repos/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment.",
- "operationId": "reactions-create-for-commit-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#create-reaction-for-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types) to add to the commit comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/create-for-issue-comment.json b/openapi/ghe-2.14/operations/reactions/create-for-issue-comment.json
deleted file mode 100644
index 4b0e4c4589..0000000000
--- a/openapi/ghe-2.14/operations/reactions/create-for-issue-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for an issue comment",
- "description": "Create a reaction to an [issue comment](https://developer.github.com/enterprise/2.14/v3/issues/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment.",
- "operationId": "reactions-create-for-issue-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#create-reaction-for-an-issue-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types) to add to the issue comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/create-for-issue.json b/openapi/ghe-2.14/operations/reactions/create-for-issue.json
deleted file mode 100644
index 7b03c0eb93..0000000000
--- a/openapi/ghe-2.14/operations/reactions/create-for-issue.json
+++ /dev/null
@@ -1,189 +0,0 @@
-{
- "summary": "Create reaction for an issue",
- "description": "Create a reaction to an [issue](https://developer.github.com/enterprise/2.14/v3/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue.",
- "operationId": "reactions-create-for-issue",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#create-reaction-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types) to add to the issue.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/reactions/create-for-pull-request-review-comment.json b/openapi/ghe-2.14/operations/reactions/create-for-pull-request-review-comment.json
deleted file mode 100644
index 4307bdd9f7..0000000000
--- a/openapi/ghe-2.14/operations/reactions/create-for-pull-request-review-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a pull request review comment",
- "description": "Create a reaction to a [pull request review comment](https://developer.github.com/enterprise/2.14/v3/pulls/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment.",
- "operationId": "reactions-create-for-pull-request-review-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#create-reaction-for-a-pull-request-review-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types) to add to the pull request review comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/create-for-team-discussion-comment.json b/openapi/ghe-2.14/operations/reactions/create-for-team-discussion-comment.json
deleted file mode 100644
index 007fa47ea2..0000000000
--- a/openapi/ghe-2.14/operations/reactions/create-for-team-discussion-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a team discussion comment",
- "description": "Create a reaction to a [team discussion comment](https://developer.github.com/enterprise/2.14/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment.",
- "operationId": "reactions-create-for-team-discussion-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#create-reaction-for-a-team-discussion-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types) to add to the team discussion comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/create-for-team-discussion.json b/openapi/ghe-2.14/operations/reactions/create-for-team-discussion.json
deleted file mode 100644
index 4c6e33dbdb..0000000000
--- a/openapi/ghe-2.14/operations/reactions/create-for-team-discussion.json
+++ /dev/null
@@ -1,170 +0,0 @@
-{
- "summary": "Create reaction for a team discussion",
- "description": "Create a reaction to a [team discussion](https://developer.github.com/enterprise/2.14/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion.",
- "operationId": "reactions-create-for-team-discussion",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#create-reaction-for-a-team-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types) to add to the team discussion.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/delete.json b/openapi/ghe-2.14/operations/reactions/delete.json
deleted file mode 100644
index 61c63c158a..0000000000
--- a/openapi/ghe-2.14/operations/reactions/delete.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a reaction",
- "description": "OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/enterprise/2.14/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/enterprise/2.14/v3/teams/discussion_comments/).",
- "operationId": "reactions-delete",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#delete-a-reaction"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "reaction_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "reaction_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/reactions/"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n reaction_id: 'reaction_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/list-for-commit-comment.json b/openapi/ghe-2.14/operations/reactions/list-for-commit-comment.json
deleted file mode 100644
index d039b5b94b..0000000000
--- a/openapi/ghe-2.14/operations/reactions/list-for-commit-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a commit comment",
- "description": "List the reactions to a [commit comment](https://developer.github.com/enterprise/2.14/v3/repos/comments/).",
- "operationId": "reactions-list-for-commit-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#list-reactions-for-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/list-for-issue-comment.json b/openapi/ghe-2.14/operations/reactions/list-for-issue-comment.json
deleted file mode 100644
index eac64aa149..0000000000
--- a/openapi/ghe-2.14/operations/reactions/list-for-issue-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for an issue comment",
- "description": "List the reactions to an [issue comment](https://developer.github.com/enterprise/2.14/v3/issues/comments/).",
- "operationId": "reactions-list-for-issue-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#list-reactions-for-an-issue-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/list-for-issue.json b/openapi/ghe-2.14/operations/reactions/list-for-issue.json
deleted file mode 100644
index 58c9587ad8..0000000000
--- a/openapi/ghe-2.14/operations/reactions/list-for-issue.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "summary": "List reactions for an issue",
- "description": "List the reactions to an [issue](https://developer.github.com/enterprise/2.14/v3/issues/).",
- "operationId": "reactions-list-for-issue",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#list-reactions-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/reactions/list-for-pull-request-review-comment.json b/openapi/ghe-2.14/operations/reactions/list-for-pull-request-review-comment.json
deleted file mode 100644
index 8bb14bb58b..0000000000
--- a/openapi/ghe-2.14/operations/reactions/list-for-pull-request-review-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a pull request review comment",
- "description": "List the reactions to a [pull request review comment](https://developer.github.com/enterprise/2.14/v3/pulls/comments/).",
- "operationId": "reactions-list-for-pull-request-review-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#list-reactions-for-a-pull-request-review-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/list-for-team-discussion-comment.json b/openapi/ghe-2.14/operations/reactions/list-for-team-discussion-comment.json
deleted file mode 100644
index d21d4e1382..0000000000
--- a/openapi/ghe-2.14/operations/reactions/list-for-team-discussion-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a team discussion comment",
- "description": "List the reactions to a [team discussion comment](https://developer.github.com/enterprise/2.14/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "reactions-list-for-team-discussion-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#list-reactions-for-a-team-discussion-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/reactions/list-for-team-discussion.json b/openapi/ghe-2.14/operations/reactions/list-for-team-discussion.json
deleted file mode 100644
index 806360285c..0000000000
--- a/openapi/ghe-2.14/operations/reactions/list-for-team-discussion.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List reactions for a team discussion",
- "description": "List the reactions to a [team discussion](https://developer.github.com/enterprise/2.14/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "reactions-list-for-team-discussion",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/reactions/#list-reactions-for-a-team-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.14/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/accept-invitation.json b/openapi/ghe-2.14/operations/repos/accept-invitation.json
deleted file mode 100644
index 3417c2aeed..0000000000
--- a/openapi/ghe-2.14/operations/repos/accept-invitation.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Accept a repository invitation",
- "description": "",
- "operationId": "repos-accept-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/invitations/#accept-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations/"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/add-collaborator.json b/openapi/ghe-2.14/operations/repos/add-collaborator.json
deleted file mode 100644
index 73a5419d1a..0000000000
--- a/openapi/ghe-2.14/operations/repos/add-collaborator.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "Add user as a collaborator",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "repos-add-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/collaborators/#add-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: \n\\* `pull` - can pull, but not push to or administer this repository. \n\\* `push` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push and administer this repository.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "push"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/add-deploy-key.json b/openapi/ghe-2.14/operations/repos/add-deploy-key.json
deleted file mode 100644
index 5978639e46..0000000000
--- a/openapi/ghe-2.14/operations/repos/add-deploy-key.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "summary": "Add a new deploy key",
- "description": "Here's how you can create a read-only deploy key:\n\n",
- "operationId": "repos-add-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/keys/#add-a-new-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "A name for the key.",
- "type": "string"
- },
- "key": {
- "description": "The contents of the key.",
- "type": "string"
- },
- "read_only": {
- "description": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/).\"",
- "type": "boolean"
- }
- },
- "required": [
- "key"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys \\\n -d '{\"key\":\"key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key: 'key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/add-protected-branch-admin-enforcement.json b/openapi/ghe-2.14/operations/repos/add-protected-branch-admin-enforcement.json
deleted file mode 100644
index f2d1601ce0..0000000000
--- a/openapi/ghe-2.14/operations/repos/add-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Add admin enforcement of protected branch",
- "description": "Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-add-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#add-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/add-protected-branch-required-signatures.json b/openapi/ghe-2.14/operations/repos/add-protected-branch-required-signatures.json
deleted file mode 100644
index 9593617373..0000000000
--- a/openapi/ghe-2.14/operations/repos/add-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "summary": "Add required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits.",
- "operationId": "repos-add-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#add-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/add-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.14/operations/repos/add-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index fde19fe75c..0000000000
--- a/openapi/ghe-2.14/operations/repos/add-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-add-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/add-protected-branch-team-restrictions.json b/openapi/ghe-2.14/operations/repos/add-protected-branch-team-restrictions.json
deleted file mode 100644
index 21c1eb1082..0000000000
--- a/openapi/ghe-2.14/operations/repos/add-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add team restrictions of protected branch",
- "description": "Grants the specified teams push access for this branch. If you pass the `hellcat-preview` media type, you can also give push access to child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-add-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#add-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/add-protected-branch-user-restrictions.json b/openapi/ghe-2.14/operations/repos/add-protected-branch-user-restrictions.json
deleted file mode 100644
index db85e9b79f..0000000000
--- a/openapi/ghe-2.14/operations/repos/add-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add user restrictions of protected branch",
- "description": "Grants the specified people push access for this branch.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-add-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#add-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/check-collaborator.json b/openapi/ghe-2.14/operations/repos/check-collaborator.json
deleted file mode 100644
index 321989dd76..0000000000
--- a/openapi/ghe-2.14/operations/repos/check-collaborator.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check if a user is a collaborator",
- "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
- "operationId": "repos-check-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/collaborators/#check-if-a-user-is-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/compare-commits.json b/openapi/ghe-2.14/operations/repos/compare-commits.json
deleted file mode 100644
index def847e372..0000000000
--- a/openapi/ghe-2.14/operations/repos/compare-commits.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Compare two commits",
- "description": "Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`.\n\nThe response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://developer.github.com/enterprise/2.14/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.\n\nThe response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.\n\n**Working with large comparisons**\n\nThe response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [Commit List API](https://developer.github.com/enterprise/2.14/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the range.\n\nFor comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long to generate. You can typically resolve this error by using a smaller commit range.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "repos-compare-commits",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/commits/#compare-two-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "base",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "base parameter"
- },
- {
- "name": "head",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "head parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/compare/:base...:head"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n base: 'base',\n head: 'head'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-commit-comment.json b/openapi/ghe-2.14/operations/repos/create-commit-comment.json
deleted file mode 100644
index 79592caa21..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-commit-comment.json
+++ /dev/null
@@ -1,211 +0,0 @@
-{
- "summary": "Create a commit comment",
- "description": "Create a comment for a commit using its `:commit_sha`.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "repos-create-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/comments/#create-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- },
- "path": {
- "description": "Relative path of the file to comment on.",
- "type": "string"
- },
- "position": {
- "description": "Line index in the diff to comment on.",
- "type": "integer"
- },
- "line": {
- "description": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
- "type": "integer"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-06-07",
- "note": "\"sha\" parameter renamed to \"commit_sha\"",
- "meta": {
- "before": "sha",
- "after": "commit_sha"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-deployment-status.json b/openapi/ghe-2.14/operations/repos/create-deployment-status.json
deleted file mode 100644
index f3a7b6f64c..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-deployment-status.json
+++ /dev/null
@@ -1,224 +0,0 @@
-{
- "summary": "Create a deployment status",
- "description": "Users with `push` access can create deployment statuses for a given deployment.\n\nGitHub Apps require `read & write` access to \"Deployments\" and `read-only` access to \"Repo contents\" (for private repos). OAuth Apps require the `repo_deployment` scope.",
- "operationId": "repos-create-deployment-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/deployments/#create-a-deployment-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state of the status. Can be one of `error`, `failure`, `inactive`, `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/enterprise/2.14/v3/previews/#enhanced-deployments) custom media type.",
- "type": "string",
- "enum": [
- "error",
- "failure",
- "inactive",
- "pending",
- "success"
- ]
- },
- "target_url": {
- "description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "type": "string",
- "default": ""
- },
- "log_url": {
- "description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "type": "string",
- "default": ""
- },
- "description": {
- "description": "A short description of the status. The maximum description length is 140 characters.",
- "type": "string",
- "default": ""
- },
- "environment_url": {
- "description": "Sets the URL for accessing your environment.",
- "type": "string",
- "default": ""
- },
- "auto_inactive": {
- "description": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "deployment_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "environment_url": {
- "type": "string"
- },
- "log_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-deployment.json b/openapi/ghe-2.14/operations/repos/create-deployment.json
deleted file mode 100644
index 3c60a9024c..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-deployment.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Create a deployment",
- "description": "Deployments offer a few configurable parameters with sane defaults.\n\nThe `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them before we merge a pull request.\n\nThe `environment` parameter allows deployments to be issued to different runtime environments. Teams often have multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter makes it easier to track which environments have requested deployments. The default environment is `production`.\n\nThe `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will return a failure response.\n\nBy default, [commit statuses](https://developer.github.com/enterprise/2.14/v3/repos/statuses) for every submitted context must be in a `success` state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do not require any contexts or create any commit statuses, the deployment will always succeed.\n\nThe `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text field that will be passed on when a deployment event is dispatched.\n\nThe `task` parameter is used by the deployment system to allow different execution paths. In the web world this might be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an application with debugging enabled.\n\nUsers with `repo` or `repo_deployment` scopes can create a deployment for a given ref:\n\nA simple example putting the user and room into the payload to notify back to chat networks.\n\nA more advanced example specifying required commit statuses and bypassing auto-merging.\n\nYou will see this response when GitHub automatically merges the base branch into the topic branch instead of creating a deployment. This auto-merge happens when:\n\n* Auto-merge option is enabled in the repository\n* Topic branch does not include the latest changes on the base branch, which is `master`in the response example\n* There are no merge conflicts\n\nIf there are no new commits in the base branch, a new request to create a deployment should give a successful response.\n\nThis error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts.\n\nThis error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`.",
- "operationId": "repos-create-deployment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/deployments/#create-a-deployment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ref": {
- "description": "The ref to deploy. This can be a branch, tag, or SHA.",
- "type": "string"
- },
- "task": {
- "description": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
- "type": "string",
- "default": "deploy"
- },
- "auto_merge": {
- "description": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.",
- "type": "boolean",
- "default": true
- },
- "required_contexts": {
- "description": "The [status](https://developer.github.com/enterprise/2.14/v3/repos/statuses/) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "payload": {
- "description": "JSON payload with extra information about the deployment.",
- "type": "string",
- "default": ""
- },
- "environment": {
- "description": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
- "type": "string",
- "default": "production"
- },
- "description": {
- "description": "Short description of the deployment.",
- "type": "string",
- "default": ""
- },
- "transient_environment": {
- "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future.",
- "type": "boolean",
- "default": false
- },
- "production_environment": {
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
- "type": "boolean"
- }
- },
- "required": [
- "ref"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments \\\n -d '{\"ref\":\"ref\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-for-authenticated-user.json b/openapi/ghe-2.14/operations/repos/create-for-authenticated-user.json
deleted file mode 100644
index 53108a5c0d..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-for-authenticated-user.json
+++ /dev/null
@@ -1,428 +0,0 @@
-{
- "summary": "Create a new repository for the authenticated user",
- "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/enterprise/2.14/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/enterprise/2.14/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
- "operationId": "repos-create-for-authenticated-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#create"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "team_id": {
- "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "type": "integer"
- },
- "auto_init": {
- "description": "Pass `true` to create an initial commit with empty README.",
- "type": "boolean",
- "default": false
- },
- "gitignore_template": {
- "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "type": "string"
- },
- "license_template": {
- "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repos \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-fork.json b/openapi/ghe-2.14/operations/repos/create-fork.json
deleted file mode 100644
index a280ea8b5f..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-fork.json
+++ /dev/null
@@ -1,383 +0,0 @@
-{
- "summary": "Create a fork",
- "description": "Create a fork for the authenticated user.\n\n**Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Enterprise Support](https://enterprise.github.com/support).",
- "operationId": "repos-create-fork",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/forks/#create-a-fork"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "organization": {
- "description": "Optional parameter to specify the organization name if forking into an organization.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/forks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-hook.json b/openapi/ghe-2.14/operations/repos/create-hook.json
deleted file mode 100644
index 01313c2074..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-hook.json
+++ /dev/null
@@ -1,190 +0,0 @@
-{
- "summary": "Create a hook",
- "description": "Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can share the same `config` as long as those webhooks do not have any `events` that overlap.\n\n**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.14/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nHere's how you can create a hook that posts payloads in JSON format:",
- "operationId": "repos-create-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/hooks/#create-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Use `web` to create a webhook. To create a GitHub Service, use the name of a valid service. You can use [/hooks](https://api.github.com/hooks) for the list of valid service names. **Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install GitHub Services. Please see the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.14/v3/guides/replacing-github-services) for details.",
- "type": "string"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.14/v3/repos/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.14/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name",
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks \\\n -d '{\"name\":\"name\",\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-in-org.json b/openapi/ghe-2.14/operations/repos/create-in-org.json
deleted file mode 100644
index fce12e9001..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-in-org.json
+++ /dev/null
@@ -1,437 +0,0 @@
-{
- "summary": "Create a new repository in this organization",
- "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/enterprise/2.14/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/enterprise/2.14/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
- "operationId": "repos-create-in-org",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#create"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "team_id": {
- "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "type": "integer"
- },
- "auto_init": {
- "description": "Pass `true` to create an initial commit with empty README.",
- "type": "boolean",
- "default": false
- },
- "gitignore_template": {
- "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "type": "string"
- },
- "license_template": {
- "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//repos \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-or-update-file.json b/openapi/ghe-2.14/operations/repos/create-or-update-file.json
deleted file mode 100644
index 0433dca069..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-or-update-file.json
+++ /dev/null
@@ -1,299 +0,0 @@
-{
- "summary": "Create or update a file",
- "description": "Creates a new file or updates an existing file in a repository.",
- "operationId": "repos-create-or-update-file",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/contents/#create-or-update-a-file"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message.",
- "type": "string"
- },
- "content": {
- "description": "The new file content, using Base64 encoding.",
- "type": "string"
- },
- "sha": {
- "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "type": "string"
- },
- "branch": {
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
- "type": "string"
- },
- "committer": {
- "description": "The person that committed the file. Default: the authenticated user.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- },
- "email": {
- "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "email"
- ]
- },
- "author": {
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- },
- "email": {
- "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "email"
- ]
- }
- },
- "required": [
- "message",
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path \\\n -d '{\"message\":\"message\",\"content\":\"content\",\"committer.name\":\"committer.name\",\"committer.email\":\"committer.email\",\"author.name\":\"author.name\",\"author.email\":\"author.email\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path',\n message: 'message',\n content: 'content',\n 'committer.name': 'committer.name',\n 'committer.email': 'committer.email',\n 'author.name': 'author.name',\n 'author.email': 'author.email'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-06-07",
- "note": "\"Create a file\" replaced by \"Create or update a file\"",
- "meta": {
- "before": {
- "idName": "create-file"
- },
- "after": {
- "idName": "create-or-update-file"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-release.json b/openapi/ghe-2.14/operations/repos/create-release.json
deleted file mode 100644
index 4400366171..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-release.json
+++ /dev/null
@@ -1,221 +0,0 @@
-{
- "summary": "Create a release",
- "description": "Users with push access to the repository can create a release.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "repos-create-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#create-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string"
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "type": "string"
- },
- "name": {
- "description": "The name of the release.",
- "type": "string"
- },
- "body": {
- "description": "Text describing the contents of the tag.",
- "type": "string"
- },
- "draft": {
- "description": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "type": "boolean",
- "default": false
- },
- "prerelease": {
- "description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "tag_name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {}
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases \\\n -d '{\"tag_name\":\"tag_name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag_name: 'tag_name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/create-status.json b/openapi/ghe-2.14/operations/repos/create-status.json
deleted file mode 100644
index 46ff71b26b..0000000000
--- a/openapi/ghe-2.14/operations/repos/create-status.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "summary": "Create a status",
- "description": "Users with push access in a repository can create commit statuses for a given SHA.\n\nNote: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error.",
- "operationId": "repos-create-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/statuses/#create-a-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "sha parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state of the status. Can be one of `error`, `failure`, `pending`, or `success`.",
- "type": "string",
- "enum": [
- "error",
- "failure",
- "pending",
- "success"
- ]
- },
- "target_url": {
- "description": "The target URL to associate with this status. This URL will be linked from the GitHub Enterprise UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
- "type": "string"
- },
- "description": {
- "description": "A short description of the status.",
- "type": "string"
- },
- "context": {
- "description": "A string label to differentiate this status from the status of other systems.",
- "type": "string",
- "default": "default"
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "context": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/statuses/:sha \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n sha: 'sha',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/decline-invitation.json b/openapi/ghe-2.14/operations/repos/decline-invitation.json
deleted file mode 100644
index adbc820f9f..0000000000
--- a/openapi/ghe-2.14/operations/repos/decline-invitation.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Decline a repository invitation",
- "description": "",
- "operationId": "repos-decline-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/invitations/#decline-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations/"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/delete-commit-comment.json b/openapi/ghe-2.14/operations/repos/delete-commit-comment.json
deleted file mode 100644
index 18148aaa88..0000000000
--- a/openapi/ghe-2.14/operations/repos/delete-commit-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a commit comment",
- "description": "",
- "operationId": "repos-delete-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/comments/#delete-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/delete-download.json b/openapi/ghe-2.14/operations/repos/delete-download.json
deleted file mode 100644
index 8b44bb5e9b..0000000000
--- a/openapi/ghe-2.14/operations/repos/delete-download.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a download",
- "description": "",
- "operationId": "repos-delete-download",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/downloads/#delete-a-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "download_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "download_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads/:download_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 'download_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/delete-file.json b/openapi/ghe-2.14/operations/repos/delete-file.json
deleted file mode 100644
index 861968e2a4..0000000000
--- a/openapi/ghe-2.14/operations/repos/delete-file.json
+++ /dev/null
@@ -1,230 +0,0 @@
-{
- "summary": "Delete a file",
- "description": "Deletes a file in a repository.\n\nYou can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.",
- "operationId": "repos-delete-file",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/contents/#delete-a-file"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message.",
- "type": "string"
- },
- "sha": {
- "description": "The blob SHA of the file being replaced.",
- "type": "string"
- },
- "branch": {
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
- "type": "string"
- },
- "committer": {
- "description": "object containing information about the committer.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- }
- }
- },
- "author": {
- "description": "object containing information about the author.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- }
- }
- }
- },
- "required": [
- "message",
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path \\\n -d '{\"message\":\"message\",\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path',\n message: 'message',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/delete-hook.json b/openapi/ghe-2.14/operations/repos/delete-hook.json
deleted file mode 100644
index 47efe51b0e..0000000000
--- a/openapi/ghe-2.14/operations/repos/delete-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a hook",
- "description": "",
- "operationId": "repos-delete-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/hooks/#delete-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/delete-invitation.json b/openapi/ghe-2.14/operations/repos/delete-invitation.json
deleted file mode 100644
index 9c364ee422..0000000000
--- a/openapi/ghe-2.14/operations/repos/delete-invitation.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a repository invitation",
- "description": "",
- "operationId": "repos-delete-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/invitations/#delete-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations/:invitation_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/delete-release-asset.json b/openapi/ghe-2.14/operations/repos/delete-release-asset.json
deleted file mode 100644
index 81fe4e9d22..0000000000
--- a/openapi/ghe-2.14/operations/repos/delete-release-asset.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a release asset",
- "description": "",
- "operationId": "repos-delete-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#delete-a-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/delete-release.json b/openapi/ghe-2.14/operations/repos/delete-release.json
deleted file mode 100644
index 67d27efa45..0000000000
--- a/openapi/ghe-2.14/operations/repos/delete-release.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a release",
- "description": "Users with push access to the repository can delete a release.",
- "operationId": "repos-delete-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#delete-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/delete.json b/openapi/ghe-2.14/operations/repos/delete.json
deleted file mode 100644
index 227a849e61..0000000000
--- a/openapi/ghe-2.14/operations/repos/delete.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a repository",
- "description": "Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.\n\nIf an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:\n\nIf a site admin has configured the enterprise appliance to prevent users from deleting organization-owned repositories, a user will get this response:",
- "operationId": "repos-delete",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#delete-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-archive-link.json b/openapi/ghe-2.14/operations/repos/get-archive-link.json
deleted file mode 100644
index 37e95532c9..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-archive-link.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Get archive link",
- "description": "Gets a redirect URL to download an archive for a repository. The `:archive_format` can be either `tarball` or `zipball`. The `:ref` must be a valid Git reference. If you omit `:ref`, the repository’s default branch (usually `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request.\n\n_Note_: For private repositories, these links are temporary and expire after five minutes.\n\nTo follow redirects with curl, use the `-L` switch:\n\n",
- "operationId": "repos-get-archive-link",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/contents/#get-archive-link"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "archive_format",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "archive_format parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "302": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/:archive_format/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n archive_format: 'archive_format',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-branch-protection.json b/openapi/ghe-2.14/operations/repos/get-branch-protection.json
deleted file mode 100644
index b008a095de..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-branch-protection.json
+++ /dev/null
@@ -1,364 +0,0 @@
-{
- "summary": "Get branch protection",
- "description": "",
- "operationId": "repos-get-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#get-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- },
- "enforce_admins": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "required_pull_request_reviews": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- },
- "restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-branch.json b/openapi/ghe-2.14/operations/repos/get-branch.json
deleted file mode 100644
index f5f2343e20..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-branch.json
+++ /dev/null
@@ -1,260 +0,0 @@
-{
- "summary": "Get branch",
- "description": "",
- "operationId": "repos-get-branch",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#get-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- },
- "author": {
- "type": "object",
- "properties": {
- "gravatar_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "login": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "sha",
- "url"
- ]
- }
- },
- "url": {
- "type": "string"
- },
- "committer": {
- "type": "object",
- "properties": {
- "gravatar_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "login": {
- "type": "string"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "string"
- },
- "self": {
- "type": "string"
- }
- }
- },
- "protected": {
- "type": "boolean"
- },
- "protection": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "enforcement_level": {
- "type": "string"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "protection_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-code-frequency-stats.json b/openapi/ghe-2.14/operations/repos/get-code-frequency-stats.json
deleted file mode 100644
index 5e0773cbab..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-code-frequency-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the number of additions and deletions per week",
- "description": "Returns a weekly aggregate of the number of additions and deletions pushed to a repository.\n\n",
- "operationId": "repos-get-code-frequency-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/code_frequency"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-collaborator-permission-level.json b/openapi/ghe-2.14/operations/repos/get-collaborator-permission-level.json
deleted file mode 100644
index 94d002e128..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-collaborator-permission-level.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Review a user's permission level",
- "description": "Possible values for the `permission` key: `admin`, `write`, `read`, `none`.",
- "operationId": "repos-get-collaborator-permission-level",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/collaborators/#review-a-users-permission-level"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username/permission"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-combined-status-for-ref.json b/openapi/ghe-2.14/operations/repos/get-combined-status-for-ref.json
deleted file mode 100644
index 07fbcec825..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-combined-status-for-ref.json
+++ /dev/null
@@ -1,346 +0,0 @@
-{
- "summary": "Get the combined status for a specific ref",
- "description": "Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.\n\nThe most recent status for each context is returned, up to 100. This field [paginates](https://developer.github.com/enterprise/2.14/v3/#pagination) if there are over 100 contexts.\n\nAdditionally, a combined `state` is returned. The `state` is one of:\n\n* **failure** if any of the contexts report as `error` or `failure`\n* **pending** if there are no statuses or a context is `pending`\n* **success** if the latest status for all contexts is `success`",
- "operationId": "repos-get-combined-status-for-ref",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "state": {
- "type": "string"
- },
- "statuses": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "context": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "url",
- "avatar_url",
- "id",
- "node_id",
- "state",
- "description",
- "target_url",
- "context",
- "created_at",
- "updated_at"
- ]
- }
- },
- "sha": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "commit_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/status"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-commit-activity-stats.json b/openapi/ghe-2.14/operations/repos/get-commit-activity-stats.json
deleted file mode 100644
index 7dcc8a93a9..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-commit-activity-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the last year of commit activity data",
- "description": "Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`.\n\n",
- "operationId": "repos-get-commit-activity-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/statistics/#get-the-last-year-of-commit-activity-data"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/commit_activity"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-commit-comment.json b/openapi/ghe-2.14/operations/repos/get-commit-comment.json
deleted file mode 100644
index 3b15e6a4c4..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-commit-comment.json
+++ /dev/null
@@ -1,171 +0,0 @@
-{
- "summary": "Get a single commit comment",
- "description": "",
- "operationId": "repos-get-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/comments/#get-a-single-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-commit.json b/openapi/ghe-2.14/operations/repos/get-commit.json
deleted file mode 100644
index 8c477188b3..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-commit.json
+++ /dev/null
@@ -1,361 +0,0 @@
-{
- "summary": "Get a single commit",
- "description": "Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.\n\nYou can pass the appropriate [media type](https://developer.github.com/enterprise/2.14/v3/media/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.\n\nTo return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://developer.github.com/enterprise/2.14/v3/media/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |\n\n",
- "operationId": "repos-get-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/commits/#get-a-single-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "comment_count": {
- "type": "number"
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "stats": {
- "type": "object",
- "properties": {
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "files": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changes": {
- "type": "number"
- },
- "status": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "blob_url": {
- "type": "string"
- },
- "patch": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"sha\" parameter renamed to \"ref\"",
- "meta": {
- "before": "sha",
- "after": "commit_sha"
- }
- },
- {
- "type": "parameter",
- "date": "2019-06-21",
- "note": "\"commit_sha\" parameter renamed to \"ref\"",
- "meta": {
- "before": "commit_sha",
- "after": "ref"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-contents.json b/openapi/ghe-2.14/operations/repos/get-contents.json
deleted file mode 100644
index 0e6b9e6650..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-contents.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Get contents",
- "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit `:path`, you will receive the contents of all files in the repository.\n\nFiles and symlinks support [a custom media type](https://developer.github.com/enterprise/2.14/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML (when supported). All content types support [a custom media type](https://developer.github.com/enterprise/2.14/v3/repos/contents/#custom-media-types) to ensure the content is returned in a consistent object format.\n\n**Note**:\n\n* To get a repository's contents recursively, you can [recursively get the tree](https://developer.github.com/enterprise/2.14/v3/git/trees/).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees API](https://developer.github.com/enterprise/2.14/v3/git/trees/#get-a-tree).\n* This API supports files up to 1 megabyte in size.\n\nThe response will be an array of objects, one object for each item in the directory.\n\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value _should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as \"submodule\".\n\nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](https://developer.github.com/enterprise/2.14/v3/repos/contents/#response-if-content-is-a-file)).\n\nOtherwise, the API responds with an object describing the symlink itself:\n\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the github.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
- "operationId": "repos-get-contents",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/contents/#get-contents"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-contributors-stats.json b/openapi/ghe-2.14/operations/repos/get-contributors-stats.json
deleted file mode 100644
index 0d1a9a9e3f..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-contributors-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get contributors list with additions, deletions, and commit counts",
- "description": "* `total` - The Total number of commits authored by the contributor.\n\nWeekly Hash (`weeks` array):\n\n* `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).\n* `a` - Number of additions\n* `d` - Number of deletions\n* `c` - Number of commits\n\n",
- "operationId": "repos-get-contributors-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/contributors"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-deploy-key.json b/openapi/ghe-2.14/operations/repos/get-deploy-key.json
deleted file mode 100644
index 973387b923..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-deploy-key.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "summary": "Get a deploy key",
- "description": "",
- "operationId": "repos-get-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/keys/#get-a-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys/:key_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-deployment-status.json b/openapi/ghe-2.14/operations/repos/get-deployment-status.json
deleted file mode 100644
index 3be7e8a48f..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-deployment-status.json
+++ /dev/null
@@ -1,183 +0,0 @@
-{
- "summary": "Get a single deployment status",
- "description": "Users with pull access can view a deployment status for a deployment:",
- "operationId": "repos-get-deployment-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/deployments/#get-a-single-deployment-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- },
- {
- "name": "status_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "status_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "deployment_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "environment_url": {
- "type": "string"
- },
- "log_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses/:status_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id',\n status_id: 'status_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-deployment.json b/openapi/ghe-2.14/operations/repos/get-deployment.json
deleted file mode 100644
index 3adb60bab9..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-deployment.json
+++ /dev/null
@@ -1,188 +0,0 @@
-{
- "summary": "Get a single deployment",
- "description": "",
- "operationId": "repos-get-deployment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/deployments/#get-a-single-deployment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "task": {
- "type": "string"
- },
- "payload": {
- "type": "object",
- "properties": {
- "deploy": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "transient_environment": {
- "type": "boolean"
- },
- "production_environment": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-download.json b/openapi/ghe-2.14/operations/repos/get-download.json
deleted file mode 100644
index a8a0667161..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-download.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "Get a single download",
- "description": "",
- "operationId": "repos-get-download",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/downloads/#get-a-single-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "download_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "download_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "content_type": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads/:download_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 'download_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-hook.json b/openapi/ghe-2.14/operations/repos/get-hook.json
deleted file mode 100644
index e7820e32a2..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-hook.json
+++ /dev/null
@@ -1,140 +0,0 @@
-{
- "summary": "Get single hook",
- "description": "",
- "operationId": "repos-get-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/hooks/#get-single-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-latest-pages-build.json b/openapi/ghe-2.14/operations/repos/get-latest-pages-build.json
deleted file mode 100644
index 32245e4e78..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-latest-pages-build.json
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "summary": "Get latest Pages build",
- "description": "",
- "operationId": "repos-get-latest-pages-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/pages/#get-latest-pages-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "error": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- }
- }
- },
- "pusher": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "commit": {
- "type": "string"
- },
- "duration": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-latest-release.json b/openapi/ghe-2.14/operations/repos/get-latest-release.json
deleted file mode 100644
index 3222772c94..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-latest-release.json
+++ /dev/null
@@ -1,280 +0,0 @@
-{
- "summary": "Get the latest release",
- "description": "View the latest published full release for the repository.\n\nThe latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published.",
- "operationId": "repos-get-latest-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#get-the-latest-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-pages-build.json b/openapi/ghe-2.14/operations/repos/get-pages-build.json
deleted file mode 100644
index 4807699db7..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-pages-build.json
+++ /dev/null
@@ -1,164 +0,0 @@
-{
- "summary": "Get a specific Pages build",
- "description": "",
- "operationId": "repos-get-pages-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/pages/#get-a-specific-pages-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "build_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "build_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "error": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- }
- }
- },
- "pusher": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "commit": {
- "type": "string"
- },
- "duration": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds/:build_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n build_id: 'build_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-pages.json b/openapi/ghe-2.14/operations/repos/get-pages.json
deleted file mode 100644
index 2b3f5ed089..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-pages.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "Get information about a Pages site",
- "description": "",
- "operationId": "repos-get-pages",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/pages/#get-information-about-a-pages-site"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "cname": {
- "type": "string"
- },
- "custom_404": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "source": {
- "type": "object",
- "properties": {
- "branch": {
- "type": "string"
- },
- "directory": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-participation-stats.json b/openapi/ghe-2.14/operations/repos/get-participation-stats.json
deleted file mode 100644
index 9acce444e1..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-participation-stats.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get the weekly commit count for the repository owner and everyone else",
- "description": "Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`.\n\nThe array order is oldest week (index 0) to most recent week.\n\n",
- "operationId": "repos-get-participation-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "all": {
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- "owner": {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/participation"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-protected-branch-admin-enforcement.json b/openapi/ghe-2.14/operations/repos/get-protected-branch-admin-enforcement.json
deleted file mode 100644
index c1e7eff78b..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get admin enforcement of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#get-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.14/operations/repos/get-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index 047caa4bc9..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get pull request review enforcement of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-protected-branch-required-signatures.json b/openapi/ghe-2.14/operations/repos/get-protected-branch-required-signatures.json
deleted file mode 100644
index 18197d5fb5..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "summary": "Get required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help.\n\n**Note**: You must enable branch protection to require signed commits.",
- "operationId": "repos-get-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#get-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-protected-branch-required-status-checks.json b/openapi/ghe-2.14/operations/repos/get-protected-branch-required-status-checks.json
deleted file mode 100644
index 53f6a4e838..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Get required status checks of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#get-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-protected-branch-restrictions.json b/openapi/ghe-2.14/operations/repos/get-protected-branch-restrictions.json
deleted file mode 100644
index 64d544ab8c..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-protected-branch-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get restrictions of protected branch",
- "description": "**Note**: Teams and users `restrictions` are only available for organization-owned repositories.",
- "operationId": "repos-get-protected-branch-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#get-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-punch-card-stats.json b/openapi/ghe-2.14/operations/repos/get-punch-card-stats.json
deleted file mode 100644
index f5e057a077..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-punch-card-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the number of commits per hour in each day",
- "description": "Each array contains the day number, hour number, and number of commits:\n\n* `0-6`: Sunday - Saturday\n* `0-23`: Hour of day\n* Number of commits\n\nFor example, `[2, 14, 25]` indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.",
- "operationId": "repos-get-punch-card-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/punch_card"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-readme.json b/openapi/ghe-2.14/operations/repos/get-readme.json
deleted file mode 100644
index 7113a579a2..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-readme.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "summary": "Get the README",
- "description": "Gets the preferred README for a repository.\n\nREADMEs support [custom media types](https://developer.github.com/enterprise/2.14/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML.",
- "operationId": "repos-get-readme",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/contents/#get-the-readme"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": "string"
- },
- "self": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/readme"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-release-asset.json b/openapi/ghe-2.14/operations/repos/get-release-asset.json
deleted file mode 100644
index 27c71dae56..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-release-asset.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "summary": "Get a single release asset",
- "description": "To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://developer.github.com/enterprise/2.14/v3/media/#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.",
- "operationId": "repos-get-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#get-a-single-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-release-by-tag.json b/openapi/ghe-2.14/operations/repos/get-release-by-tag.json
deleted file mode 100644
index a39fe03520..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-release-by-tag.json
+++ /dev/null
@@ -1,289 +0,0 @@
-{
- "summary": "Get a release by tag name",
- "description": "Get a published release with the specified tag.",
- "operationId": "repos-get-release-by-tag",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#get-a-release-by-tag-name"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tag",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tag parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/tags/:tag"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag: 'tag'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get-release.json b/openapi/ghe-2.14/operations/repos/get-release.json
deleted file mode 100644
index 42d14fc18d..0000000000
--- a/openapi/ghe-2.14/operations/repos/get-release.json
+++ /dev/null
@@ -1,289 +0,0 @@
-{
- "summary": "Get a single release",
- "description": "**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://developer.github.com/enterprise/2.14/v3/#hypermedia).",
- "operationId": "repos-get-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#get-a-single-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/get.json b/openapi/ghe-2.14/operations/repos/get.json
deleted file mode 100644
index a21243f0e9..0000000000
--- a/openapi/ghe-2.14/operations/repos/get.json
+++ /dev/null
@@ -1,1050 +0,0 @@
-{
- "summary": "Get",
- "description": "The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.",
- "operationId": "repos-get",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#get"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- },
- "license": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parent": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- }
- }
- },
- "source": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-assets-for-release.json b/openapi/ghe-2.14/operations/repos/list-assets-for-release.json
deleted file mode 100644
index e28189b039..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-assets-for-release.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List assets for a release",
- "description": "",
- "operationId": "repos-list-assets-for-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#list-assets-for-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id/assets"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-branches.json b/openapi/ghe-2.14/operations/repos/list-branches.json
deleted file mode 100644
index 7660178d2c..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-branches.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List branches",
- "description": "",
- "operationId": "repos-list-branches",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#list-branches"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "protected",
- "in": "query",
- "schema": {
- "type": "boolean"
- },
- "required": false,
- "description": "Setting to `true` returns only protected branches, and each branch in the response includes the `protected` and `protection` keys. Omitting this parameter returns all branches, and protected branches do not contain the `protected` and `protection` keys."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-collaborators.json b/openapi/ghe-2.14/operations/repos/list-collaborators.json
deleted file mode 100644
index 3a74b337a4..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-collaborators.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List collaborators",
- "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
- "operationId": "repos-list-collaborators",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/collaborators/#list-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "outside",
- "direct",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter collaborators returned by their affiliation. Can be one of: \n\\* `outside`: All outside collaborators of an organization-owned repository. \n\\* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-comments-for-commit.json b/openapi/ghe-2.14/operations/repos/list-comments-for-commit.json
deleted file mode 100644
index 62947d0621..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-comments-for-commit.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List comments for a single commit",
- "description": "Use the `:commit_sha` to specify the commit that will have its comments listed.",
- "operationId": "repos-list-comments-for-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/comments/#list-comments-for-a-single-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-06-07",
- "note": "\"ref\" parameter renamed to \"commit_sha\"",
- "meta": {
- "before": "ref",
- "after": "commit_sha"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-commit-comments.json b/openapi/ghe-2.14/operations/repos/list-commit-comments.json
deleted file mode 100644
index db7e278da5..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-commit-comments.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List commit comments for a repository",
- "description": "Commit Comments use [these custom media types](https://developer.github.com/enterprise/2.14/v3/repos/comments/#custom-media-types). You can read more about the use of media types in the API [here](https://developer.github.com/enterprise/2.14/v3/media/).\n\nComments are ordered by ascending ID.",
- "operationId": "repos-list-commit-comments",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/comments/#list-commit-comments-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-commits.json b/openapi/ghe-2.14/operations/repos/list-commits.json
deleted file mode 100644
index 9ace5a2006..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-commits.json
+++ /dev/null
@@ -1,132 +0,0 @@
-{
- "summary": "List commits on a repository",
- "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "repos-list-commits",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/commits/#list-commits-on-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`)."
- },
- {
- "name": "path",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits containing this file path will be returned."
- },
- {
- "name": "author",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "GitHub login or email address by which to filter by commit author."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits after this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "until",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-contributors.json b/openapi/ghe-2.14/operations/repos/list-contributors.json
deleted file mode 100644
index 44c5775f9b..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-contributors.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "List contributors",
- "description": "Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance.\n\nGitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information.",
- "operationId": "repos-list-contributors",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#list-contributors"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "anon",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Set to `1` or `true` to include anonymous contributors in results."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contributors"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-deploy-keys.json b/openapi/ghe-2.14/operations/repos/list-deploy-keys.json
deleted file mode 100644
index 3b353706a8..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-deploy-keys.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List deploy keys",
- "description": "",
- "operationId": "repos-list-deploy-keys",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/keys/#list-deploy-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-deployment-statuses.json b/openapi/ghe-2.14/operations/repos/list-deployment-statuses.json
deleted file mode 100644
index 6c125b5968..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-deployment-statuses.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List deployment statuses",
- "description": "Users with pull access can view deployment statuses for a deployment:",
- "operationId": "repos-list-deployment-statuses",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/deployments/#list-deployment-statuses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-deployments.json b/openapi/ghe-2.14/operations/repos/list-deployments.json
deleted file mode 100644
index 668877f74e..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-deployments.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "summary": "List deployments",
- "description": "Simple filtering of deployments is available via query parameters:",
- "operationId": "repos-list-deployments",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/deployments/#list-deployments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The SHA recorded at creation time."
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the ref. This can be a branch, tag, or SHA."
- },
- {
- "name": "task",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`)."
- },
- {
- "name": "environment",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the environment that was deployed to (e.g., `staging` or `production`)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-downloads.json b/openapi/ghe-2.14/operations/repos/list-downloads.json
deleted file mode 100644
index dac3ed34b7..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-downloads.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List downloads for a repository",
- "description": "",
- "operationId": "repos-list-downloads",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/downloads/#list-downloads-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-for-org.json b/openapi/ghe-2.14/operations/repos/list-for-org.json
deleted file mode 100644
index 62eda9d787..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-for-org.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List organization repositories",
- "description": "List repositories for the specified org.",
- "operationId": "repos-list-for-org",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#list-organization-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "public",
- "private",
- "forks",
- "sources",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-for-user.json b/openapi/ghe-2.14/operations/repos/list-for-user.json
deleted file mode 100644
index 6c305180f9..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-for-user.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "summary": "List user repositories",
- "description": "List public repositories for the specified user.",
- "operationId": "repos-list-for-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#list-user-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "member"
- ],
- "default": "owner"
- },
- "required": false,
- "description": "Can be one of `all`, `owner`, `member`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- },
- "required": false,
- "description": "Can be one of `created`, `updated`, `pushed`, `full_name`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-forks.json b/openapi/ghe-2.14/operations/repos/list-forks.json
deleted file mode 100644
index 178d8f0fc4..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-forks.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List forks",
- "description": "",
- "operationId": "repos-list-forks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/forks/#list-forks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "newest",
- "oldest",
- "stargazers"
- ],
- "default": "newest"
- },
- "required": false,
- "description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/forks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-hooks.json b/openapi/ghe-2.14/operations/repos/list-hooks.json
deleted file mode 100644
index b143ca5fd4..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-hooks.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List hooks",
- "description": "",
- "operationId": "repos-list-hooks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/hooks/#list-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-invitations-for-authenticated-user.json b/openapi/ghe-2.14/operations/repos/list-invitations-for-authenticated-user.json
deleted file mode 100644
index b6da304036..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-invitations-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List a user's repository invitations",
- "description": "When authenticating as a user, this endpoint will list all currently open repository invitations for that user.\n\n",
- "operationId": "repos-list-invitations-for-authenticated-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/invitations/#list-a-users-repository-invitations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-invitations.json b/openapi/ghe-2.14/operations/repos/list-invitations.json
deleted file mode 100644
index 5cdbe0ef4e..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-invitations.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List invitations for a repository",
- "description": "When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations.\n\n",
- "operationId": "repos-list-invitations",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/invitations/#list-invitations-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-languages.json b/openapi/ghe-2.14/operations/repos/list-languages.json
deleted file mode 100644
index 333366121c..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-languages.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "List languages",
- "description": "Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language.",
- "operationId": "repos-list-languages",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#list-languages"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "C": {
- "type": "number"
- },
- "Python": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/languages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-pages-builds.json b/openapi/ghe-2.14/operations/repos/list-pages-builds.json
deleted file mode 100644
index 3cf3d1aa19..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-pages-builds.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List Pages builds",
- "description": "",
- "operationId": "repos-list-pages-builds",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/pages/#list-pages-builds"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.14/operations/repos/list-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 25bcdf7fe3..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "List required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-list-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-protected-branch-team-restrictions.json b/openapi/ghe-2.14/operations/repos/list-protected-branch-team-restrictions.json
deleted file mode 100644
index f944b73bef..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "List team restrictions of protected branch",
- "description": "Lists the teams who have push access to this branch. If you pass the `hellcat-preview` media type, the list includes child teams.",
- "operationId": "repos-list-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#list-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-protected-branch-user-restrictions.json b/openapi/ghe-2.14/operations/repos/list-protected-branch-user-restrictions.json
deleted file mode 100644
index 7b88c62c6b..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "List user restrictions of protected branch",
- "description": "Lists the people who have push access to this branch.",
- "operationId": "repos-list-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#list-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-public.json b/openapi/ghe-2.14/operations/repos/list-public.json
deleted file mode 100644
index 2d602b80f5..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-public.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "summary": "List all public repositories",
- "description": "This provides a dump of every public repository, in the order that they were created.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.14/v3/#link-header) to get the URL for the next page of repositories.\n\nIf you are an [authenticated](https://developer.github.com/enterprise/2.14/v3/#authentication) site administrator for your Enterprise appliance, you will be able to list all repositories including private repositories.",
- "operationId": "repos-list-public",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#list-all-public-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last Repository that you've seen."
- },
- {
- "name": "visibility",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "public"
- },
- "required": false,
- "description": "To include private repositories as well set to `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-releases.json b/openapi/ghe-2.14/operations/repos/list-releases.json
deleted file mode 100644
index 6246e92aa4..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-releases.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List releases for a repository",
- "description": "This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://developer.github.com/enterprise/2.14/v3/repos/#list-tags).\n\nInformation about published releases are available to everyone. Only users with push access will receive listings for draft releases.",
- "operationId": "repos-list-releases",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#list-releases-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-statuses-for-ref.json b/openapi/ghe-2.14/operations/repos/list-statuses-for-ref.json
deleted file mode 100644
index 0f5f6c142a..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-statuses-for-ref.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List statuses for a specific ref",
- "description": "Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.\n\nThis resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`.",
- "operationId": "repos-list-statuses-for-ref",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/statuses/#list-statuses-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/statuses"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-tags.json b/openapi/ghe-2.14/operations/repos/list-tags.json
deleted file mode 100644
index d95abedd81..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-tags.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List tags",
- "description": "",
- "operationId": "repos-list-tags",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#list-tags"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/tags"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-teams.json b/openapi/ghe-2.14/operations/repos/list-teams.json
deleted file mode 100644
index 3b74e35afa..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-teams.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List teams",
- "description": "",
- "operationId": "repos-list-teams",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#list-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list-topics.json b/openapi/ghe-2.14/operations/repos/list-topics.json
deleted file mode 100644
index ea5dc3c843..0000000000
--- a/openapi/ghe-2.14/operations/repos/list-topics.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "List all topics for a repository",
- "description": "",
- "operationId": "repos-list-topics",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#list-all-topics-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/topics"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/list.json b/openapi/ghe-2.14/operations/repos/list.json
deleted file mode 100644
index 64a0a973e6..0000000000
--- a/openapi/ghe-2.14/operations/repos/list.json
+++ /dev/null
@@ -1,135 +0,0 @@
-{
- "summary": "List your repositories",
- "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.",
- "operationId": "repos-list",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#list-your-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "visibility",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "public",
- "private"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `public`, or `private`."
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "owner,collaborator,organization_member"
- },
- "required": false,
- "description": "Comma-separated list of values. Can include: \n\\* `owner`: Repositories that are owned by the authenticated user. \n\\* `collaborator`: Repositories that the user has been added to as a collaborator. \n\\* `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on."
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "public",
- "private",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `owner`, `public`, `private`, `member`. Default: `all` \n \nWill cause a `422` error if used in the same request as **visibility** or **affiliation**. Will cause a `422` error if used in the same request as **visibility** or **affiliation**."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- },
- "required": false,
- "description": "Can be one of `created`, `updated`, `pushed`, `full_name`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/merge.json b/openapi/ghe-2.14/operations/repos/merge.json
deleted file mode 100644
index 503d78613f..0000000000
--- a/openapi/ghe-2.14/operations/repos/merge.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Perform a merge",
- "description": "",
- "operationId": "repos-merge",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/merging/#perform-a-merge"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "base": {
- "description": "The name of the base branch that the head will be merged into.",
- "type": "string"
- },
- "head": {
- "description": "The head to merge. This can be a branch name or a commit SHA1.",
- "type": "string"
- },
- "commit_message": {
- "description": "Commit message to use for the merge commit. If omitted, a default message will be used.",
- "type": "string"
- }
- },
- "required": [
- "base",
- "head"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/merges \\\n -d '{\"base\":\"base\",\"head\":\"head\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n base: 'base',\n head: 'head'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/ping-hook.json b/openapi/ghe-2.14/operations/repos/ping-hook.json
deleted file mode 100644
index b53f6dbff1..0000000000
--- a/openapi/ghe-2.14/operations/repos/ping-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Ping a hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.14/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nThis will trigger a [ping event](https://developer.github.com/enterprise/2.14/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "repos-ping-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/hooks/#ping-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id/pings"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-branch-protection.json b/openapi/ghe-2.14/operations/repos/remove-branch-protection.json
deleted file mode 100644
index aaa047fb34..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-branch-protection.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove branch protection",
- "description": "",
- "operationId": "repos-remove-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#remove-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-collaborator.json b/openapi/ghe-2.14/operations/repos/remove-collaborator.json
deleted file mode 100644
index 8abdb67aaa..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-collaborator.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove user as a collaborator",
- "description": "",
- "operationId": "repos-remove-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/collaborators/#remove-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-deploy-key.json b/openapi/ghe-2.14/operations/repos/remove-deploy-key.json
deleted file mode 100644
index f655f87fc6..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-deploy-key.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove a deploy key",
- "description": "",
- "operationId": "repos-remove-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/keys/#remove-a-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys/:key_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-protected-branch-admin-enforcement.json b/openapi/ghe-2.14/operations/repos/remove-protected-branch-admin-enforcement.json
deleted file mode 100644
index 573e4e87f0..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove admin enforcement of protected branch",
- "description": "Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-remove-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#remove-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.14/operations/repos/remove-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index 77a7efaaa5..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove pull request review enforcement of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-protected-branch-required-signatures.json b/openapi/ghe-2.14/operations/repos/remove-protected-branch-required-signatures.json
deleted file mode 100644
index 3709d1dbf6..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Remove required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits.",
- "operationId": "repos-remove-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#remove-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.14/operations/repos/remove-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index ba090a90f9..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-protected-branch-required-status-checks.json b/openapi/ghe-2.14/operations/repos/remove-protected-branch-required-status-checks.json
deleted file mode 100644
index 640bbff0d6..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove required status checks of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#remove-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-protected-branch-restrictions.json b/openapi/ghe-2.14/operations/repos/remove-protected-branch-restrictions.json
deleted file mode 100644
index db28b767d0..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-protected-branch-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove restrictions of protected branch",
- "description": "Disables the ability to restrict who can push to this branch.",
- "operationId": "repos-remove-protected-branch-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#remove-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-protected-branch-team-restrictions.json b/openapi/ghe-2.14/operations/repos/remove-protected-branch-team-restrictions.json
deleted file mode 100644
index 23726cf58d..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove team restrictions of protected branch",
- "description": "Removes the ability of a team to push to this branch. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-remove-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#remove-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/remove-protected-branch-user-restrictions.json b/openapi/ghe-2.14/operations/repos/remove-protected-branch-user-restrictions.json
deleted file mode 100644
index 7299b0a1db..0000000000
--- a/openapi/ghe-2.14/operations/repos/remove-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove user restrictions of protected branch",
- "description": "Removes the ability of a team to push to this branch.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames of the people who should no longer have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-remove-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#remove-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/replace-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.14/operations/repos/replace-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 931532d520..0000000000
--- a/openapi/ghe-2.14/operations/repos/replace-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-replace-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/replace-protected-branch-team-restrictions.json b/openapi/ghe-2.14/operations/repos/replace-protected-branch-team-restrictions.json
deleted file mode 100644
index 499131b464..0000000000
--- a/openapi/ghe-2.14/operations/repos/replace-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace team restrictions of protected branch",
- "description": "Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-replace-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#replace-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/replace-protected-branch-user-restrictions.json b/openapi/ghe-2.14/operations/repos/replace-protected-branch-user-restrictions.json
deleted file mode 100644
index 1ab72e677f..0000000000
--- a/openapi/ghe-2.14/operations/repos/replace-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace user restrictions of protected branch",
- "description": "Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-replace-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#replace-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/replace-topics.json b/openapi/ghe-2.14/operations/repos/replace-topics.json
deleted file mode 100644
index 9b9d8eb2ed..0000000000
--- a/openapi/ghe-2.14/operations/repos/replace-topics.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "Replace all topics for a repository",
- "description": "",
- "operationId": "repos-replace-topics",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#replace-all-topics-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "names": {
- "description": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "names"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/topics \\\n -d '{\"names\":\"names\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n names: 'names'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/request-page-build.json b/openapi/ghe-2.14/operations/repos/request-page-build.json
deleted file mode 100644
index d28e7f638c..0000000000
--- a/openapi/ghe-2.14/operations/repos/request-page-build.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "summary": "Request a page build",
- "description": "You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures.\n\nBuild requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes.",
- "operationId": "repos-request-page-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/pages/#request-a-page-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.mister-fantastic-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.mister-fantastic-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/test-push-hook.json b/openapi/ghe-2.14/operations/repos/test-push-hook.json
deleted file mode 100644
index 20173d22dd..0000000000
--- a/openapi/ghe-2.14/operations/repos/test-push-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Test a push hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.14/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nThis will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated.\n\n**Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test`",
- "operationId": "repos-test-push-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/hooks/#test-a-push-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id/tests"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/transfer.json b/openapi/ghe-2.14/operations/repos/transfer.json
deleted file mode 100644
index e8ee0dc6f5..0000000000
--- a/openapi/ghe-2.14/operations/repos/transfer.json
+++ /dev/null
@@ -1,391 +0,0 @@
-{
- "summary": "Transfer a repository",
- "description": "A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/).",
- "operationId": "repos-transfer",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#transfer-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.nightshade-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "new_owner": {
- "description": "**Required:** The username or organization name the repository will be transferred to.",
- "type": "string"
- },
- "team_ids": {
- "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.nightshade-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/transfer"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/update-branch-protection.json b/openapi/ghe-2.14/operations/repos/update-branch-protection.json
deleted file mode 100644
index 4672686a38..0000000000
--- a/openapi/ghe-2.14/operations/repos/update-branch-protection.json
+++ /dev/null
@@ -1,468 +0,0 @@
-{
- "summary": "Update branch protection",
- "description": "Protecting a branch requires admin or owner permissions to the repository.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.\n\n**Note**: The list of users and teams in total is limited to 100 items.",
- "operationId": "repos-update-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#update-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "required_status_checks": {
- "description": "Require status checks to pass before merging. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "strict": {
- "description": "Require branches to be up to date before merging.",
- "type": "boolean"
- },
- "contexts": {
- "description": "The list of status checks to require in order to merge into this branch",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "strict",
- "contexts"
- ]
- },
- "enforce_admins": {
- "description": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
- "type": "boolean",
- "nullable": true
- },
- "required_pull_request_reviews": {
- "description": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "dismissal_restrictions": {
- "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
- "type": "object",
- "properties": {
- "users": {
- "description": "The list of user `login`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) review them.",
- "type": "boolean"
- },
- "required_approving_review_count": {
- "description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "type": "integer"
- }
- }
- },
- "restrictions": {
- "description": "Restrict who can push to this branch. Team and user `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "users": {
- "description": "The list of user `login`s with push access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with push access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- },
- "required": [
- "required_status_checks",
- "enforce_admins",
- "required_pull_request_reviews",
- "restrictions"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- },
- "enforce_admins": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "required_pull_request_reviews": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- },
- "restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection \\\n -d '{\"required_status_checks\":\"required_status_checks\",\"required_status_checks.strict\":\"required_status_checks.strict\",\"required_status_checks.contexts\":\"required_status_checks.contexts\",\"enforce_admins\":\"enforce_admins\",\"required_pull_request_reviews\":\"required_pull_request_reviews\",\"restrictions\":\"restrictions\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n required_status_checks: 'required_status_checks',\n 'required_status_checks.strict': 'required_status_checks.strict',\n 'required_status_checks.contexts': 'required_status_checks.contexts',\n enforce_admins: 'enforce_admins',\n required_pull_request_reviews: 'required_pull_request_reviews',\n restrictions: 'restrictions'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/update-commit-comment.json b/openapi/ghe-2.14/operations/repos/update-commit-comment.json
deleted file mode 100644
index 10fceada81..0000000000
--- a/openapi/ghe-2.14/operations/repos/update-commit-comment.json
+++ /dev/null
@@ -1,189 +0,0 @@
-{
- "summary": "Update a commit comment",
- "description": "",
- "operationId": "repos-update-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/comments/#update-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/update-hook.json b/openapi/ghe-2.14/operations/repos/update-hook.json
deleted file mode 100644
index 35288b4611..0000000000
--- a/openapi/ghe-2.14/operations/repos/update-hook.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "summary": "Edit a hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.14/v3/guides/replacing-github-services) to help you update your services to webhooks.",
- "operationId": "repos-update-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/hooks/#edit-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.14/v3/repos/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.14/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "add_events": {
- "description": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "remove_events": {
- "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/update-invitation.json b/openapi/ghe-2.14/operations/repos/update-invitation.json
deleted file mode 100644
index 35e0aacdfd..0000000000
--- a/openapi/ghe-2.14/operations/repos/update-invitation.json
+++ /dev/null
@@ -1,434 +0,0 @@
-{
- "summary": "Update a repository invitation",
- "description": "",
- "operationId": "repos-update-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/invitations/#update-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permissions": {
- "description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "invitee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "inviter": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "permissions": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations/:invitation_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/update-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.14/operations/repos/update-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index af462b372f..0000000000
--- a/openapi/ghe-2.14/operations/repos/update-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,251 +0,0 @@
-{
- "summary": "Update pull request review enforcement of protected branch",
- "description": "Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.",
- "operationId": "repos-update-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "dismissal_restrictions": {
- "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
- "type": "object",
- "properties": {
- "users": {
- "description": "The list of user `login`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed.",
- "type": "boolean"
- },
- "required_approving_review_count": {
- "description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "type": "integer"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/update-protected-branch-required-status-checks.json b/openapi/ghe-2.14/operations/repos/update-protected-branch-required-status-checks.json
deleted file mode 100644
index 13e82c0afa..0000000000
--- a/openapi/ghe-2.14/operations/repos/update-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Update required status checks of protected branch",
- "description": "Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-update-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/branches/#update-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "strict": {
- "description": "Require branches to be up to date before merging.",
- "type": "boolean"
- },
- "contexts": {
- "description": "The list of status checks to require in order to merge into this branch",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/update-release-asset.json b/openapi/ghe-2.14/operations/repos/update-release-asset.json
deleted file mode 100644
index cdce196490..0000000000
--- a/openapi/ghe-2.14/operations/repos/update-release-asset.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Edit a release asset",
- "description": "Users with push access to the repository can edit a release asset.",
- "operationId": "repos-update-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#edit-a-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The file name of the asset.",
- "type": "string"
- },
- "label": {
- "description": "An alternate short description of the asset. Used in place of the filename.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/update-release.json b/openapi/ghe-2.14/operations/repos/update-release.json
deleted file mode 100644
index faeb69e52d..0000000000
--- a/openapi/ghe-2.14/operations/repos/update-release.json
+++ /dev/null
@@ -1,324 +0,0 @@
-{
- "summary": "Edit a release",
- "description": "Users with push access to the repository can edit a release.",
- "operationId": "repos-update-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/releases/#edit-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string"
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "type": "string"
- },
- "name": {
- "description": "The name of the release.",
- "type": "string"
- },
- "body": {
- "description": "Text describing the contents of the tag.",
- "type": "string"
- },
- "draft": {
- "description": "`true` makes the release a draft, and `false` publishes the release.",
- "type": "boolean"
- },
- "prerelease": {
- "description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/repos/update.json b/openapi/ghe-2.14/operations/repos/update.json
deleted file mode 100644
index 25c413c993..0000000000
--- a/openapi/ghe-2.14/operations/repos/update.json
+++ /dev/null
@@ -1,1106 +0,0 @@
-{
- "summary": "Edit",
- "description": "**Note**: To edit a repository's topics, use the [`topics` endpoint](https://developer.github.com/enterprise/2.14/v3/repos/#replace-all-topics-for-a-repository).",
- "operationId": "repos-update",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/repos/#edit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.x-ray-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private, or if the \"Users Can Change Repo Visibility\" appliance setting is disabled and you are not a hosted site admin. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private, or if the \"Users Can Change Repo Visibility\" appliance setting is disabled and you are not a hosted site admin.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "default_branch": {
- "description": "Updates the default branch for this repository.",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- },
- "archived": {
- "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "type": "boolean",
- "default": false
- },
- "anonymous_access_enabled": {
- "description": "Either `true` to allow anonymous Git access to a public repository, or `false` to disable it. This feature is only available to site and repository administrators in GitHub Enterprise instances that have private mode enabled.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parent": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- }
- }
- },
- "source": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.x-ray-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/code.json b/openapi/ghe-2.14/operations/search/code.json
deleted file mode 100644
index 26b794f87d..0000000000
--- a/openapi/ghe-2.14/operations/search/code.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "summary": "Search code",
- "description": "Find file contents via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.14/v3/#pagination).\n\nWhen searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.14/v3/search/#text-match-metadata).\n\n**Note:** You must [authenticate](https://developer.github.com/enterprise/2.14/v3/#authentication) to search for code across all public repositories.\n\n**Considerations for code search**\n\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:\n\n* Only the _default branch_ is considered. In most cases, this will be the `master` branch.\n* Only files smaller than 10 MB are searchable.\n\nSuppose you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery). Your query would look something like this:\n\nHere, we're searching for the keyword `addClass` within a file's contents. We're making sure that we're only looking in files where the language is JavaScript. And we're scoping the search to the `repo:jquery/jquery` repository.",
- "operationId": "search-code",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/#search-code"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.14/v3/search/#constructing-a-search-query). See \"[Searching code](https://help.github.com/articles/searching-code/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "indexed"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/code"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/commits.json b/openapi/ghe-2.14/operations/search/commits.json
deleted file mode 100644
index 64c3230761..0000000000
--- a/openapi/ghe-2.14/operations/search/commits.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "summary": "Search commits",
- "description": "Find commits via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.14/v3/#pagination).\n\nWhen searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.14/v3/search/#text-match-metadata).\n\n**Considerations for commit search**\n\nOnly the _default branch_ is considered. In most cases, this will be the `master` branch.\n\nSuppose you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:",
- "operationId": "search-commits",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/#search-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.cloak-preview+json"
- },
- "required": true
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.14/v3/search/#constructing-a-search-query). See \"[Searching commits](https://help.github.com/articles/searching-commits/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "author-date",
- "committer-date"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.cloak-preview+json\" \\\n https://developer.github.com/search/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/email-legacy.json b/openapi/ghe-2.14/operations/search/email-legacy.json
deleted file mode 100644
index 776e8d0af8..0000000000
--- a/openapi/ghe-2.14/operations/search/email-legacy.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Email search",
- "description": "This API call is added for compatibility reasons only. There's no guarantee that full email searches will always be available. The `@` character in the address must be left unencoded. Searches only against public email addresses (as configured on the user's GitHub Enterprise profile).",
- "operationId": "search-email-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/legacy/#email-search"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "email",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The email address."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/user/email/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n email: 'email'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/issues-and-pull-requests.json b/openapi/ghe-2.14/operations/search/issues-and-pull-requests.json
deleted file mode 100644
index dd08281614..0000000000
--- a/openapi/ghe-2.14/operations/search/issues-and-pull-requests.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "summary": "Search issues and pull requests",
- "description": "Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.14/v3/#pagination).\n\nWhen searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.14/v3/search/#text-match-metadata).\n\nLet's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.\n\nIn this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results.",
- "operationId": "search-issues-and-pull-requests",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/#search-issues-and-pull-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.14/v3/search/#constructing-a-search-query). See \"[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "comments",
- "reactions",
- "reactions-+1",
- "reactions--1",
- "reactions-smile",
- "reactions-thinking_face",
- "reactions-heart",
- "reactions-tada",
- "interactions",
- "created",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2018-12-27",
- "note": "\"Search issues\" has been renamed to \"Search issues and pull requests\"",
- "meta": {
- "before": {
- "idName": "issues"
- },
- "after": {
- "idName": "issues-and-pull-requests"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.14/operations/search/issues-legacy.json b/openapi/ghe-2.14/operations/search/issues-legacy.json
deleted file mode 100644
index e6e9cc660f..0000000000
--- a/openapi/ghe-2.14/operations/search/issues-legacy.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "summary": "Search issues",
- "description": "Find issues by state and keyword.",
- "operationId": "search-issues-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/legacy/#search-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repository",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repository parameter"
- },
- {
- "name": "state",
- "in": "path",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "required": true,
- "description": "Indicates the state of the issues to return. Can be either `open` or `closed`."
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/issues/search/octocat/:repository/:state/:keyword"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n owner: 'octocat',\n repository: 'repository',\n state: 'state',\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/labels.json b/openapi/ghe-2.14/operations/search/labels.json
deleted file mode 100644
index 4a6b2aba24..0000000000
--- a/openapi/ghe-2.14/operations/search/labels.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Search labels",
- "description": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://developer.github.com/enterprise/2.14/v3/#pagination).\n\nWhen searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.14/v3/search/#text-match-metadata).\n\nSuppose you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:\n\nThe labels that best match for the query appear first in the search results.",
- "operationId": "search-labels",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/#search-labels"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "repository_id",
- "in": "query",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "The id of the repository."
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.14/v3/search/#constructing-a-search-query)."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n repository_id: 'repository_id',\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/repos-legacy.json b/openapi/ghe-2.14/operations/search/repos-legacy.json
deleted file mode 100644
index caf72ea91e..0000000000
--- a/openapi/ghe-2.14/operations/search/repos-legacy.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "summary": "Search repositories",
- "description": "Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the `start_page` parameter.",
- "operationId": "search-repos-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/legacy/#search-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- },
- {
- "name": "language",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter results by language."
- },
- {
- "name": "start_page",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The page number to fetch."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "updated"
- ]
- },
- "required": false,
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match."
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/repos/search/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/repos.json b/openapi/ghe-2.14/operations/search/repos.json
deleted file mode 100644
index cdea513bf7..0000000000
--- a/openapi/ghe-2.14/operations/search/repos.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "Search repositories",
- "description": "Find repositories via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.14/v3/#pagination).\n\nWhen searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.14/v3/search/#text-match-metadata).\n\nSuppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this.\n\nYou can search for multiple topics by adding more `topic:` instances, and including the `mercy-preview` header. For example:\n\nIn this request, we're searching for repositories with the word `tetris` in the name, the description, or the README. We're limiting the results to only find repositories where the primary language is Assembly. We're sorting by stars in descending order, so that the most popular repositories appear first in the search results.",
- "operationId": "search-repos",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/#search-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.14/v3/search/#constructing-a-search-query). See \"[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "help-wanted-issues",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/topics.json b/openapi/ghe-2.14/operations/search/topics.json
deleted file mode 100644
index 2a85b735d1..0000000000
--- a/openapi/ghe-2.14/operations/search/topics.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Search topics",
- "description": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.14/v3/#pagination).\n\nWhen searching for topics, you can get text match metadata for the topic's **short\\_description**, **description**, **name**, or **display\\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.14/v3/search/#text-match-metadata).\n\nSee \"[Searching topics](https://help.github.com/articles/searching-topics/)\" for a detailed list of qualifiers.\n\nSuppose you want to search for topics related to Ruby that are featured on [https://github.com/topics](https://github.com/topics). Your query might look like this:\n\nIn this request, we're searching for topics with the keyword `ruby`, and we're limiting the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.\n\n**Note:** A search for featured Ruby topics only has 6 total results, so a [Link header](https://developer.github.com/enterprise/2.14/v3/#link-header) indicating pagination is not included in the response.",
- "operationId": "search-topics",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/#search-topics"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.14/v3/search/#constructing-a-search-query)."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/topics"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/users-legacy.json b/openapi/ghe-2.14/operations/search/users-legacy.json
deleted file mode 100644
index 7c4cc305df..0000000000
--- a/openapi/ghe-2.14/operations/search/users-legacy.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Search users",
- "description": "Find users by keyword.",
- "operationId": "search-users-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/legacy/#search-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- },
- {
- "name": "start_page",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The page number to fetch."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "updated"
- ]
- },
- "required": false,
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match."
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/user/search/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/search/users.json b/openapi/ghe-2.14/operations/search/users.json
deleted file mode 100644
index 4069661038..0000000000
--- a/openapi/ghe-2.14/operations/search/users.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "summary": "Search users",
- "description": "Find users via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.14/v3/#pagination).\n\nWhen searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://developer.github.com/enterprise/2.14/v3/search/#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.14/v3/search/#text-match-metadata).\n\nImagine you're looking for a list of popular users. You might try out this query:\n\nHere, we're looking at users with the name Tom. We're only interested in those with more than 42 repositories, and only if they have over 1,000 followers.",
- "operationId": "search-users",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/search/#search-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.14/v3/search/#constructing-a-search-query). See \"[Searching users](https://help.github.com/articles/searching-users/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "followers",
- "repositories",
- "joined"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/users"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/add-member.json b/openapi/ghe-2.14/operations/teams/add-member.json
deleted file mode 100644
index 56f91e0285..0000000000
--- a/openapi/ghe-2.14/operations/teams/add-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Add team member",
- "description": "The \"Add team member\" API (described below) is deprecated.\n\nWe recommend using the [Add team membership API](https://developer.github.com/enterprise/2.14/v3/teams/members/#add-or-update-team-membership) instead. It allows you to invite new organization members to your teams.\n\nTo add someone to a team, the authenticated user must be a team maintainer in the team they're changing or be an owner of the organization that the team is associated with. The person being added to the team must be a member of the team's organization.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "teams-add-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/members/#add-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/add-or-update-membership.json b/openapi/ghe-2.14/operations/teams/add-or-update-membership.json
deleted file mode 100644
index 7ffc1cc714..0000000000
--- a/openapi/ghe-2.14/operations/teams/add-or-update-membership.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Add or update team membership",
- "description": "If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a maintainer of the team.\n\nIf the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the \"pending\" state until the user accepts the invitation, at which point the membership will transition to the \"active\" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.\n\nIf the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a maintainer of the team.",
- "operationId": "teams-add-or-update-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/members/#add-or-update-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "role": {
- "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.",
- "type": "string",
- "enum": [
- "member",
- "maintainer"
- ],
- "default": "member"
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/add-or-update-project.json b/openapi/ghe-2.14/operations/teams/add-or-update-project.json
deleted file mode 100644
index b79e05dc5f..0000000000
--- a/openapi/ghe-2.14/operations/teams/add-or-update-project.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "summary": "Add or update team project",
- "description": "Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.",
- "operationId": "teams-add-or-update-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#add-or-update-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\" \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/add-or-update-repo.json b/openapi/ghe-2.14/operations/teams/add-or-update-repo.json
deleted file mode 100644
index f72b9ff708..0000000000
--- a/openapi/ghe-2.14/operations/teams/add-or-update-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Add or update team repository",
- "description": "To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.\n\nIf you pass the `hellcat-preview` media type, you can modify repository permissions of child teams.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"",
- "operationId": "teams-add-or-update-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#add-or-update-team-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/check-manages-repo.json b/openapi/ghe-2.14/operations/teams/check-manages-repo.json
deleted file mode 100644
index c422eb773a..0000000000
--- a/openapi/ghe-2.14/operations/teams/check-manages-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check if a team manages a repository",
- "description": "**Note**: If you pass the `hellcat-preview` media type, repositories inherited through a parent team will be checked.\n\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/enterprise/2.14/v3/media/) via the `Accept` header:",
- "operationId": "teams-check-manages-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#check-if-a-team-manages-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/create-discussion-comment.json b/openapi/ghe-2.14/operations/teams/create-discussion-comment.json
deleted file mode 100644
index 6b7710abea..0000000000
--- a/openapi/ghe-2.14/operations/teams/create-discussion-comment.json
+++ /dev/null
@@ -1,210 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "teams-create-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussion_comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The discussion comment's body text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/create-discussion.json b/openapi/ghe-2.14/operations/teams/create-discussion.json
deleted file mode 100644
index b1b0628cdb..0000000000
--- a/openapi/ghe-2.14/operations/teams/create-discussion.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Create a discussion",
- "description": "Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.14/v3/#abuse-rate-limits)\" for details.",
- "operationId": "teams-create-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussions/#create-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The discussion post's title.",
- "type": "string"
- },
- "body": {
- "description": "The discussion post's body text.",
- "type": "string"
- },
- "private": {
- "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "title",
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n title: 'title',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/create.json b/openapi/ghe-2.14/operations/teams/create.json
deleted file mode 100644
index 687841d3c5..0000000000
--- a/openapi/ghe-2.14/operations/teams/create.json
+++ /dev/null
@@ -1,254 +0,0 @@
-{
- "summary": "Create team",
- "description": "To create a team, the authenticated user must be a member or owner of `:org`.",
- "operationId": "teams-create",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#create-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the team.",
- "type": "string"
- },
- "description": {
- "description": "The description of the team.",
- "type": "string"
- },
- "maintainers": {
- "description": "The logins of organization members to add as maintainers of the team.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "repo_names": {
- "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "privacy": {
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
- "type": "string",
- "enum": [
- "secret",
- "closed"
- ]
- },
- "permission": {
- "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- "parent_team_id": {
- "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
- "type": "integer"
- },
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Update LDAP mapping for a team](https://developer.github.com/enterprise/2.14/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-team) endpoint to change the LDAP DN.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//teams \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/delete-discussion-comment.json b/openapi/ghe-2.14/operations/teams/delete-discussion-comment.json
deleted file mode 100644
index ca33fe7faf..0000000000
--- a/openapi/ghe-2.14/operations/teams/delete-discussion-comment.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-delete-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussion_comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/delete-discussion.json b/openapi/ghe-2.14/operations/teams/delete-discussion.json
deleted file mode 100644
index 3c91bcb438..0000000000
--- a/openapi/ghe-2.14/operations/teams/delete-discussion.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Delete a discussion",
- "description": "Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-delete-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussions/#delete-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/delete.json b/openapi/ghe-2.14/operations/teams/delete.json
deleted file mode 100644
index 676ea1371f..0000000000
--- a/openapi/ghe-2.14/operations/teams/delete.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete team",
- "description": "To delete a team, the authenticated user must be a team maintainer or an owner of the org associated with the team.\n\nIf you are an organization owner and you pass the `hellcat-preview` media type, deleting a parent team will delete all of its child teams as well.",
- "operationId": "teams-delete",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#delete-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/get-discussion-comment.json b/openapi/ghe-2.14/operations/teams/get-discussion-comment.json
deleted file mode 100644
index f711da18da..0000000000
--- a/openapi/ghe-2.14/operations/teams/get-discussion-comment.json
+++ /dev/null
@@ -1,201 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-get-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussion_comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/get-discussion.json b/openapi/ghe-2.14/operations/teams/get-discussion.json
deleted file mode 100644
index ac0c1e80ec..0000000000
--- a/openapi/ghe-2.14/operations/teams/get-discussion.json
+++ /dev/null
@@ -1,207 +0,0 @@
-{
- "summary": "Get a single discussion",
- "description": "Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-get-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussions/#get-a-single-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/get-member.json b/openapi/ghe-2.14/operations/teams/get-member.json
deleted file mode 100644
index e2c63fccc6..0000000000
--- a/openapi/ghe-2.14/operations/teams/get-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get team member",
- "description": "The \"Get team member\" API (described below) is deprecated.\n\nWe recommend using the [Get team membership API](https://developer.github.com/enterprise/2.14/v3/teams/members/#get-team-membership) instead. It allows you to get both active and pending memberships.\n\nTo list members in a team, the team must be visible to the authenticated user.",
- "operationId": "teams-get-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/members/#get-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/get-membership.json b/openapi/ghe-2.14/operations/teams/get-membership.json
deleted file mode 100644
index c2d1c33330..0000000000
--- a/openapi/ghe-2.14/operations/teams/get-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get team membership",
- "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.\n\nTo get a user's membership with a team, the team must be visible to the authenticated user.\n\n**Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/enterprise/2.14/v3/teams#create-team).",
- "operationId": "teams-get-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/members/#get-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/get.json b/openapi/ghe-2.14/operations/teams/get.json
deleted file mode 100644
index e7f01cc869..0000000000
--- a/openapi/ghe-2.14/operations/teams/get.json
+++ /dev/null
@@ -1,192 +0,0 @@
-{
- "summary": "Get team",
- "description": "",
- "operationId": "teams-get",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#get-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/list-child.json b/openapi/ghe-2.14/operations/teams/list-child.json
deleted file mode 100644
index abe2427478..0000000000
--- a/openapi/ghe-2.14/operations/teams/list-child.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "summary": "List child teams",
- "description": "At this time, the `hellcat-preview` media type is required to use this endpoint.\n\n",
- "operationId": "teams-list-child",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#list-child-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.hellcat-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.hellcat-preview+json\" \\\n https://developer.github.com/teams//teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/list-discussion-comments.json b/openapi/ghe-2.14/operations/teams/list-discussion-comments.json
deleted file mode 100644
index dc17a4a26f..0000000000
--- a/openapi/ghe-2.14/operations/teams/list-discussion-comments.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List comments",
- "description": "List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-list-discussion-comments",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussion_comments/#list-comments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/list-discussions.json b/openapi/ghe-2.14/operations/teams/list-discussions.json
deleted file mode 100644
index d6afbd486f..0000000000
--- a/openapi/ghe-2.14/operations/teams/list-discussions.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "List discussions",
- "description": "List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-list-discussions",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussions/#list-discussions"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/list-for-authenticated-user.json b/openapi/ghe-2.14/operations/teams/list-for-authenticated-user.json
deleted file mode 100644
index 7c3ee6cb2d..0000000000
--- a/openapi/ghe-2.14/operations/teams/list-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List user teams",
- "description": "List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/).",
- "operationId": "teams-list-for-authenticated-user",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#list-user-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/list-members.json b/openapi/ghe-2.14/operations/teams/list-members.json
deleted file mode 100644
index 9ebebcedaf..0000000000
--- a/openapi/ghe-2.14/operations/teams/list-members.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "List team members",
- "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.\n\nTo list members in a team, the team must be visible to the authenticated user.",
- "operationId": "teams-list-members",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/members/#list-team-members"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "member",
- "maintainer",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/list-projects.json b/openapi/ghe-2.14/operations/teams/list-projects.json
deleted file mode 100644
index f9bd90d9b6..0000000000
--- a/openapi/ghe-2.14/operations/teams/list-projects.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "List team projects",
- "description": "Lists the organization projects for a team. If you are an [authenticated](https://developer.github.com/enterprise/2.14/v3/#authentication) site administrator for your Enterprise instance, you will be able to list all projects for the team. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team.",
- "operationId": "teams-list-projects",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#list-team-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/list-repos.json b/openapi/ghe-2.14/operations/teams/list-repos.json
deleted file mode 100644
index e989b79886..0000000000
--- a/openapi/ghe-2.14/operations/teams/list-repos.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List team repos",
- "description": "**Note**: If you pass the `hellcat-preview` media type, the response will include any repositories inherited through a parent team.\n\nIf you are an [authenticated](https://developer.github.com/enterprise/2.14/v3/#authentication) site administrator for your Enterprise instance, you will be able to list all repositories for the team.",
- "operationId": "teams-list-repos",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#list-team-repos"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/list.json b/openapi/ghe-2.14/operations/teams/list.json
deleted file mode 100644
index 274aaf2369..0000000000
--- a/openapi/ghe-2.14/operations/teams/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List teams",
- "description": "",
- "operationId": "teams-list",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#list-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/remove-member.json b/openapi/ghe-2.14/operations/teams/remove-member.json
deleted file mode 100644
index c7c9e416b6..0000000000
--- a/openapi/ghe-2.14/operations/teams/remove-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team member",
- "description": "The \"Remove team member\" API (described below) is deprecated.\n\nWe recommend using the [Remove team membership endpoint](https://developer.github.com/enterprise/2.14/v3/teams/members/#remove-team-membership) instead. It allows you to remove both active and pending memberships.\n\nTo remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.",
- "operationId": "teams-remove-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/members/#remove-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/remove-membership.json b/openapi/ghe-2.14/operations/teams/remove-membership.json
deleted file mode 100644
index 0547d86dbf..0000000000
--- a/openapi/ghe-2.14/operations/teams/remove-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team membership",
- "description": "To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.",
- "operationId": "teams-remove-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/members/#remove-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/remove-project.json b/openapi/ghe-2.14/operations/teams/remove-project.json
deleted file mode 100644
index 079b954781..0000000000
--- a/openapi/ghe-2.14/operations/teams/remove-project.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team project",
- "description": "Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it.",
- "operationId": "teams-remove-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#remove-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/remove-repo.json b/openapi/ghe-2.14/operations/teams/remove-repo.json
deleted file mode 100644
index 8c04159c92..0000000000
--- a/openapi/ghe-2.14/operations/teams/remove-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove team repository",
- "description": "If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.",
- "operationId": "teams-remove-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#remove-team-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/review-project.json b/openapi/ghe-2.14/operations/teams/review-project.json
deleted file mode 100644
index edfa2d1007..0000000000
--- a/openapi/ghe-2.14/operations/teams/review-project.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Review a team project",
- "description": "Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team.",
- "operationId": "teams-review-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#review-a-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization_permission": {
- "type": "string"
- },
- "private": {
- "type": "boolean"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "read": {
- "type": "boolean"
- },
- "write": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/update-discussion-comment.json b/openapi/ghe-2.14/operations/teams/update-discussion-comment.json
deleted file mode 100644
index d503f180f2..0000000000
--- a/openapi/ghe-2.14/operations/teams/update-discussion-comment.json
+++ /dev/null
@@ -1,219 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-update-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussion_comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The discussion comment's body text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/update-discussion.json b/openapi/ghe-2.14/operations/teams/update-discussion.json
deleted file mode 100644
index e216e3a391..0000000000
--- a/openapi/ghe-2.14/operations/teams/update-discussion.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Edit a discussion",
- "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-update-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/discussions/#edit-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The discussion post's title.",
- "type": "string"
- },
- "body": {
- "description": "The discussion post's body text.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/teams/update.json b/openapi/ghe-2.14/operations/teams/update.json
deleted file mode 100644
index 35006efa67..0000000000
--- a/openapi/ghe-2.14/operations/teams/update.json
+++ /dev/null
@@ -1,236 +0,0 @@
-{
- "summary": "Edit team",
- "description": "To edit a team, the authenticated user must either be an owner of the org that the team is associated with, or a maintainer of the team.\n\n**Note:** With nested teams, the `privacy` for parent teams cannot be `secret`.",
- "operationId": "teams-update",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/teams/#edit-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the team.",
- "type": "string"
- },
- "description": {
- "description": "The description of the team.",
- "type": "string"
- },
- "privacy": {
- "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "type": "string",
- "enum": [
- "secret",
- "closed"
- ]
- },
- "permission": {
- "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- "parent_team_id": {
- "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
- "type": "integer"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/ \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/add-emails.json b/openapi/ghe-2.14/operations/users/add-emails.json
deleted file mode 100644
index 278c25c1e4..0000000000
--- a/openapi/ghe-2.14/operations/users/add-emails.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Add email address(es)",
- "description": "If your GitHub Enterprise instance has [LDAP Sync enabled and the option to synchronize emails enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync), this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add or delete an email address via the API with these options enabled.\n\nThis endpoint is accessible with the `user` scope.\n\nYou can add a single email address or an array of addresses to your GitHub Enterprise account:",
- "operationId": "users-add-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/emails/#add-email-addresses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/check-following-for-user.json b/openapi/ghe-2.14/operations/users/check-following-for-user.json
deleted file mode 100644
index 46e0ba3457..0000000000
--- a/openapi/ghe-2.14/operations/users/check-following-for-user.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if one user follows another",
- "description": "",
- "operationId": "users-check-following-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/followers/#check-if-one-user-follows-another"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "target_user",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "target_user parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//following/:target_user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username',\n target_user: 'target_user'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/check-following.json b/openapi/ghe-2.14/operations/users/check-following.json
deleted file mode 100644
index e1155d3333..0000000000
--- a/openapi/ghe-2.14/operations/users/check-following.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Check if you are following a user",
- "description": "",
- "operationId": "users-check-following",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/followers/#check-if-you-are-following-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/create-gpg-key.json b/openapi/ghe-2.14/operations/users/create-gpg-key.json
deleted file mode 100644
index 4aeb55701b..0000000000
--- a/openapi/ghe-2.14/operations/users/create-gpg-key.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "summary": "Create a GPG key",
- "description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-create-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/gpg_keys/#create-a-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "armored_public_key": {
- "description": "Your GPG key, generated in ASCII-armored format. See \"[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)\" for help creating a GPG key.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "string"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- }
- }
- }
- },
- "subkeys": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "number"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {}
- },
- "subkeys": {
- "type": "array",
- "items": {}
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/create-public-key.json b/openapi/ghe-2.14/operations/users/create-public-key.json
deleted file mode 100644
index 60e494ec2d..0000000000
--- a/openapi/ghe-2.14/operations/users/create-public-key.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "Create a public key",
- "description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nIf your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add an SSH key address via the API with these options enabled.",
- "operationId": "users-create-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/keys/#create-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key \"Personal MacBook Air\".",
- "type": "string"
- },
- "key": {
- "description": "The public SSH key to add to your GitHub account. See \"[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)\" for guidance on how to create a public SSH key.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/delete-emails.json b/openapi/ghe-2.14/operations/users/delete-emails.json
deleted file mode 100644
index 34f7e05b05..0000000000
--- a/openapi/ghe-2.14/operations/users/delete-emails.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "summary": "Delete email address(es)",
- "description": "If your GitHub Enterprise instance has [LDAP Sync enabled and the option to synchronize emails enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync), this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add or delete an email address via the API with these options enabled.\n\nThis endpoint is accessible with the `user` scope.\n\nYou can delete a single email address or an array of addresses from your GitHub Enterprise account:",
- "operationId": "users-delete-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/emails/#delete-email-addresses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/delete-gpg-key.json b/openapi/ghe-2.14/operations/users/delete-gpg-key.json
deleted file mode 100644
index 86a980f0da..0000000000
--- a/openapi/ghe-2.14/operations/users/delete-gpg-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a GPG key",
- "description": "Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-delete-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/gpg_keys/#delete-a-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gpg_key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "gpg_key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n gpg_key_id: 'gpg_key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/delete-public-key.json b/openapi/ghe-2.14/operations/users/delete-public-key.json
deleted file mode 100644
index b27a2474b4..0000000000
--- a/openapi/ghe-2.14/operations/users/delete-public-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a public key",
- "description": "Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nIf your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to remove an SSH key address via the API with these options enabled.",
- "operationId": "users-delete-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/keys/#delete-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/follow.json b/openapi/ghe-2.14/operations/users/follow.json
deleted file mode 100644
index ba703a81b6..0000000000
--- a/openapi/ghe-2.14/operations/users/follow.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Follow a user",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.14/v3/#http-verbs).\"\n\nFollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
- "operationId": "users-follow",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/followers/#follow-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/get-authenticated.json b/openapi/ghe-2.14/operations/users/get-authenticated.json
deleted file mode 100644
index f9642e3b8e..0000000000
--- a/openapi/ghe-2.14/operations/users/get-authenticated.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "summary": "Get the authenticated user",
- "description": "Lists public and private profile information when authenticated through basic auth or OAuth with the `user` scope.\n\nLists public profile information when authenticated through OAuth without the `user` scope.",
- "operationId": "users-get-authenticated",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/#get-the-authenticated-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/get-by-username.json b/openapi/ghe-2.14/operations/users/get-by-username.json
deleted file mode 100644
index eef89bccd4..0000000000
--- a/openapi/ghe-2.14/operations/users/get-by-username.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "summary": "Get a single user",
- "description": "Provides publicly available information about someone with a GitHub Enterprise account.\n\nThe `email` key in the following response is the publicly visible email address from your GitHub Enterprise [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise. For more information, see [Authentication](https://developer.github.com/enterprise/2.14/v3/#authentication).\n\nThe Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"[Emails API](https://developer.github.com/enterprise/2.14/v3/users/emails/)\".",
- "operationId": "users-get-by-username",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/#get-a-single-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "hireable": {
- "type": "boolean"
- },
- "bio": {
- "type": "string"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/get-context-for-user.json b/openapi/ghe-2.14/operations/users/get-context-for-user.json
deleted file mode 100644
index 308431f11a..0000000000
--- a/openapi/ghe-2.14/operations/users/get-context-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Get contextual information about a user",
- "description": "Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.\n\nThe `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this:",
- "operationId": "users-get-context-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/#get-contextual-information-about-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.hagar-preview+json"
- },
- "required": true
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "subject_type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "organization",
- "repository",
- "issue",
- "pull_request"
- ]
- },
- "required": false,
- "description": "Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`."
- },
- {
- "name": "subject_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.hagar-preview+json\" \\\n https://developer.github.com/users//hovercard"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/get-gpg-key.json b/openapi/ghe-2.14/operations/users/get-gpg-key.json
deleted file mode 100644
index cdfe1c89f3..0000000000
--- a/openapi/ghe-2.14/operations/users/get-gpg-key.json
+++ /dev/null
@@ -1,151 +0,0 @@
-{
- "summary": "Get a single GPG key",
- "description": "View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-get-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/gpg_keys/#get-a-single-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gpg_key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "gpg_key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "string"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- }
- }
- }
- },
- "subkeys": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "number"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {}
- },
- "subkeys": {
- "type": "array",
- "items": {}
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n gpg_key_id: 'gpg_key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/get-public-key.json b/openapi/ghe-2.14/operations/users/get-public-key.json
deleted file mode 100644
index 843eeb406d..0000000000
--- a/openapi/ghe-2.14/operations/users/get-public-key.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get a single public key",
- "description": "View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-get-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/keys/#get-a-single-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-emails.json b/openapi/ghe-2.14/operations/users/list-emails.json
deleted file mode 100644
index 27d466e246..0000000000
--- a/openapi/ghe-2.14/operations/users/list-emails.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List email addresses for a user",
- "description": "Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope.",
- "operationId": "users-list-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/emails/#list-email-addresses-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-followers-for-authenticated-user.json b/openapi/ghe-2.14/operations/users/list-followers-for-authenticated-user.json
deleted file mode 100644
index 0240466d54..0000000000
--- a/openapi/ghe-2.14/operations/users/list-followers-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List the authenticated user's followers",
- "description": "",
- "operationId": "users-list-followers-for-authenticated-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/followers/#list-followers-of-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/followers"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-followers-for-user.json b/openapi/ghe-2.14/operations/users/list-followers-for-user.json
deleted file mode 100644
index 294680bfd8..0000000000
--- a/openapi/ghe-2.14/operations/users/list-followers-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List a user's followers",
- "description": "",
- "operationId": "users-list-followers-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/followers/#list-followers-of-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//followers"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-following-for-authenticated-user.json b/openapi/ghe-2.14/operations/users/list-following-for-authenticated-user.json
deleted file mode 100644
index 3dabf188dd..0000000000
--- a/openapi/ghe-2.14/operations/users/list-following-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List who the authenticated user is following",
- "description": "",
- "operationId": "users-list-following-for-authenticated-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/followers/#list-users-followed-by-another-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-following-for-user.json b/openapi/ghe-2.14/operations/users/list-following-for-user.json
deleted file mode 100644
index 72a1072eed..0000000000
--- a/openapi/ghe-2.14/operations/users/list-following-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List who a user is following",
- "description": "",
- "operationId": "users-list-following-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/followers/#list-users-followed-by-another-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//following"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-gpg-keys-for-user.json b/openapi/ghe-2.14/operations/users/list-gpg-keys-for-user.json
deleted file mode 100644
index aa0026ab9f..0000000000
--- a/openapi/ghe-2.14/operations/users/list-gpg-keys-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List GPG keys for a user",
- "description": "Lists the GPG keys for a user. This information is accessible by anyone.",
- "operationId": "users-list-gpg-keys-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/gpg_keys/#list-gpg-keys-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-gpg-keys.json b/openapi/ghe-2.14/operations/users/list-gpg-keys.json
deleted file mode 100644
index 4293bed980..0000000000
--- a/openapi/ghe-2.14/operations/users/list-gpg-keys.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your GPG keys",
- "description": "Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-list-gpg-keys",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/gpg_keys/#list-your-gpg-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-public-emails.json b/openapi/ghe-2.14/operations/users/list-public-emails.json
deleted file mode 100644
index da126b6852..0000000000
--- a/openapi/ghe-2.14/operations/users/list-public-emails.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List public email addresses for a user",
- "description": "Lists your publicly visible email address. This endpoint is accessible with the `user:email` scope.",
- "operationId": "users-list-public-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/emails/#list-public-email-addresses-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/public_emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-public-keys-for-user.json b/openapi/ghe-2.14/operations/users/list-public-keys-for-user.json
deleted file mode 100644
index 373bab0765..0000000000
--- a/openapi/ghe-2.14/operations/users/list-public-keys-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List public keys for a user",
- "description": "Lists the _verified_ public SSH keys for a user. This is accessible by anyone.",
- "operationId": "users-list-public-keys-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/keys/#list-public-keys-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list-public-keys.json b/openapi/ghe-2.14/operations/users/list-public-keys.json
deleted file mode 100644
index 14d3b7e5c6..0000000000
--- a/openapi/ghe-2.14/operations/users/list-public-keys.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your public keys",
- "description": "Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/enterprise/2.14/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-list-public-keys",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/keys/#list-your-public-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/list.json b/openapi/ghe-2.14/operations/users/list.json
deleted file mode 100644
index 0f4253eaa9..0000000000
--- a/openapi/ghe-2.14/operations/users/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Get all users",
- "description": "Lists all users, in the order that they signed up on GitHub Enterprise. This list includes personal user accounts and organization accounts.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.14/v3/#link-header) to get the URL for the next page of users.",
- "operationId": "users-list",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/#get-all-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last User that you've seen."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/unfollow.json b/openapi/ghe-2.14/operations/users/unfollow.json
deleted file mode 100644
index 44ec3b85c1..0000000000
--- a/openapi/ghe-2.14/operations/users/unfollow.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Unfollow a user",
- "description": "Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
- "operationId": "users-unfollow",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/followers/#unfollow-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.14/operations/users/update-authenticated.json b/openapi/ghe-2.14/operations/users/update-authenticated.json
deleted file mode 100644
index 746e9fa1ef..0000000000
--- a/openapi/ghe-2.14/operations/users/update-authenticated.json
+++ /dev/null
@@ -1,222 +0,0 @@
-{
- "summary": "Update the authenticated user",
- "description": "**Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.",
- "operationId": "users-update-authenticated",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.14/v3/users/#update-the-authenticated-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new name of the user.",
- "type": "string"
- },
- "email": {
- "description": "The publicly visible email address of the user.",
- "type": "string"
- },
- "blog": {
- "description": "The new blog URL of the user.",
- "type": "string"
- },
- "company": {
- "description": "The new company of the user.",
- "type": "string"
- },
- "location": {
- "description": "The new location of the user.",
- "type": "string"
- },
- "hireable": {
- "description": "The new hiring availability of the user.",
- "type": "boolean"
- },
- "bio": {
- "description": "The new short biography of the user.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "hireable": {
- "type": "boolean"
- },
- "bio": {
- "type": "string"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "private_gists": {
- "type": "number"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "two_factor_authentication": {
- "type": "boolean"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- }
- }
- },
- "suspended_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/index.json b/openapi/ghe-2.15/index.json
deleted file mode 100644
index 1aed9283cb..0000000000
--- a/openapi/ghe-2.15/index.json
+++ /dev/null
@@ -1,2112 +0,0 @@
-{
- "openapi": "3.0.2",
- "info": {
- "version": "3.0.0",
- "title": "GitHub Enterprise REST API v3",
- "description": "This describes the resources that make up the official GitHub Enterprise Server REST API v3. If you have any problems or requests, please contact [GitHub Enterprise Support](https://enterprise.github.com/support).",
- "license": {
- "name": "GitHub Enterprise License Agreement",
- "url": "https://enterprise.github.com/license"
- },
- "termsOfService": "https://help.github.com/en/articles/github-terms-of-service"
- },
- "servers": [
- {
- "url": "http://{hostname}",
- "variables": {
- "hostname": {
- "description": "Self-hosted Enterprise Server or Enterprise Cloud hostname",
- "default": "HOSTNAME"
- }
- }
- }
- ],
- "externalDocs": {
- "description": "GitHub Enterprise Developer Docs",
- "url": "https://developer.github.com/enterprise/2.15/v3/"
- },
- "paths": {
- "/admin/hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-global-hooks.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-global-hook.json"
- }
- },
- "/admin/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-global-hook.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-global-hook.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-global-hook.json"
- }
- },
- "/admin/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/enterprise-admin/ping-global-hook.json"
- }
- },
- "/admin/keys/{key_ids}": {
- "delete": {
- "$ref": "operations/enterprise-admin/delete-public-key.json"
- }
- },
- "/admin/ldap/teams/{team_id}/mapping": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-ldap-mapping-for-team.json"
- }
- },
- "/admin/ldap/teams/{team_id}/sync": {
- "post": {
- "$ref": "operations/enterprise-admin/sync-ldap-mapping-for-team.json"
- }
- },
- "/admin/ldap/users/{username}/mapping": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-ldap-mapping-for-user.json"
- }
- },
- "/admin/ldap/users/{username}/sync": {
- "post": {
- "$ref": "operations/enterprise-admin/sync-ldap-mapping-for-user.json"
- }
- },
- "/admin/organizations": {
- "post": {
- "$ref": "operations/enterprise-admin/create-org.json"
- }
- },
- "/admin/organizations/{org}": {
- "patch": {
- "$ref": "operations/enterprise-admin/rename-org.json"
- }
- },
- "/admin/pre-receive-environments": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-environments.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-pre-receive-environment.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-environment.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-environment.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-pre-receive-environment.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads": {
- "post": {
- "$ref": "operations/enterprise-admin/trigger-pre-receive-environment-download.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-environment-download-status.json"
- }
- },
- "/admin/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-pre-receive-hook.json"
- }
- },
- "/admin/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook.json"
- }
- },
- "/admin/pre_receive_hooks/{pre_receive_hook_id}": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-pre-receive-hook.json"
- }
- },
- "/admin/users": {
- "post": {
- "$ref": "operations/enterprise-admin/create-user.json"
- }
- },
- "/admin/users/{username}": {
- "patch": {
- "$ref": "operations/enterprise-admin/rename-user.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-user.json"
- }
- },
- "/admin/users/{username}/authorizations": {
- "post": {
- "$ref": "operations/enterprise-admin/create-impersonation-o-auth-token.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-impersonation-o-auth-token.json"
- }
- },
- "/app": {
- "get": {
- "$ref": "operations/apps/get-authenticated.json"
- }
- },
- "/app/installations": {
- "get": {
- "$ref": "operations/apps/list-installations.json"
- }
- },
- "/app/installations/{installation_id}": {
- "get": {
- "$ref": "operations/apps/get-installation.json"
- }
- },
- "/app/installations/{installation_id}/access_tokens": {
- "post": {
- "$ref": "operations/apps/create-installation-token.json"
- }
- },
- "/applications/grants": {
- "get": {
- "$ref": "operations/oauth_authorizations/list-grants.json"
- }
- },
- "/applications/grants/{grant_id}": {
- "get": {
- "$ref": "operations/oauth_authorizations/get-grant.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/delete-grant.json"
- }
- },
- "/applications/{client_id}/grants/{access_token}": {
- "delete": {
- "$ref": "operations/oauth_authorizations/revoke-grant-for-application.json"
- }
- },
- "/applications/{client_id}/tokens/{access_token}": {
- "get": {
- "$ref": "operations/oauth_authorizations/check-authorization.json"
- },
- "post": {
- "$ref": "operations/oauth_authorizations/reset-authorization.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/revoke-authorization-for-application.json"
- }
- },
- "/apps/{app_slug}": {
- "get": {
- "$ref": "operations/apps/get-by-slug.json"
- }
- },
- "/authorizations": {
- "get": {
- "$ref": "operations/oauth_authorizations/list-authorizations.json"
- },
- "post": {
- "$ref": "operations/oauth_authorizations/create-authorization.json"
- }
- },
- "/authorizations/clients/{client_id}": {
- "put": {
- "$ref": "operations/oauth_authorizations/get-or-create-authorization-for-app.json"
- }
- },
- "/authorizations/clients/{client_id}/{fingerprint}": {
- "put": {
- "$ref": "operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json"
- }
- },
- "/authorizations/{authorization_id}": {
- "get": {
- "$ref": "operations/oauth_authorizations/get-authorization.json"
- },
- "patch": {
- "$ref": "operations/oauth_authorizations/update-authorization.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/delete-authorization.json"
- }
- },
- "/codes_of_conduct": {
- "get": {
- "$ref": "operations/codes_of_conduct/list-conduct-codes.json"
- }
- },
- "/codes_of_conduct/{key}": {
- "get": {
- "$ref": "operations/codes_of_conduct/get-conduct-code.json"
- }
- },
- "/emojis": {
- "get": {
- "$ref": "operations/emojis/get.json"
- }
- },
- "/enterprise/settings/license": {
- "get": {
- "$ref": "operations/enterprise-admin/get-license-information.json"
- }
- },
- "/enterprise/stats/{type}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-type-stats.json"
- }
- },
- "/events": {
- "get": {
- "$ref": "operations/activity/list-public-events.json"
- }
- },
- "/feeds": {
- "get": {
- "$ref": "operations/activity/list-feeds.json"
- }
- },
- "/gists": {
- "get": {
- "$ref": "operations/gists/list.json"
- },
- "post": {
- "$ref": "operations/gists/create.json"
- }
- },
- "/gists/public": {
- "get": {
- "$ref": "operations/gists/list-public.json"
- }
- },
- "/gists/starred": {
- "get": {
- "$ref": "operations/gists/list-starred.json"
- }
- },
- "/gists/{gist_id}": {
- "get": {
- "$ref": "operations/gists/get.json"
- },
- "patch": {
- "$ref": "operations/gists/update.json"
- },
- "delete": {
- "$ref": "operations/gists/delete.json"
- }
- },
- "/gists/{gist_id}/comments": {
- "get": {
- "$ref": "operations/gists/list-comments.json"
- },
- "post": {
- "$ref": "operations/gists/create-comment.json"
- }
- },
- "/gists/{gist_id}/comments/{comment_id}": {
- "get": {
- "$ref": "operations/gists/get-comment.json"
- },
- "patch": {
- "$ref": "operations/gists/update-comment.json"
- },
- "delete": {
- "$ref": "operations/gists/delete-comment.json"
- }
- },
- "/gists/{gist_id}/commits": {
- "get": {
- "$ref": "operations/gists/list-commits.json"
- }
- },
- "/gists/{gist_id}/forks": {
- "post": {
- "$ref": "operations/gists/fork.json"
- },
- "get": {
- "$ref": "operations/gists/list-forks.json"
- }
- },
- "/gists/{gist_id}/star": {
- "put": {
- "$ref": "operations/gists/star.json"
- },
- "delete": {
- "$ref": "operations/gists/unstar.json"
- },
- "get": {
- "$ref": "operations/gists/check-is-starred.json"
- }
- },
- "/gists/{gist_id}/{sha}": {
- "get": {
- "$ref": "operations/gists/get-revision.json"
- }
- },
- "/gitignore/templates": {
- "get": {
- "$ref": "operations/gitignore/list-templates.json"
- }
- },
- "/gitignore/templates/{name}": {
- "get": {
- "$ref": "operations/gitignore/get-template.json"
- }
- },
- "/installation/repositories": {
- "get": {
- "$ref": "operations/apps/list-repos.json"
- }
- },
- "/issues": {
- "get": {
- "$ref": "operations/issues/list.json"
- }
- },
- "/legacy/issues/search/{owner}/{repository}/{state}/{keyword}": {
- "get": {
- "$ref": "operations/search/issues-legacy.json"
- }
- },
- "/legacy/repos/search/{keyword}": {
- "get": {
- "$ref": "operations/search/repos-legacy.json"
- }
- },
- "/legacy/user/email/{email}": {
- "get": {
- "$ref": "operations/search/email-legacy.json"
- }
- },
- "/legacy/user/search/{keyword}": {
- "get": {
- "$ref": "operations/search/users-legacy.json"
- }
- },
- "/licenses": {
- "get": {
- "$ref": "operations/licenses/list-commonly-used.json"
- }
- },
- "/licenses/{license}": {
- "get": {
- "$ref": "operations/licenses/get.json"
- }
- },
- "/markdown": {
- "post": {
- "$ref": "operations/markdown/render.json"
- }
- },
- "/markdown/raw": {
- "post": {
- "$ref": "operations/markdown/render-raw.json"
- }
- },
- "/meta": {
- "get": {
- "$ref": "operations/meta/get.json"
- }
- },
- "/networks/{owner}/{repo}/events": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-repo-network.json"
- }
- },
- "/notifications": {
- "get": {
- "$ref": "operations/activity/list-notifications.json"
- },
- "put": {
- "$ref": "operations/activity/mark-as-read.json"
- }
- },
- "/notifications/threads/{thread_id}": {
- "get": {
- "$ref": "operations/activity/get-thread.json"
- },
- "patch": {
- "$ref": "operations/activity/mark-thread-as-read.json"
- }
- },
- "/notifications/threads/{thread_id}/subscription": {
- "get": {
- "$ref": "operations/activity/get-thread-subscription.json"
- },
- "put": {
- "$ref": "operations/activity/set-thread-subscription.json"
- },
- "delete": {
- "$ref": "operations/activity/delete-thread-subscription.json"
- }
- },
- "/organizations": {
- "get": {
- "$ref": "operations/orgs/list.json"
- }
- },
- "/orgs/{org}": {
- "get": {
- "$ref": "operations/orgs/get.json"
- },
- "patch": {
- "$ref": "operations/orgs/update.json"
- }
- },
- "/orgs/{org}/events": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-org.json"
- }
- },
- "/orgs/{org}/hooks": {
- "get": {
- "$ref": "operations/orgs/list-hooks.json"
- },
- "post": {
- "$ref": "operations/orgs/create-hook.json"
- }
- },
- "/orgs/{org}/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/orgs/get-hook.json"
- },
- "patch": {
- "$ref": "operations/orgs/update-hook.json"
- },
- "delete": {
- "$ref": "operations/orgs/delete-hook.json"
- }
- },
- "/orgs/{org}/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/orgs/ping-hook.json"
- }
- },
- "/orgs/{org}/installation": {
- "get": {
- "$ref": "operations/apps/get-org-installation.json"
- }
- },
- "/orgs/{org}/issues": {
- "get": {
- "$ref": "operations/issues/list-for-org.json"
- }
- },
- "/orgs/{org}/members": {
- "get": {
- "$ref": "operations/orgs/list-members.json"
- }
- },
- "/orgs/{org}/members/{username}": {
- "get": {
- "$ref": "operations/orgs/check-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/remove-member.json"
- }
- },
- "/orgs/{org}/memberships/{username}": {
- "get": {
- "$ref": "operations/orgs/get-membership.json"
- },
- "put": {
- "$ref": "operations/orgs/add-or-update-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/remove-membership.json"
- }
- },
- "/orgs/{org}/outside_collaborators": {
- "get": {
- "$ref": "operations/orgs/list-outside-collaborators.json"
- }
- },
- "/orgs/{org}/outside_collaborators/{username}": {
- "delete": {
- "$ref": "operations/orgs/remove-outside-collaborator.json"
- },
- "put": {
- "$ref": "operations/orgs/convert-member-to-outside-collaborator.json"
- }
- },
- "/orgs/{org}/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks-for-org.json"
- }
- },
- "/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook-for-org.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json"
- }
- },
- "/orgs/{org}/projects": {
- "get": {
- "$ref": "operations/projects/list-for-org.json"
- },
- "post": {
- "$ref": "operations/projects/create-for-org.json"
- }
- },
- "/orgs/{org}/public_members": {
- "get": {
- "$ref": "operations/orgs/list-public-members.json"
- }
- },
- "/orgs/{org}/public_members/{username}": {
- "get": {
- "$ref": "operations/orgs/check-public-membership.json"
- },
- "put": {
- "$ref": "operations/orgs/publicize-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/conceal-membership.json"
- }
- },
- "/orgs/{org}/repos": {
- "get": {
- "$ref": "operations/repos/list-for-org.json"
- },
- "post": {
- "$ref": "operations/repos/create-in-org.json"
- }
- },
- "/orgs/{org}/teams": {
- "get": {
- "$ref": "operations/teams/list.json"
- },
- "post": {
- "$ref": "operations/teams/create.json"
- }
- },
- "/projects/columns/cards/{card_id}": {
- "get": {
- "$ref": "operations/projects/get-card.json"
- },
- "patch": {
- "$ref": "operations/projects/update-card.json"
- },
- "delete": {
- "$ref": "operations/projects/delete-card.json"
- }
- },
- "/projects/columns/cards/{card_id}/moves": {
- "post": {
- "$ref": "operations/projects/move-card.json"
- }
- },
- "/projects/columns/{column_id}": {
- "get": {
- "$ref": "operations/projects/get-column.json"
- },
- "patch": {
- "$ref": "operations/projects/update-column.json"
- },
- "delete": {
- "$ref": "operations/projects/delete-column.json"
- }
- },
- "/projects/columns/{column_id}/cards": {
- "get": {
- "$ref": "operations/projects/list-cards.json"
- },
- "post": {
- "$ref": "operations/projects/create-card.json"
- }
- },
- "/projects/columns/{column_id}/moves": {
- "post": {
- "$ref": "operations/projects/move-column.json"
- }
- },
- "/projects/{project_id}": {
- "get": {
- "$ref": "operations/projects/get.json"
- },
- "patch": {
- "$ref": "operations/projects/update.json"
- },
- "delete": {
- "$ref": "operations/projects/delete.json"
- }
- },
- "/projects/{project_id}/collaborators": {
- "get": {
- "$ref": "operations/projects/list-collaborators.json"
- }
- },
- "/projects/{project_id}/collaborators/{username}": {
- "put": {
- "$ref": "operations/projects/add-collaborator.json"
- },
- "delete": {
- "$ref": "operations/projects/remove-collaborator.json"
- }
- },
- "/projects/{project_id}/collaborators/{username}/permission": {
- "get": {
- "$ref": "operations/projects/review-user-permission-level.json"
- }
- },
- "/projects/{project_id}/columns": {
- "get": {
- "$ref": "operations/projects/list-columns.json"
- },
- "post": {
- "$ref": "operations/projects/create-column.json"
- }
- },
- "/rate_limit": {
- "get": {
- "$ref": "operations/rate_limit/get.json"
- }
- },
- "/reactions/{reaction_id}": {
- "delete": {
- "$ref": "operations/reactions/delete.json"
- }
- },
- "/repos/{owner}/{repo}": {
- "get": {
- "$ref": "operations/repos/get.json"
- },
- "patch": {
- "$ref": "operations/repos/update.json"
- },
- "delete": {
- "$ref": "operations/repos/delete.json"
- }
- },
- "/repos/{owner}/{repo}/assignees": {
- "get": {
- "$ref": "operations/issues/list-assignees.json"
- }
- },
- "/repos/{owner}/{repo}/assignees/{assignee}": {
- "get": {
- "$ref": "operations/issues/check-assignee.json"
- }
- },
- "/repos/{owner}/{repo}/branches": {
- "get": {
- "$ref": "operations/repos/list-branches.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}": {
- "get": {
- "$ref": "operations/repos/get-branch.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection": {
- "get": {
- "$ref": "operations/repos/get-branch-protection.json"
- },
- "put": {
- "$ref": "operations/repos/update-branch-protection.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-branch-protection.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-admin-enforcement.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-admin-enforcement.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-admin-enforcement.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-pull-request-review-enforcement.json"
- },
- "patch": {
- "$ref": "operations/repos/update-protected-branch-pull-request-review-enforcement.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-pull-request-review-enforcement.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-required-signatures.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-required-signatures.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-signatures.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-required-status-checks.json"
- },
- "patch": {
- "$ref": "operations/repos/update-protected-branch-required-status-checks.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-status-checks.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-required-status-checks-contexts.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-required-status-checks-contexts.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-required-status-checks-contexts.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-status-checks-contexts.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-team-restrictions.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-team-restrictions.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-team-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-team-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-user-restrictions.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-user-restrictions.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-user-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-user-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs": {
- "post": {
- "$ref": "operations/checks/create.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs/{check_run_id}": {
- "patch": {
- "$ref": "operations/checks/update.json"
- },
- "get": {
- "$ref": "operations/checks/get.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": {
- "get": {
- "$ref": "operations/checks/list-annotations.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites": {
- "post": {
- "$ref": "operations/checks/create-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/preferences": {
- "patch": {
- "$ref": "operations/checks/set-suites-preferences.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}": {
- "get": {
- "$ref": "operations/checks/get-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": {
- "get": {
- "$ref": "operations/checks/list-for-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": {
- "post": {
- "$ref": "operations/checks/rerequest-suite.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators": {
- "get": {
- "$ref": "operations/repos/list-collaborators.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators/{username}": {
- "get": {
- "$ref": "operations/repos/check-collaborator.json"
- },
- "put": {
- "$ref": "operations/repos/add-collaborator.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-collaborator.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators/{username}/permission": {
- "get": {
- "$ref": "operations/repos/get-collaborator-permission-level.json"
- }
- },
- "/repos/{owner}/{repo}/comments": {
- "get": {
- "$ref": "operations/repos/list-commit-comments.json"
- }
- },
- "/repos/{owner}/{repo}/comments/{comment_id}": {
- "get": {
- "$ref": "operations/repos/get-commit-comment.json"
- },
- "patch": {
- "$ref": "operations/repos/update-commit-comment.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-commit-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/commits": {
- "get": {
- "$ref": "operations/repos/list-commits.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{commit_sha}/comments": {
- "get": {
- "$ref": "operations/repos/list-comments-for-commit.json"
- },
- "post": {
- "$ref": "operations/repos/create-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}": {
- "get": {
- "$ref": "operations/repos/get-commit.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/check-runs": {
- "get": {
- "$ref": "operations/checks/list-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/check-suites": {
- "get": {
- "$ref": "operations/checks/list-suites-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/status": {
- "get": {
- "$ref": "operations/repos/get-combined-status-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/statuses": {
- "get": {
- "$ref": "operations/repos/list-statuses-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/community/code_of_conduct": {
- "get": {
- "$ref": "operations/codes_of_conduct/get-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/compare/{base}...{head}": {
- "get": {
- "$ref": "operations/repos/compare-commits.json"
- }
- },
- "/repos/{owner}/{repo}/contents/{path}": {
- "get": {
- "$ref": "operations/repos/get-contents.json"
- },
- "put": {
- "$ref": "operations/repos/create-or-update-file.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-file.json"
- }
- },
- "/repos/{owner}/{repo}/contributors": {
- "get": {
- "$ref": "operations/repos/list-contributors.json"
- }
- },
- "/repos/{owner}/{repo}/deployments": {
- "get": {
- "$ref": "operations/repos/list-deployments.json"
- },
- "post": {
- "$ref": "operations/repos/create-deployment.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}": {
- "get": {
- "$ref": "operations/repos/get-deployment.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses": {
- "get": {
- "$ref": "operations/repos/list-deployment-statuses.json"
- },
- "post": {
- "$ref": "operations/repos/create-deployment-status.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": {
- "get": {
- "$ref": "operations/repos/get-deployment-status.json"
- }
- },
- "/repos/{owner}/{repo}/downloads": {
- "get": {
- "$ref": "operations/repos/list-downloads.json"
- }
- },
- "/repos/{owner}/{repo}/downloads/{download_id}": {
- "get": {
- "$ref": "operations/repos/get-download.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-download.json"
- }
- },
- "/repos/{owner}/{repo}/events": {
- "get": {
- "$ref": "operations/activity/list-repo-events.json"
- }
- },
- "/repos/{owner}/{repo}/forks": {
- "get": {
- "$ref": "operations/repos/list-forks.json"
- },
- "post": {
- "$ref": "operations/repos/create-fork.json"
- }
- },
- "/repos/{owner}/{repo}/git/blobs": {
- "post": {
- "$ref": "operations/git/create-blob.json"
- }
- },
- "/repos/{owner}/{repo}/git/blobs/{file_sha}": {
- "get": {
- "$ref": "operations/git/get-blob.json"
- }
- },
- "/repos/{owner}/{repo}/git/commits": {
- "post": {
- "$ref": "operations/git/create-commit.json"
- }
- },
- "/repos/{owner}/{repo}/git/commits/{commit_sha}": {
- "get": {
- "$ref": "operations/git/get-commit.json"
- }
- },
- "/repos/{owner}/{repo}/git/refs": {
- "post": {
- "$ref": "operations/git/create-ref.json"
- }
- },
- "/repos/{owner}/{repo}/git/refs/{ref}": {
- "get": {
- "$ref": "operations/git/get-ref.json"
- },
- "patch": {
- "$ref": "operations/git/update-ref.json"
- },
- "delete": {
- "$ref": "operations/git/delete-ref.json"
- }
- },
- "/repos/{owner}/{repo}/git/tags": {
- "post": {
- "$ref": "operations/git/create-tag.json"
- }
- },
- "/repos/{owner}/{repo}/git/tags/{tag_sha}": {
- "get": {
- "$ref": "operations/git/get-tag.json"
- }
- },
- "/repos/{owner}/{repo}/git/trees": {
- "post": {
- "$ref": "operations/git/create-tree.json"
- }
- },
- "/repos/{owner}/{repo}/git/trees/{tree_sha}": {
- "get": {
- "$ref": "operations/git/get-tree.json"
- }
- },
- "/repos/{owner}/{repo}/hooks": {
- "get": {
- "$ref": "operations/repos/list-hooks.json"
- },
- "post": {
- "$ref": "operations/repos/create-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/repos/get-hook.json"
- },
- "patch": {
- "$ref": "operations/repos/update-hook.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/repos/ping-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}/tests": {
- "post": {
- "$ref": "operations/repos/test-push-hook.json"
- }
- },
- "/repos/{owner}/{repo}/installation": {
- "get": {
- "$ref": "operations/apps/get-repo-installation.json"
- }
- },
- "/repos/{owner}/{repo}/invitations": {
- "get": {
- "$ref": "operations/repos/list-invitations.json"
- }
- },
- "/repos/{owner}/{repo}/invitations/{invitation_id}": {
- "delete": {
- "$ref": "operations/repos/delete-invitation.json"
- },
- "patch": {
- "$ref": "operations/repos/update-invitation.json"
- }
- },
- "/repos/{owner}/{repo}/issues": {
- "get": {
- "$ref": "operations/issues/list-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments": {
- "get": {
- "$ref": "operations/issues/list-comments-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{comment_id}": {
- "get": {
- "$ref": "operations/issues/get-comment.json"
- },
- "patch": {
- "$ref": "operations/issues/update-comment.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-issue-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-issue-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/events": {
- "get": {
- "$ref": "operations/issues/list-events-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/issues/events/{event_id}": {
- "get": {
- "$ref": "operations/issues/get-event.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}": {
- "get": {
- "$ref": "operations/issues/get.json"
- },
- "patch": {
- "$ref": "operations/issues/update.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/assignees": {
- "post": {
- "$ref": "operations/issues/add-assignees.json"
- },
- "delete": {
- "$ref": "operations/issues/remove-assignees.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/comments": {
- "get": {
- "$ref": "operations/issues/list-comments.json"
- },
- "post": {
- "$ref": "operations/issues/create-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/events": {
- "get": {
- "$ref": "operations/issues/list-events.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-on-issue.json"
- },
- "post": {
- "$ref": "operations/issues/add-labels.json"
- },
- "put": {
- "$ref": "operations/issues/replace-labels.json"
- },
- "delete": {
- "$ref": "operations/issues/remove-labels.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": {
- "delete": {
- "$ref": "operations/issues/remove-label.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/lock": {
- "put": {
- "$ref": "operations/issues/lock.json"
- },
- "delete": {
- "$ref": "operations/issues/unlock.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-issue.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-issue.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/timeline": {
- "get": {
- "$ref": "operations/issues/list-events-for-timeline.json"
- }
- },
- "/repos/{owner}/{repo}/keys": {
- "get": {
- "$ref": "operations/repos/list-deploy-keys.json"
- },
- "post": {
- "$ref": "operations/repos/add-deploy-key.json"
- }
- },
- "/repos/{owner}/{repo}/keys/{key_id}": {
- "get": {
- "$ref": "operations/repos/get-deploy-key.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-deploy-key.json"
- }
- },
- "/repos/{owner}/{repo}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create-label.json"
- }
- },
- "/repos/{owner}/{repo}/labels/{name}": {
- "get": {
- "$ref": "operations/issues/get-label.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-label.json"
- }
- },
- "/repos/{owner}/{repo}/languages": {
- "get": {
- "$ref": "operations/repos/list-languages.json"
- }
- },
- "/repos/{owner}/{repo}/license": {
- "get": {
- "$ref": "operations/licenses/get-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/merges": {
- "post": {
- "$ref": "operations/repos/merge.json"
- }
- },
- "/repos/{owner}/{repo}/milestones": {
- "get": {
- "$ref": "operations/issues/list-milestones-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/milestones/{milestone_number}": {
- "get": {
- "$ref": "operations/issues/get-milestone.json"
- },
- "patch": {
- "$ref": "operations/issues/update-milestone.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/milestones/{milestone_number}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-for-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/notifications": {
- "get": {
- "$ref": "operations/activity/list-notifications-for-repo.json"
- },
- "put": {
- "$ref": "operations/activity/mark-notifications-as-read-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pages": {
- "get": {
- "$ref": "operations/repos/get-pages.json"
- },
- "put": {
- "$ref": "operations/repos/update-information-about-pages-site.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds": {
- "post": {
- "$ref": "operations/repos/request-page-build.json"
- },
- "get": {
- "$ref": "operations/repos/list-pages-builds.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds/latest": {
- "get": {
- "$ref": "operations/repos/get-latest-pages-build.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds/{build_id}": {
- "get": {
- "$ref": "operations/repos/get-pages-build.json"
- }
- },
- "/repos/{owner}/{repo}/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook-for-repo.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/projects": {
- "get": {
- "$ref": "operations/projects/list-for-repo.json"
- },
- "post": {
- "$ref": "operations/projects/create-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pulls": {
- "get": {
- "$ref": "operations/pulls/list.json"
- },
- "post": {
- "$ref": "operations/pulls/create-from-issue.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments": {
- "get": {
- "$ref": "operations/pulls/list-comments-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments/{comment_id}": {
- "get": {
- "$ref": "operations/pulls/get-comment.json"
- },
- "patch": {
- "$ref": "operations/pulls/update-comment.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-comment.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-pull-request-review-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-pull-request-review-comment.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}": {
- "get": {
- "$ref": "operations/pulls/get.json"
- },
- "patch": {
- "$ref": "operations/pulls/update.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/comments": {
- "get": {
- "$ref": "operations/pulls/list-comments.json"
- },
- "post": {
- "$ref": "operations/pulls/create-comment-reply.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/commits": {
- "get": {
- "$ref": "operations/pulls/list-commits.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/files": {
- "get": {
- "$ref": "operations/pulls/list-files.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/merge": {
- "get": {
- "$ref": "operations/pulls/check-if-merged.json"
- },
- "put": {
- "$ref": "operations/pulls/merge.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
- "get": {
- "$ref": "operations/pulls/list-review-requests.json"
- },
- "post": {
- "$ref": "operations/pulls/create-review-request.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-review-request.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews": {
- "get": {
- "$ref": "operations/pulls/list-reviews.json"
- },
- "post": {
- "$ref": "operations/pulls/create-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": {
- "get": {
- "$ref": "operations/pulls/get-review.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-pending-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": {
- "get": {
- "$ref": "operations/pulls/get-comments-for-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": {
- "put": {
- "$ref": "operations/pulls/dismiss-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
- "post": {
- "$ref": "operations/pulls/submit-review.json"
- }
- },
- "/repos/{owner}/{repo}/readme": {
- "get": {
- "$ref": "operations/repos/get-readme.json"
- }
- },
- "/repos/{owner}/{repo}/releases": {
- "get": {
- "$ref": "operations/repos/list-releases.json"
- },
- "post": {
- "$ref": "operations/repos/create-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/assets/{asset_id}": {
- "get": {
- "$ref": "operations/repos/get-release-asset.json"
- },
- "patch": {
- "$ref": "operations/repos/update-release-asset.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-release-asset.json"
- }
- },
- "/repos/{owner}/{repo}/releases/latest": {
- "get": {
- "$ref": "operations/repos/get-latest-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/tags/{tag}": {
- "get": {
- "$ref": "operations/repos/get-release-by-tag.json"
- }
- },
- "/repos/{owner}/{repo}/releases/{release_id}": {
- "get": {
- "$ref": "operations/repos/get-release.json"
- },
- "patch": {
- "$ref": "operations/repos/update-release.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/{release_id}/assets": {
- "get": {
- "$ref": "operations/repos/list-assets-for-release.json"
- }
- },
- "/repos/{owner}/{repo}/stargazers": {
- "get": {
- "$ref": "operations/activity/list-stargazers-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/stats/code_frequency": {
- "get": {
- "$ref": "operations/repos/get-code-frequency-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/commit_activity": {
- "get": {
- "$ref": "operations/repos/get-commit-activity-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/contributors": {
- "get": {
- "$ref": "operations/repos/get-contributors-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/participation": {
- "get": {
- "$ref": "operations/repos/get-participation-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/punch_card": {
- "get": {
- "$ref": "operations/repos/get-punch-card-stats.json"
- }
- },
- "/repos/{owner}/{repo}/statuses/{sha}": {
- "post": {
- "$ref": "operations/repos/create-status.json"
- }
- },
- "/repos/{owner}/{repo}/subscribers": {
- "get": {
- "$ref": "operations/activity/list-watchers-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/subscription": {
- "get": {
- "$ref": "operations/activity/get-repo-subscription.json"
- },
- "put": {
- "$ref": "operations/activity/set-repo-subscription.json"
- },
- "delete": {
- "$ref": "operations/activity/delete-repo-subscription.json"
- }
- },
- "/repos/{owner}/{repo}/tags": {
- "get": {
- "$ref": "operations/repos/list-tags.json"
- }
- },
- "/repos/{owner}/{repo}/teams": {
- "get": {
- "$ref": "operations/repos/list-teams.json"
- }
- },
- "/repos/{owner}/{repo}/topics": {
- "get": {
- "$ref": "operations/repos/list-topics.json"
- },
- "put": {
- "$ref": "operations/repos/replace-topics.json"
- }
- },
- "/repos/{owner}/{repo}/transfer": {
- "post": {
- "$ref": "operations/repos/transfer.json"
- }
- },
- "/repos/{owner}/{repo}/{archive_format}/{ref}": {
- "get": {
- "$ref": "operations/repos/get-archive-link.json"
- }
- },
- "/repositories": {
- "get": {
- "$ref": "operations/repos/list-public.json"
- }
- },
- "/search/code": {
- "get": {
- "$ref": "operations/search/code.json"
- }
- },
- "/search/commits": {
- "get": {
- "$ref": "operations/search/commits.json"
- }
- },
- "/search/issues": {
- "get": {
- "$ref": "operations/search/issues-and-pull-requests.json"
- }
- },
- "/search/labels": {
- "get": {
- "$ref": "operations/search/labels.json"
- }
- },
- "/search/repositories": {
- "get": {
- "$ref": "operations/search/repos.json"
- }
- },
- "/search/topics": {
- "get": {
- "$ref": "operations/search/topics.json"
- }
- },
- "/search/users": {
- "get": {
- "$ref": "operations/search/users.json"
- }
- },
- "/setup/api/configcheck": {
- "get": {
- "$ref": "operations/enterprise-admin/check-configuration-status.json"
- }
- },
- "/setup/api/configure": {
- "post": {
- "$ref": "operations/enterprise-admin/start-configuration-process.json"
- }
- },
- "/setup/api/maintenance": {
- "get": {
- "$ref": "operations/enterprise-admin/check-maintenance-status.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/enable-or-disable-maintenance-mode.json"
- }
- },
- "/setup/api/settings": {
- "get": {
- "$ref": "operations/enterprise-admin/retrieve-settings.json"
- },
- "put": {
- "$ref": "operations/enterprise-admin/modify-settings.json"
- }
- },
- "/setup/api/settings/authorized-keys": {
- "get": {
- "$ref": "operations/enterprise-admin/retrieve-authorized-ssh-keys.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/add-authorized-ssh-key.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-authorized-ssh-key.json"
- }
- },
- "/setup/api/start": {
- "post": {
- "$ref": "operations/enterprise-admin/upload-license-for-first-time.json"
- }
- },
- "/setup/api/upgrade": {
- "post": {
- "$ref": "operations/enterprise-admin/upgrade-license.json"
- }
- },
- "/staff/indexing_jobs": {
- "post": {
- "$ref": "operations/enterprise-admin/queue-indexing-job.json"
- }
- },
- "/teams/{team_id}": {
- "get": {
- "$ref": "operations/teams/get.json"
- },
- "patch": {
- "$ref": "operations/teams/update.json"
- },
- "delete": {
- "$ref": "operations/teams/delete.json"
- }
- },
- "/teams/{team_id}/discussions": {
- "get": {
- "$ref": "operations/teams/list-discussions.json"
- },
- "post": {
- "$ref": "operations/teams/create-discussion.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}": {
- "get": {
- "$ref": "operations/teams/get-discussion.json"
- },
- "patch": {
- "$ref": "operations/teams/update-discussion.json"
- },
- "delete": {
- "$ref": "operations/teams/delete-discussion.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments": {
- "get": {
- "$ref": "operations/teams/list-discussion-comments.json"
- },
- "post": {
- "$ref": "operations/teams/create-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": {
- "get": {
- "$ref": "operations/teams/get-discussion-comment.json"
- },
- "patch": {
- "$ref": "operations/teams/update-discussion-comment.json"
- },
- "delete": {
- "$ref": "operations/teams/delete-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-team-discussion-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-team-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-team-discussion.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-team-discussion.json"
- }
- },
- "/teams/{team_id}/members": {
- "get": {
- "$ref": "operations/teams/list-members.json"
- }
- },
- "/teams/{team_id}/members/{username}": {
- "get": {
- "$ref": "operations/teams/get-member.json"
- },
- "put": {
- "$ref": "operations/teams/add-member.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-member.json"
- }
- },
- "/teams/{team_id}/memberships/{username}": {
- "get": {
- "$ref": "operations/teams/get-membership.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-membership.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-membership.json"
- }
- },
- "/teams/{team_id}/projects": {
- "get": {
- "$ref": "operations/teams/list-projects.json"
- }
- },
- "/teams/{team_id}/projects/{project_id}": {
- "get": {
- "$ref": "operations/teams/review-project.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-project.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-project.json"
- }
- },
- "/teams/{team_id}/repos": {
- "get": {
- "$ref": "operations/teams/list-repos.json"
- }
- },
- "/teams/{team_id}/repos/{owner}/{repo}": {
- "get": {
- "$ref": "operations/teams/check-manages-repo.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-repo.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-repo.json"
- }
- },
- "/teams/{team_id}/teams": {
- "get": {
- "$ref": "operations/teams/list-child.json"
- }
- },
- "/user": {
- "get": {
- "$ref": "operations/users/get-authenticated.json"
- },
- "patch": {
- "$ref": "operations/users/update-authenticated.json"
- }
- },
- "/user/emails": {
- "get": {
- "$ref": "operations/users/list-emails.json"
- },
- "post": {
- "$ref": "operations/users/add-emails.json"
- },
- "delete": {
- "$ref": "operations/users/delete-emails.json"
- }
- },
- "/user/followers": {
- "get": {
- "$ref": "operations/users/list-followers-for-authenticated-user.json"
- }
- },
- "/user/following": {
- "get": {
- "$ref": "operations/users/list-following-for-authenticated-user.json"
- }
- },
- "/user/following/{username}": {
- "get": {
- "$ref": "operations/users/check-following.json"
- },
- "put": {
- "$ref": "operations/users/follow.json"
- },
- "delete": {
- "$ref": "operations/users/unfollow.json"
- }
- },
- "/user/gpg_keys": {
- "get": {
- "$ref": "operations/users/list-gpg-keys.json"
- },
- "post": {
- "$ref": "operations/users/create-gpg-key.json"
- }
- },
- "/user/gpg_keys/{gpg_key_id}": {
- "get": {
- "$ref": "operations/users/get-gpg-key.json"
- },
- "delete": {
- "$ref": "operations/users/delete-gpg-key.json"
- }
- },
- "/user/installations": {
- "get": {
- "$ref": "operations/apps/list-installations-for-authenticated-user.json"
- }
- },
- "/user/installations/{installation_id}/repositories": {
- "get": {
- "$ref": "operations/apps/list-installation-repos-for-authenticated-user.json"
- }
- },
- "/user/installations/{installation_id}/repositories/{repository_id}": {
- "put": {
- "$ref": "operations/apps/add-repo-to-installation.json"
- },
- "delete": {
- "$ref": "operations/apps/remove-repo-from-installation.json"
- }
- },
- "/user/issues": {
- "get": {
- "$ref": "operations/issues/list-for-authenticated-user.json"
- }
- },
- "/user/keys": {
- "get": {
- "$ref": "operations/users/list-public-keys.json"
- },
- "post": {
- "$ref": "operations/users/create-public-key.json"
- }
- },
- "/user/keys/{key_id}": {
- "get": {
- "$ref": "operations/users/get-public-key.json"
- },
- "delete": {
- "$ref": "operations/users/delete-public-key.json"
- }
- },
- "/user/memberships/orgs": {
- "get": {
- "$ref": "operations/orgs/list-memberships.json"
- }
- },
- "/user/memberships/orgs/{org}": {
- "get": {
- "$ref": "operations/orgs/get-membership-for-authenticated-user.json"
- },
- "patch": {
- "$ref": "operations/orgs/update-membership.json"
- }
- },
- "/user/orgs": {
- "get": {
- "$ref": "operations/orgs/list-for-authenticated-user.json"
- }
- },
- "/user/public_emails": {
- "get": {
- "$ref": "operations/users/list-public-emails.json"
- }
- },
- "/user/repos": {
- "get": {
- "$ref": "operations/repos/list.json"
- },
- "post": {
- "$ref": "operations/repos/create-for-authenticated-user.json"
- }
- },
- "/user/repository_invitations": {
- "get": {
- "$ref": "operations/repos/list-invitations-for-authenticated-user.json"
- }
- },
- "/user/repository_invitations/{invitation_id}": {
- "patch": {
- "$ref": "operations/repos/accept-invitation.json"
- },
- "delete": {
- "$ref": "operations/repos/decline-invitation.json"
- }
- },
- "/user/starred": {
- "get": {
- "$ref": "operations/activity/list-repos-starred-by-authenticated-user.json"
- }
- },
- "/user/starred/{owner}/{repo}": {
- "get": {
- "$ref": "operations/activity/check-starring-repo.json"
- },
- "put": {
- "$ref": "operations/activity/star-repo.json"
- },
- "delete": {
- "$ref": "operations/activity/unstar-repo.json"
- }
- },
- "/user/subscriptions": {
- "get": {
- "$ref": "operations/activity/list-watched-repos-for-authenticated-user.json"
- }
- },
- "/user/subscriptions/{owner}/{repo}": {
- "get": {
- "$ref": "operations/activity/check-watching-repo-legacy.json"
- },
- "put": {
- "$ref": "operations/activity/watch-repo-legacy.json"
- },
- "delete": {
- "$ref": "operations/activity/stop-watching-repo-legacy.json"
- }
- },
- "/user/teams": {
- "get": {
- "$ref": "operations/teams/list-for-authenticated-user.json"
- }
- },
- "/users": {
- "get": {
- "$ref": "operations/users/list.json"
- }
- },
- "/users/{username}": {
- "get": {
- "$ref": "operations/users/get-by-username.json"
- }
- },
- "/users/{username}/events": {
- "get": {
- "$ref": "operations/activity/list-events-for-user.json"
- }
- },
- "/users/{username}/events/orgs/{org}": {
- "get": {
- "$ref": "operations/activity/list-events-for-org.json"
- }
- },
- "/users/{username}/events/public": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-user.json"
- }
- },
- "/users/{username}/followers": {
- "get": {
- "$ref": "operations/users/list-followers-for-user.json"
- }
- },
- "/users/{username}/following": {
- "get": {
- "$ref": "operations/users/list-following-for-user.json"
- }
- },
- "/users/{username}/following/{target_user}": {
- "get": {
- "$ref": "operations/users/check-following-for-user.json"
- }
- },
- "/users/{username}/gists": {
- "get": {
- "$ref": "operations/gists/list-public-for-user.json"
- }
- },
- "/users/{username}/gpg_keys": {
- "get": {
- "$ref": "operations/users/list-gpg-keys-for-user.json"
- }
- },
- "/users/{username}/hovercard": {
- "get": {
- "$ref": "operations/users/get-context-for-user.json"
- }
- },
- "/users/{username}/installation": {
- "get": {
- "$ref": "operations/apps/get-user-installation.json"
- }
- },
- "/users/{username}/keys": {
- "get": {
- "$ref": "operations/users/list-public-keys-for-user.json"
- }
- },
- "/users/{username}/orgs": {
- "get": {
- "$ref": "operations/orgs/list-for-user.json"
- }
- },
- "/users/{username}/received_events": {
- "get": {
- "$ref": "operations/activity/list-received-events-for-user.json"
- }
- },
- "/users/{username}/received_events/public": {
- "get": {
- "$ref": "operations/activity/list-received-public-events-for-user.json"
- }
- },
- "/users/{username}/repos": {
- "get": {
- "$ref": "operations/repos/list-for-user.json"
- }
- },
- "/users/{username}/site_admin": {
- "put": {
- "$ref": "operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json"
- }
- },
- "/users/{username}/starred": {
- "get": {
- "$ref": "operations/activity/list-repos-starred-by-user.json"
- }
- },
- "/users/{username}/subscriptions": {
- "get": {
- "$ref": "operations/activity/list-repos-watched-by-user.json"
- }
- },
- "/users/{username}/suspended": {
- "put": {
- "$ref": "operations/enterprise-admin/suspend-user.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/unsuspend-user.json"
- }
- }
- }
-}
diff --git a/openapi/ghe-2.15/operations/activity/check-starring-repo.json b/openapi/ghe-2.15/operations/activity/check-starring-repo.json
deleted file mode 100644
index ead2d5c94e..0000000000
--- a/openapi/ghe-2.15/operations/activity/check-starring-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if you are starring a repository",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-check-starring-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/starring/#check-if-you-are-starring-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/check-watching-repo-legacy.json b/openapi/ghe-2.15/operations/activity/check-watching-repo-legacy.json
deleted file mode 100644
index 259a4cf9dc..0000000000
--- a/openapi/ghe-2.15/operations/activity/check-watching-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if you are watching a repository (LEGACY)",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-check-watching-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/delete-repo-subscription.json b/openapi/ghe-2.15/operations/activity/delete-repo-subscription.json
deleted file mode 100644
index b1d5fe8186..0000000000
--- a/openapi/ghe-2.15/operations/activity/delete-repo-subscription.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a Repository Subscription",
- "description": "This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://developer.github.com/enterprise/2.15/v3/activity/watching/#set-a-repository-subscription).",
- "operationId": "activity-delete-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/watching/#delete-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/delete-thread-subscription.json b/openapi/ghe-2.15/operations/activity/delete-thread-subscription.json
deleted file mode 100644
index 4d40955e73..0000000000
--- a/openapi/ghe-2.15/operations/activity/delete-thread-subscription.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a thread subscription",
- "description": "Mutes all future notifications for a conversation until you comment on the thread or get **@mention**ed.",
- "operationId": "activity-delete-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/notifications/#delete-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/get-repo-subscription.json b/openapi/ghe-2.15/operations/activity/get-repo-subscription.json
deleted file mode 100644
index 89ae55405b..0000000000
--- a/openapi/ghe-2.15/operations/activity/get-repo-subscription.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get a Repository Subscription",
- "description": "",
- "operationId": "activity-get-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/watching/#get-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/get-thread-subscription.json b/openapi/ghe-2.15/operations/activity/get-thread-subscription.json
deleted file mode 100644
index 6e4c226e2e..0000000000
--- a/openapi/ghe-2.15/operations/activity/get-thread-subscription.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "Get a thread subscription",
- "description": "This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://developer.github.com/enterprise/2.15/v3/activity/watching/#get-a-repository-subscription).\n\nNote that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread.",
- "operationId": "activity-get-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/notifications/#get-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "thread_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/get-thread.json b/openapi/ghe-2.15/operations/activity/get-thread.json
deleted file mode 100644
index b57c375224..0000000000
--- a/openapi/ghe-2.15/operations/activity/get-thread.json
+++ /dev/null
@@ -1,298 +0,0 @@
-{
- "summary": "View a single thread",
- "description": "",
- "operationId": "activity-get-thread",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/notifications/#view-a-single-thread"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "string"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "subject": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "latest_comment_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "reason": {
- "type": "string"
- },
- "unread": {
- "type": "boolean"
- },
- "updated_at": {
- "type": "string"
- },
- "last_read_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads/"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-events-for-org.json b/openapi/ghe-2.15/operations/activity/list-events-for-org.json
deleted file mode 100644
index 658c552cbf..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-events-for-org.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List events for an organization",
- "description": "This is the user's organization dashboard. You must be authenticated as the user to view this.",
- "operationId": "activity-list-events-for-org",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/events/#list-events-for-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events/orgs/:org"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username',\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-events-for-user.json b/openapi/ghe-2.15/operations/activity/list-events-for-user.json
deleted file mode 100644
index 3e8c31168b..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List events performed by a user",
- "description": "If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.",
- "operationId": "activity-list-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/events/#list-events-performed-by-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-feeds.json b/openapi/ghe-2.15/operations/activity/list-feeds.json
deleted file mode 100644
index d96c1f1fcf..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-feeds.json
+++ /dev/null
@@ -1,161 +0,0 @@
-{
- "summary": "List feeds",
- "description": "GitHub Enterprise provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:\n\n* **Timeline**: The GitHub Enterprise global public timeline\n* **User**: The public timeline for any user, using [URI template](https://developer.github.com/enterprise/2.15/v3/#hypermedia)\n* **Current user public**: The public timeline for the authenticated user\n* **Current user**: The private timeline for the authenticated user\n* **Current user actor**: The private timeline for activity created by the authenticated user\n* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.\n\n**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://developer.github.com/enterprise/2.15/v3/#basic-authentication) since current feed URIs use the older, non revocable auth tokens.",
- "operationId": "activity-list-feeds",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/feeds/#list-feeds"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "timeline_url": {
- "type": "string"
- },
- "user_url": {
- "type": "string"
- },
- "current_user_public_url": {
- "type": "string"
- },
- "current_user_url": {
- "type": "string"
- },
- "current_user_actor_url": {
- "type": "string"
- },
- "current_user_organization_url": {
- "type": "string"
- },
- "current_user_organization_urls": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "timeline": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_public": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_actor": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_organization": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_organizations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/feeds"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-notifications-for-repo.json b/openapi/ghe-2.15/operations/activity/list-notifications-for-repo.json
deleted file mode 100644
index 218a067b06..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-notifications-for-repo.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "summary": "List your notifications in a repository",
- "description": "List all notifications for the current user.",
- "operationId": "activity-list-notifications-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/notifications/#list-your-notifications-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "all",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, show notifications marked as read."
- },
- {
- "name": "participating",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, only shows notifications in which the user is directly participating or mentioned."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "before",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-notifications.json b/openapi/ghe-2.15/operations/activity/list-notifications.json
deleted file mode 100644
index 89e34b1d08..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-notifications.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List your notifications",
- "description": "List all notifications for the current user, sorted by most recently updated.\n\nThe following example uses the `since` parameter to list notifications that have been updated after the specified time.",
- "operationId": "activity-list-notifications",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/notifications/#list-your-notifications"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "all",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, show notifications marked as read."
- },
- {
- "name": "participating",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, only shows notifications in which the user is directly participating or mentioned."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "before",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-public-events-for-org.json b/openapi/ghe-2.15/operations/activity/list-public-events-for-org.json
deleted file mode 100644
index 0cc25d9327..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-public-events-for-org.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events for an organization",
- "description": "",
- "operationId": "activity-list-public-events-for-org",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/events/#list-public-events-for-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-public-events-for-repo-network.json b/openapi/ghe-2.15/operations/activity/list-public-events-for-repo-network.json
deleted file mode 100644
index ad014af6b8..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-public-events-for-repo-network.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List public events for a network of repositories",
- "description": "",
- "operationId": "activity-list-public-events-for-repo-network",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/events/#list-public-events-for-a-network-of-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/networks/octocat/:repo/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-public-events-for-user.json b/openapi/ghe-2.15/operations/activity/list-public-events-for-user.json
deleted file mode 100644
index 44d68f6dd9..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-public-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events performed by a user",
- "description": "",
- "operationId": "activity-list-public-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/events/#list-public-events-performed-by-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events/public"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-public-events.json b/openapi/ghe-2.15/operations/activity/list-public-events.json
deleted file mode 100644
index 7d2d03b90d..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-public-events.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List public events",
- "description": "We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.",
- "operationId": "activity-list-public-events",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/events/#list-public-events"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-received-events-for-user.json b/openapi/ghe-2.15/operations/activity/list-received-events-for-user.json
deleted file mode 100644
index 7daaa57934..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-received-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List events that a user has received",
- "description": "These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events.",
- "operationId": "activity-list-received-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/events/#list-events-that-a-user-has-received"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//received_events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-received-public-events-for-user.json b/openapi/ghe-2.15/operations/activity/list-received-public-events-for-user.json
deleted file mode 100644
index 181809b4a6..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-received-public-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events that a user has received",
- "description": "",
- "operationId": "activity-list-received-public-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/events/#list-public-events-that-a-user-has-received"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//received_events/public"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-repo-events.json b/openapi/ghe-2.15/operations/activity/list-repo-events.json
deleted file mode 100644
index a7cf18aee2..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-repo-events.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List repository events",
- "description": "",
- "operationId": "activity-list-repo-events",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/events/#list-repository-events"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-repos-starred-by-authenticated-user.json b/openapi/ghe-2.15/operations/activity/list-repos-starred-by-authenticated-user.json
deleted file mode 100644
index 5adeac1b53..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-repos-starred-by-authenticated-user.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "List repositories being starred by the authenticated user",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.15/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-repos-starred-by-authenticated-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/starring/#list-repositories-being-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "One of `asc` (ascending) or `desc` (descending)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-repos-starred-by-user.json b/openapi/ghe-2.15/operations/activity/list-repos-starred-by-user.json
deleted file mode 100644
index 07441144eb..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-repos-starred-by-user.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List repositories being starred by a user",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.15/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-repos-starred-by-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/starring/#list-repositories-being-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "One of `asc` (ascending) or `desc` (descending)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//starred"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-repos-watched-by-user.json b/openapi/ghe-2.15/operations/activity/list-repos-watched-by-user.json
deleted file mode 100644
index c50a04138c..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-repos-watched-by-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List repositories being watched by a user",
- "description": "",
- "operationId": "activity-list-repos-watched-by-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/watching/#list-repositories-being-watched"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//subscriptions"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-stargazers-for-repo.json b/openapi/ghe-2.15/operations/activity/list-stargazers-for-repo.json
deleted file mode 100644
index 64d12aa483..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-stargazers-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List Stargazers",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.15/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-stargazers-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/starring/#list-stargazers"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stargazers"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-watched-repos-for-authenticated-user.json b/openapi/ghe-2.15/operations/activity/list-watched-repos-for-authenticated-user.json
deleted file mode 100644
index a09ec85d7e..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-watched-repos-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List repositories being watched by the authenticated user",
- "description": "",
- "operationId": "activity-list-watched-repos-for-authenticated-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/watching/#list-repositories-being-watched"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/list-watchers-for-repo.json b/openapi/ghe-2.15/operations/activity/list-watchers-for-repo.json
deleted file mode 100644
index eedae79f2d..0000000000
--- a/openapi/ghe-2.15/operations/activity/list-watchers-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List watchers",
- "description": "",
- "operationId": "activity-list-watchers-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/watching/#list-watchers"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscribers"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/mark-as-read.json b/openapi/ghe-2.15/operations/activity/mark-as-read.json
deleted file mode 100644
index f500f2e2d0..0000000000
--- a/openapi/ghe-2.15/operations/activity/mark-as-read.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Mark as read",
- "description": "Marking a notification as \"read\" removes it from the [default view on GitHub Enterprise](https://github.com/notifications).",
- "operationId": "activity-mark-as-read",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/notifications/#mark-as-read"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "last_read_at": {
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/mark-notifications-as-read-for-repo.json b/openapi/ghe-2.15/operations/activity/mark-notifications-as-read-for-repo.json
deleted file mode 100644
index 40d9a25eda..0000000000
--- a/openapi/ghe-2.15/operations/activity/mark-notifications-as-read-for-repo.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Mark notifications as read in a repository",
- "description": "Marking all notifications in a repository as \"read\" removes them from the [default view on GitHub Enterprise](https://github.com/notifications).",
- "operationId": "activity-mark-notifications-as-read-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/notifications/#mark-notifications-as-read-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "last_read_at": {
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/mark-thread-as-read.json b/openapi/ghe-2.15/operations/activity/mark-thread-as-read.json
deleted file mode 100644
index 59326e3d50..0000000000
--- a/openapi/ghe-2.15/operations/activity/mark-thread-as-read.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "summary": "Mark a thread as read",
- "description": "",
- "operationId": "activity-mark-thread-as-read",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/notifications/#mark-a-thread-as-read"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads/"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/set-repo-subscription.json b/openapi/ghe-2.15/operations/activity/set-repo-subscription.json
deleted file mode 100644
index b12c70aa78..0000000000
--- a/openapi/ghe-2.15/operations/activity/set-repo-subscription.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Set a Repository Subscription",
- "description": "If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://developer.github.com/enterprise/2.15/v3/activity/watching/#delete-a-repository-subscription) completely.",
- "operationId": "activity-set-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/watching/#set-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "subscribed": {
- "description": "Determines if notifications should be received from this repository.",
- "type": "boolean"
- },
- "ignored": {
- "description": "Determines if all notifications should be blocked from this repository.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/set-thread-subscription.json b/openapi/ghe-2.15/operations/activity/set-thread-subscription.json
deleted file mode 100644
index 1244b450eb..0000000000
--- a/openapi/ghe-2.15/operations/activity/set-thread-subscription.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "summary": "Set a thread subscription",
- "description": "This lets you subscribe or unsubscribe from a conversation.",
- "operationId": "activity-set-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/notifications/#set-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ignored": {
- "description": "Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread.",
- "type": "boolean",
- "default": false
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "thread_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/star-repo.json b/openapi/ghe-2.15/operations/activity/star-repo.json
deleted file mode 100644
index 5216f10dbf..0000000000
--- a/openapi/ghe-2.15/operations/activity/star-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Star a repository",
- "description": "Requires for the user to be authenticated.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "activity-star-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/starring/#star-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/stop-watching-repo-legacy.json b/openapi/ghe-2.15/operations/activity/stop-watching-repo-legacy.json
deleted file mode 100644
index e4c3b8d688..0000000000
--- a/openapi/ghe-2.15/operations/activity/stop-watching-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Stop watching a repository (LEGACY)",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-stop-watching-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/watching/#stop-watching-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/unstar-repo.json b/openapi/ghe-2.15/operations/activity/unstar-repo.json
deleted file mode 100644
index c921173ea0..0000000000
--- a/openapi/ghe-2.15/operations/activity/unstar-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Unstar a repository",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-unstar-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/starring/#unstar-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/activity/watch-repo-legacy.json b/openapi/ghe-2.15/operations/activity/watch-repo-legacy.json
deleted file mode 100644
index 8bce3f693b..0000000000
--- a/openapi/ghe-2.15/operations/activity/watch-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Watch a repository (LEGACY)",
- "description": "Requires the user to be authenticated.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "activity-watch-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/activity/watching/#watch-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/add-repo-to-installation.json b/openapi/ghe-2.15/operations/apps/add-repo-to-installation.json
deleted file mode 100644
index 6a02f272d9..0000000000
--- a/openapi/ghe-2.15/operations/apps/add-repo-to-installation.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Add repository to installation",
- "description": "Add a single repository to an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/enterprise/2.15/v3/auth/#basic-authentication) to access this endpoint.",
- "operationId": "apps-add-repo-to-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/installations/#add-repository-to-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "repository_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "repository_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories/:repository_id"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id',\n repository_id: 'repository_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/create-installation-token.json b/openapi/ghe-2.15/operations/apps/create-installation-token.json
deleted file mode 100644
index fd77de2f12..0000000000
--- a/openapi/ghe-2.15/operations/apps/create-installation-token.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Create a new installation token",
- "description": "Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.15/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-create-installation-token",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/#create-a-new-installation-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "token": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations//access_tokens"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/get-authenticated.json b/openapi/ghe-2.15/operations/apps/get-authenticated.json
deleted file mode 100644
index 1bf1978b82..0000000000
--- a/openapi/ghe-2.15/operations/apps/get-authenticated.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Get the authenticated GitHub App",
- "description": "Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the \"[List installations](https://developer.github.com/enterprise/2.15/v3/apps/#list-installations)\" endpoint.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.15/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-authenticated",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/#get-the-authenticated-github-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "installations_count": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/get-by-slug.json b/openapi/ghe-2.15/operations/apps/get-by-slug.json
deleted file mode 100644
index 6e288b4212..0000000000
--- a/openapi/ghe-2.15/operations/apps/get-by-slug.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "summary": "Get a single GitHub App",
- "description": "**Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).\n\nIf the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://developer.github.com/enterprise/2.15/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.",
- "operationId": "apps-get-by-slug",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/#get-a-single-github-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "app_slug",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "app_slug parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/apps/"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n app_slug: 'app_slug'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/get-installation.json b/openapi/ghe-2.15/operations/apps/get-installation.json
deleted file mode 100644
index 750023bfa6..0000000000
--- a/openapi/ghe-2.15/operations/apps/get-installation.json
+++ /dev/null
@@ -1,153 +0,0 @@
-{
- "summary": "Get an installation",
- "description": "You must use a [JWT](https://developer.github.com/enterprise/2.15/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/#get-an-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "issues": {
- "type": "string"
- },
- "single_file": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "single_file_name": {
- "type": "string"
- },
- "repository_selection": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations/"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/get-org-installation.json b/openapi/ghe-2.15/operations/apps/get-org-installation.json
deleted file mode 100644
index 392acf0ae7..0000000000
--- a/openapi/ghe-2.15/operations/apps/get-org-installation.json
+++ /dev/null
@@ -1,185 +0,0 @@
-{
- "summary": "Get an organization installation",
- "description": "Enables an authenticated GitHub App to find the organization's installation information.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.15/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-org-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/#get-an-organization-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/orgs//installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find organization installation\" renamed to \"Get an organization installation\"",
- "meta": {
- "before": {
- "idName": "find-org-installation"
- },
- "after": {
- "idName": "get-org-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/apps/get-repo-installation.json b/openapi/ghe-2.15/operations/apps/get-repo-installation.json
deleted file mode 100644
index 229745fc8f..0000000000
--- a/openapi/ghe-2.15/operations/apps/get-repo-installation.json
+++ /dev/null
@@ -1,194 +0,0 @@
-{
- "summary": "Get a repository installation",
- "description": "Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.15/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-repo-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/#get-a-repository-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find repository installation\" renamed to \"Get a repository installation\"",
- "meta": {
- "before": {
- "idName": "find-repo-installation"
- },
- "after": {
- "idName": "get-repo-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/apps/get-user-installation.json b/openapi/ghe-2.15/operations/apps/get-user-installation.json
deleted file mode 100644
index 29d566e8af..0000000000
--- a/openapi/ghe-2.15/operations/apps/get-user-installation.json
+++ /dev/null
@@ -1,188 +0,0 @@
-{
- "summary": "Get a user installation",
- "description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.15/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-user-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/#get-a-user-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/users//installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find repository installation\" renamed to \"Get a repository installation\"",
- "meta": {
- "before": {
- "idName": "find-user-installation"
- },
- "after": {
- "idName": "get-user-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/apps/list-installation-repos-for-authenticated-user.json b/openapi/ghe-2.15/operations/apps/list-installation-repos-for-authenticated-user.json
deleted file mode 100644
index 1c3d3fc2f0..0000000000
--- a/openapi/ghe-2.15/operations/apps/list-installation-repos-for-authenticated-user.json
+++ /dev/null
@@ -1,391 +0,0 @@
-{
- "summary": "List repositories accessible to the user for an installation",
- "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou must use a [user-to-server OAuth access token](https://developer.github.com/enterprise/2.15/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe access the user has to each repository is included in the hash under the `permissions` key.",
- "operationId": "apps-list-installation-repos-for-authenticated-user",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "repositories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/list-installations-for-authenticated-user.json b/openapi/ghe-2.15/operations/apps/list-installations-for-authenticated-user.json
deleted file mode 100644
index 5f70dad6fd..0000000000
--- a/openapi/ghe-2.15/operations/apps/list-installations-for-authenticated-user.json
+++ /dev/null
@@ -1,218 +0,0 @@
-{
- "summary": "List installations for a user",
- "description": "Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nYou must use a [user-to-server OAuth access token](https://developer.github.com/enterprise/2.15/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou can find the permissions for the installation under the `permissions` key.",
- "operationId": "apps-list-installations-for-authenticated-user",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/installations/#list-installations-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "installations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "issues": {
- "type": "string"
- },
- "single_file": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "single_file_name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "account",
- "access_tokens_url",
- "repositories_url",
- "html_url",
- "app_id",
- "target_id",
- "target_type",
- "permissions",
- "events",
- "single_file_name"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/list-installations.json b/openapi/ghe-2.15/operations/apps/list-installations.json
deleted file mode 100644
index 017fbc5129..0000000000
--- a/openapi/ghe-2.15/operations/apps/list-installations.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "List installations",
- "description": "You must use a [JWT](https://developer.github.com/enterprise/2.15/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.\n\nThe permissions the installation has are included under the `permissions` key.",
- "operationId": "apps-list-installations",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/#list-installations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/list-repos.json b/openapi/ghe-2.15/operations/apps/list-repos.json
deleted file mode 100644
index 8037971894..0000000000
--- a/openapi/ghe-2.15/operations/apps/list-repos.json
+++ /dev/null
@@ -1,368 +0,0 @@
-{
- "summary": "List repositories",
- "description": "List repositories that an installation can access.\n\nYou must use an [installation access token](https://developer.github.com/enterprise/2.15/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.",
- "operationId": "apps-list-repos",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/installations/#list-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "repositories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/installation/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/apps/remove-repo-from-installation.json b/openapi/ghe-2.15/operations/apps/remove-repo-from-installation.json
deleted file mode 100644
index e9a15c045f..0000000000
--- a/openapi/ghe-2.15/operations/apps/remove-repo-from-installation.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Remove repository from installation",
- "description": "Remove a single repository from an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/enterprise/2.15/v3/auth/#basic-authentication) to access this endpoint.",
- "operationId": "apps-remove-repo-from-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/apps/installations/#remove-repository-from-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "repository_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "repository_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories/:repository_id"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id',\n repository_id: 'repository_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/create-suite.json b/openapi/ghe-2.15/operations/checks/create-suite.json
deleted file mode 100644
index 1d8ad2d96c..0000000000
--- a/openapi/ghe-2.15/operations/checks/create-suite.json
+++ /dev/null
@@ -1,493 +0,0 @@
-{
- "summary": "Create a check suite",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nBy default, check suites are automatically created when you create a [check run](https://developer.github.com/enterprise/2.15/v3/checks/runs/). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"[Set preferences for check suites on a repository](https://developer.github.com/enterprise/2.15/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository)\". Your GitHub App must have the `checks:write` permission to create check suites.",
- "operationId": "checks-create-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/suites/#create-a-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "head_sha": {
- "description": "The sha of the head commit.",
- "type": "string"
- }
- },
- "required": [
- "head_sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites \\\n -d '{\"head_sha\":\"head_sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n head_sha: 'head_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/create.json b/openapi/ghe-2.15/operations/checks/create.json
deleted file mode 100644
index 7bb7fb6067..0000000000
--- a/openapi/ghe-2.15/operations/checks/create.json
+++ /dev/null
@@ -1,457 +0,0 @@
-{
- "summary": "Create a check run",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
- "operationId": "checks-create",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/runs/#create-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the check. For example, \"code-coverage\".",
- "type": "string"
- },
- "head_sha": {
- "description": "The SHA of the commit.",
- "type": "string"
- },
- "details_url": {
- "description": "The URL of the integrator's site that has the full details of the check.",
- "type": "string"
- },
- "external_id": {
- "description": "A reference for the run on the integrator's system.",
- "type": "string"
- },
- "status": {
- "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ],
- "default": "queued"
- },
- "started_at": {
- "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "conclusion": {
- "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.",
- "type": "string",
- "enum": [
- "success",
- "failure",
- "neutral",
- "cancelled",
- "timed_out",
- "action_required"
- ]
- },
- "completed_at": {
- "description": "**Required if you provide `conclusion`**. The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "output": {
- "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#output-object) description.",
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the check run.",
- "type": "string"
- },
- "summary": {
- "description": "The summary of the check run. This parameter supports Markdown.",
- "type": "string"
- },
- "text": {
- "description": "The details of the check run. This parameter supports Markdown.",
- "type": "string"
- },
- "annotations": {
- "description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/enterprise/2.15/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#annotations-object) description for details about how to use this parameter.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "type": "string"
- },
- "start_line": {
- "description": "The start line of the annotation.",
- "type": "integer"
- },
- "end_line": {
- "description": "The end line of the annotation.",
- "type": "integer"
- },
- "start_column": {
- "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "end_column": {
- "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "annotation_level": {
- "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
- "type": "string",
- "enum": [
- "notice",
- "warning",
- "failure"
- ]
- },
- "message": {
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "type": "string"
- },
- "title": {
- "description": "The title that represents the annotation. The maximum size is 255 characters.",
- "type": "string"
- },
- "raw_details": {
- "description": "Details about this annotation. The maximum size is 64 KB.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- }
- },
- "images": {
- "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#images-object) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "description": "The alternative text for the image.",
- "type": "string"
- },
- "image_url": {
- "description": "The full URL of the image.",
- "type": "string"
- },
- "caption": {
- "description": "A short image description.",
- "type": "string"
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- }
- }
- },
- "required": [
- "title",
- "summary"
- ]
- },
- "actions": {
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.15/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "type": "string"
- },
- "description": {
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "type": "string"
- },
- "identifier": {
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "type": "string"
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- }
- }
- },
- "required": [
- "name",
- "head_sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs \\\n -d '{\"name\":\"name\",\"head_sha\":\"head_sha\",\"output.title\":\"output.title\",\"output.summary\":\"output.summary\",\"output.annotations[].path\":\"output.annotations[].path\",\"output.annotations[].start_line\":\"output.annotations[].start_line\",\"output.annotations[].end_line\":\"output.annotations[].end_line\",\"output.annotations[].annotation_level\":\"output.annotations[].annotation_level\",\"output.annotations[].message\":\"output.annotations[].message\",\"output.images[].alt\":\"output.images[].alt\",\"output.images[].image_url\":\"output.images[].image_url\",\"actions[].label\":\"actions[].label\",\"actions[].description\":\"actions[].description\",\"actions[].identifier\":\"actions[].identifier\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name',\n head_sha: 'head_sha',\n 'output.title': 'output.title',\n 'output.summary': 'output.summary',\n 'output.annotations[].path': 'output.annotations[].path',\n 'output.annotations[].start_line': 'output.annotations[].start_line',\n 'output.annotations[].end_line': 'output.annotations[].end_line',\n 'output.annotations[].annotation_level': 'output.annotations[].annotation_level',\n 'output.annotations[].message': 'output.annotations[].message',\n 'output.images[].alt': 'output.images[].alt',\n 'output.images[].image_url': 'output.images[].image_url',\n 'actions[].label': 'actions[].label',\n 'actions[].description': 'actions[].description',\n 'actions[].identifier': 'actions[].identifier'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/get-suite.json b/openapi/ghe-2.15/operations/checks/get-suite.json
deleted file mode 100644
index 55b93d39fb..0000000000
--- a/openapi/ghe-2.15/operations/checks/get-suite.json
+++ /dev/null
@@ -1,484 +0,0 @@
-{
- "summary": "Get a single check suite",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nGets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.",
- "operationId": "checks-get-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/suites/#get-a-single-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/get.json b/openapi/ghe-2.15/operations/checks/get.json
deleted file mode 100644
index 3015e24732..0000000000
--- a/openapi/ghe-2.15/operations/checks/get.json
+++ /dev/null
@@ -1,281 +0,0 @@
-{
- "summary": "Get a single check run",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nGets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-get",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/runs/#get-a-single-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/list-annotations.json b/openapi/ghe-2.15/operations/checks/list-annotations.json
deleted file mode 100644
index bf5fbd5ed1..0000000000
--- a/openapi/ghe-2.15/operations/checks/list-annotations.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "List annotations for a check run",
- "description": "Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository.",
- "operationId": "checks-list-annotations",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/runs/#list-annotations-for-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id/annotations"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/list-for-ref.json b/openapi/ghe-2.15/operations/checks/list-for-ref.json
deleted file mode 100644
index 11745db12f..0000000000
--- a/openapi/ghe-2.15/operations/checks/list-for-ref.json
+++ /dev/null
@@ -1,349 +0,0 @@
-{
- "summary": "List check runs for a specific ref",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nLists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-list-for-ref",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/runs/#list-check-runs-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Returns check runs with the specified `name`."
- },
- {
- "name": "status",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "required": false,
- "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`."
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "latest",
- "all"
- ],
- "default": "latest"
- },
- "required": false,
- "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_runs": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/check-runs"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/list-for-suite.json b/openapi/ghe-2.15/operations/checks/list-for-suite.json
deleted file mode 100644
index 6de47ce513..0000000000
--- a/openapi/ghe-2.15/operations/checks/list-for-suite.json
+++ /dev/null
@@ -1,349 +0,0 @@
-{
- "summary": "List check runs in a check suite",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nLists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-list-for-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/runs/#list-check-runs-in-a-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Returns check runs with the specified `name`."
- },
- {
- "name": "status",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "required": false,
- "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`."
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "latest",
- "all"
- ],
- "default": "latest"
- },
- "required": false,
- "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_runs": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id/check-runs"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/list-suites-for-ref.json b/openapi/ghe-2.15/operations/checks/list-suites-for-ref.json
deleted file mode 100644
index 25a5c851fa..0000000000
--- a/openapi/ghe-2.15/operations/checks/list-suites-for-ref.json
+++ /dev/null
@@ -1,533 +0,0 @@
-{
- "summary": "List check suites for a specific ref",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nLists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.",
- "operationId": "checks-list-suites-for-ref",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/suites/#list-check-suites-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "app_id",
- "in": "query",
- "schema": {
- "type": "integer"
- },
- "required": false,
- "description": "Filters check suites by GitHub App `id`."
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filters checks suites by the name of the [check run](https://developer.github.com/enterprise/2.15/v3/checks/runs/)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_suites": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/check-suites"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/rerequest-suite.json b/openapi/ghe-2.15/operations/checks/rerequest-suite.json
deleted file mode 100644
index 1bc313a79b..0000000000
--- a/openapi/ghe-2.15/operations/checks/rerequest-suite.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "summary": "Rerequest check suite",
- "description": "Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://developer.github.com/enterprise/2.15/v3/activity/events/types/#checksuiteevent) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.\n\nTo rerequest a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
- "operationId": "checks-rerequest-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/suites/#rerequest-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id/rerequest"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/set-suites-preferences.json b/openapi/ghe-2.15/operations/checks/set-suites-preferences.json
deleted file mode 100644
index 03d75b8b41..0000000000
--- a/openapi/ghe-2.15/operations/checks/set-suites-preferences.json
+++ /dev/null
@@ -1,430 +0,0 @@
-{
- "summary": "Set preferences for check suites on a repository",
- "description": "Changes the default automatic flow when creating check suites. By default, the CheckSuiteEvent is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://developer.github.com/enterprise/2.15/v3/checks/suites/#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites.",
- "operationId": "checks-set-suites-preferences",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "auto_trigger_checks": {
- "description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/enterprise/2.15/v3/checks/suites/#auto_trigger_checks-object) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "description": "The `id` of the GitHub App.",
- "type": "integer"
- },
- "setting": {
- "description": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "preferences": {
- "type": "object",
- "properties": {
- "auto_trigger_checks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "type": "number"
- },
- "setting": {
- "type": "boolean"
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- }
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/preferences \\\n -d '{\"auto_trigger_checks[].app_id\":\"auto_trigger_checks[].app_id\",\"auto_trigger_checks[].setting\":\"auto_trigger_checks[].setting\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n 'auto_trigger_checks[].app_id': 'auto_trigger_checks[].app_id',\n 'auto_trigger_checks[].setting': 'auto_trigger_checks[].setting'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/checks/update.json b/openapi/ghe-2.15/operations/checks/update.json
deleted file mode 100644
index 279143fade..0000000000
--- a/openapi/ghe-2.15/operations/checks/update.json
+++ /dev/null
@@ -1,462 +0,0 @@
-{
- "summary": "Update a check run",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nUpdates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs.",
- "operationId": "checks-update",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/checks/runs/#update-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the check. For example, \"code-coverage\".",
- "type": "string"
- },
- "details_url": {
- "description": "The URL of the integrator's site that has the full details of the check.",
- "type": "string"
- },
- "external_id": {
- "description": "A reference for the run on the integrator's system.",
- "type": "string"
- },
- "started_at": {
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "status": {
- "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "conclusion": {
- "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.",
- "type": "string",
- "enum": [
- "success",
- "failure",
- "neutral",
- "cancelled",
- "timed_out",
- "action_required"
- ]
- },
- "completed_at": {
- "description": "**Required if you provide `conclusion`**. The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "output": {
- "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#output-object-1) description.",
- "type": "object",
- "properties": {
- "title": {
- "description": "**Required**.",
- "type": "string"
- },
- "summary": {
- "description": "Can contain Markdown.",
- "type": "string"
- },
- "text": {
- "description": "Can contain Markdown.",
- "type": "string"
- },
- "annotations": {
- "description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/enterprise/2.15/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#annotations-object-1) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "type": "string"
- },
- "start_line": {
- "description": "The start line of the annotation.",
- "type": "integer"
- },
- "end_line": {
- "description": "The end line of the annotation.",
- "type": "integer"
- },
- "start_column": {
- "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "end_column": {
- "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "annotation_level": {
- "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
- "type": "string",
- "enum": [
- "notice",
- "warning",
- "failure"
- ]
- },
- "message": {
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "type": "string"
- },
- "title": {
- "description": "The title that represents the annotation. The maximum size is 255 characters.",
- "type": "string"
- },
- "raw_details": {
- "description": "Details about this annotation. The maximum size is 64 KB.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- }
- },
- "images": {
- "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#annotations-object-1) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "description": "The alternative text for the image.",
- "type": "string"
- },
- "image_url": {
- "description": "The full URL of the image.",
- "type": "string"
- },
- "caption": {
- "description": "A short image description.",
- "type": "string"
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- }
- }
- },
- "required": [
- "summary"
- ]
- },
- "actions": {
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "type": "string"
- },
- "description": {
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "type": "string"
- },
- "identifier": {
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "type": "string"
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id \\\n -d '{\"output.summary\":\"output.summary\",\"output.annotations[].path\":\"output.annotations[].path\",\"output.annotations[].start_line\":\"output.annotations[].start_line\",\"output.annotations[].end_line\":\"output.annotations[].end_line\",\"output.annotations[].annotation_level\":\"output.annotations[].annotation_level\",\"output.annotations[].message\":\"output.annotations[].message\",\"output.images[].alt\":\"output.images[].alt\",\"output.images[].image_url\":\"output.images[].image_url\",\"actions[].label\":\"actions[].label\",\"actions[].description\":\"actions[].description\",\"actions[].identifier\":\"actions[].identifier\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id',\n 'output.summary': 'output.summary',\n 'output.annotations[].path': 'output.annotations[].path',\n 'output.annotations[].start_line': 'output.annotations[].start_line',\n 'output.annotations[].end_line': 'output.annotations[].end_line',\n 'output.annotations[].annotation_level': 'output.annotations[].annotation_level',\n 'output.annotations[].message': 'output.annotations[].message',\n 'output.images[].alt': 'output.images[].alt',\n 'output.images[].image_url': 'output.images[].image_url',\n 'actions[].label': 'actions[].label',\n 'actions[].description': 'actions[].description',\n 'actions[].identifier': 'actions[].identifier'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/codes_of_conduct/get-conduct-code.json b/openapi/ghe-2.15/operations/codes_of_conduct/get-conduct-code.json
deleted file mode 100644
index 27518180a6..0000000000
--- a/openapi/ghe-2.15/operations/codes_of_conduct/get-conduct-code.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "summary": "Get an individual code of conduct",
- "description": "",
- "operationId": "codes_of_conduct-get-conduct-code",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/codes_of_conduct/#get-an-individual-code-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- },
- {
- "name": "key",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "key parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/codes_of_conduct/"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get({\n key: 'key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/codes_of_conduct/get-for-repo.json b/openapi/ghe-2.15/operations/codes_of_conduct/get-for-repo.json
deleted file mode 100644
index 8d6185457e..0000000000
--- a/openapi/ghe-2.15/operations/codes_of_conduct/get-for-repo.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "summary": "Get the contents of a repository's code of conduct",
- "description": "This method returns the contents of the repository's code of conduct file, if one is detected.",
- "operationId": "codes_of_conduct-get-for-repo",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/community/code_of_conduct"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/codes_of_conduct/list-conduct-codes.json b/openapi/ghe-2.15/operations/codes_of_conduct/list-conduct-codes.json
deleted file mode 100644
index 8d08f474ea..0000000000
--- a/openapi/ghe-2.15/operations/codes_of_conduct/list-conduct-codes.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "summary": "List all codes of conduct",
- "description": "",
- "operationId": "codes_of_conduct-list-conduct-codes",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/codes_of_conduct/#list-all-codes-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/codes_of_conduct"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/emojis/get.json b/openapi/ghe-2.15/operations/emojis/get.json
deleted file mode 100644
index 2e015ec539..0000000000
--- a/openapi/ghe-2.15/operations/emojis/get.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Get",
- "description": "Lists all the emojis available to use on GitHub Enterprise.\n\n",
- "operationId": "emojis-get",
- "tags": [
- "emojis"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/emojis/#emojis"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/emojis"
- },
- {
- "lang": "JS",
- "source": "octokit.emojis.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/add-authorized-ssh-key.json b/openapi/ghe-2.15/operations/enterprise-admin/add-authorized-ssh-key.json
deleted file mode 100644
index 5e3f84e030..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/add-authorized-ssh-key.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Add a new authorized SSH key",
- "description": "",
- "operationId": "enterprise-admin-add-authorized-ssh-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#add-a-new-authorized-ssh-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "authorized_key": {
- "description": "The path to the public SSH key.",
- "type": "string"
- }
- },
- "required": [
- "authorized_key"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys \\\n -d '{\"authorized_key\":\"authorized_key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n authorized_key: 'authorized_key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/check-configuration-status.json b/openapi/ghe-2.15/operations/enterprise-admin/check-configuration-status.json
deleted file mode 100644
index d5606a3670..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/check-configuration-status.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Check configuration status",
- "description": "This endpoint allows you to check the status of the most recent configuration process:\n\nNote that you may need to wait several seconds after you start a process before you can check its status.\n\nThe different statuses are:\n\n| Status | Description |\n| ------------- | --------------------------------- |\n| `PENDING` | The job has not started yet |\n| `CONFIGURING` | The job is running |\n| `DONE` | The job has finished correctly |\n| `FAILED` | The job has finished unexpectedly |",
- "operationId": "enterprise-admin-check-configuration-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#check-configuration-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "progress": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "key"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/configcheck"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/check-maintenance-status.json b/openapi/ghe-2.15/operations/enterprise-admin/check-maintenance-status.json
deleted file mode 100644
index ef9bddba40..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/check-maintenance-status.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "Check maintenance status",
- "description": "Check your installation's maintenance status:",
- "operationId": "enterprise-admin-check-maintenance-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#check-maintenance-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "scheduled_time": {
- "type": "string"
- },
- "connection_services": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "number": {
- "type": "number"
- }
- },
- "required": [
- "name",
- "number"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/maintenance"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/create-global-hook.json b/openapi/ghe-2.15/operations/enterprise-admin/create-global-hook.json
deleted file mode 100644
index 2e8687342b..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/create-global-hook.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "summary": "Create a global hook",
- "description": "",
- "operationId": "enterprise-admin-create-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/global_webhooks/#create-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Must be passed as \"web\".",
- "type": "string"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.15/v3/enterprise-admin/global_webhooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.15/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name",
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "secret": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks \\\n -d '{\"name\":\"name\",\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/create-impersonation-o-auth-token.json b/openapi/ghe-2.15/operations/enterprise-admin/create-impersonation-o-auth-token.json
deleted file mode 100644
index 22493b8492..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/create-impersonation-o-auth-token.json
+++ /dev/null
@@ -1,129 +0,0 @@
-{
- "summary": "Create an impersonation OAuth token",
- "description": "",
- "operationId": "enterprise-admin-create-impersonation-o-auth-token",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#create-an-impersonation-oauth-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "A list of [scopes](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users//authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/create-org.json b/openapi/ghe-2.15/operations/enterprise-admin/create-org.json
deleted file mode 100644
index d9d70c86ef..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/create-org.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "Create an organization",
- "description": "",
- "operationId": "enterprise-admin-create-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/orgs/#create-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The organization's username.",
- "type": "string"
- },
- "admin": {
- "description": "The login of the user who will manage this organization.",
- "type": "string"
- },
- "profile_name": {
- "description": "The organization's display name.",
- "type": "string"
- }
- },
- "required": [
- "login",
- "admin"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/organizations \\\n -d '{\"login\":\"login\",\"admin\":\"admin\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n login: 'login',\n admin: 'admin'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/create-pre-receive-environment.json b/openapi/ghe-2.15/operations/enterprise-admin/create-pre-receive-environment.json
deleted file mode 100644
index 7a21176b8d..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/create-pre-receive-environment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Create a pre-receive environment",
- "description": "",
- "operationId": "enterprise-admin-create-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_environments/#create-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new pre-receive environment's name.",
- "type": "string"
- },
- "image_url": {
- "description": "URL from which to download a tarball of this environment.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "image_url"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments \\\n -d '{\"name\":\"name\",\"image_url\":\"image_url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n image_url: 'image_url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/create-pre-receive-hook.json b/openapi/ghe-2.15/operations/enterprise-admin/create-pre-receive-hook.json
deleted file mode 100644
index 2c67211161..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/create-pre-receive-hook.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "summary": "Create a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-create-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_hooks/#create-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the hook.",
- "type": "string"
- },
- "script": {
- "description": "The script that the hook runs.",
- "type": "string"
- },
- "script_repository": {
- "description": "The GitHub repository where the script is kept.",
- "type": "object",
- "properties": {}
- },
- "environment": {
- "description": "The pre-receive environment where the script is executed.",
- "type": "object",
- "properties": {}
- },
- "enforcement": {
- "description": "The state of enforcement for this hook. default: `disabled`",
- "type": "string"
- },
- "allow_downstream_configuration": {
- "description": "Whether enforcement can be overridden at the org or repo level. default: `false`",
- "type": "boolean"
- }
- },
- "required": [
- "name",
- "script",
- "script_repository",
- "environment"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "script": {
- "type": "string"
- },
- "script_repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "full_name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks \\\n -d '{\"name\":\"name\",\"script\":\"script\",\"script_repository\":\"script_repository\",\"environment\":\"environment\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n script: 'script',\n script_repository: 'script_repository',\n environment: 'environment'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/create-user.json b/openapi/ghe-2.15/operations/enterprise-admin/create-user.json
deleted file mode 100644
index 24c6d45841..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/create-user.json
+++ /dev/null
@@ -1,128 +0,0 @@
-{
- "summary": "Create a new user",
- "description": "If an external authentication mechanism is used, the login name should match the login name in the external system. If you are using LDAP authentication, you should also [update the LDAP mapping](https://developer.github.com/enterprise/2.15/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-user) for the user.\n\nThe login name will be normalized to only contain alphanumeric characters or single hyphens. For example, if you send `\"octo_cat\"` as the login, a user named `\"octo-cat\"` will be created.\n\nIf the login name or email address is already associated with an account, the server will return a `422` response.",
- "operationId": "enterprise-admin-create-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#create-a-new-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The user's username.",
- "type": "string"
- },
- "email": {
- "description": "**Required for built-in authentication.** The user's email address. This parameter can be omitted when using CAS, LDAP, or SAML. For details on built-in and centrally-managed authentication, see the the [GitHub Enterprise authentication guide](https://help.github.com/enterprise/2.15/admin/guides/user-management/authenticating-users-for-your-github-enterprise-server-instance/).",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/delete-global-hook.json b/openapi/ghe-2.15/operations/enterprise-admin/delete-global-hook.json
deleted file mode 100644
index 4040ff5e55..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/delete-global-hook.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a global hook",
- "description": "",
- "operationId": "enterprise-admin-delete-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/global_webhooks/#delete-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/delete-impersonation-o-auth-token.json b/openapi/ghe-2.15/operations/enterprise-admin/delete-impersonation-o-auth-token.json
deleted file mode 100644
index ae4523a533..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/delete-impersonation-o-auth-token.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete an impersonation OAuth token",
- "description": "",
- "operationId": "enterprise-admin-delete-impersonation-o-auth-token",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#delete-an-impersonation-oauth-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users//authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/delete-pre-receive-environment.json b/openapi/ghe-2.15/operations/enterprise-admin/delete-pre-receive-environment.json
deleted file mode 100644
index 8382cdace2..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/delete-pre-receive-environment.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a pre-receive environment",
- "description": "If you attempt to delete an environment that cannot be deleted, you will get a response like this:\n\nThe possible error messages are:\n\n* _Cannot modify or delete the default environment_\n* _Cannot delete environment that has hooks_\n* _Cannot delete environment when download is in progress_",
- "operationId": "enterprise-admin-delete-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_environments/#delete-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/delete-pre-receive-hook.json b/openapi/ghe-2.15/operations/enterprise-admin/delete-pre-receive-hook.json
deleted file mode 100644
index 4c14545ad8..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/delete-pre-receive-hook.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-delete-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_hooks/#delete-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre_receive_hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/delete-public-key.json b/openapi/ghe-2.15/operations/enterprise-admin/delete-public-key.json
deleted file mode 100644
index 8b9dd4ca89..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/delete-public-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a public key",
- "description": "",
- "operationId": "enterprise-admin-delete-public-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#delete-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_ids",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "key_ids parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n key_ids: 'key_ids'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/delete-user.json b/openapi/ghe-2.15/operations/enterprise-admin/delete-user.json
deleted file mode 100644
index 4fdd107c48..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/delete-user.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a user",
- "description": "Deleting a user will delete all their repositories, gists, applications, and personal settings. [Suspending a user](https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#suspend-a-user) is often a better option.\n\nYou can delete any user account except your own.",
- "operationId": "enterprise-admin-delete-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#delete-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json b/openapi/ghe-2.15/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json
deleted file mode 100644
index 6da95d6329..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Demote a site administrator to an ordinary user",
- "description": "You can demote any user account except your own.",
- "operationId": "enterprise-admin-demote-site-administrator-to-ordinary-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#demote-a-site-administrator-to-an-ordinary-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//site_admin"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/enable-or-disable-maintenance-mode.json b/openapi/ghe-2.15/operations/enterprise-admin/enable-or-disable-maintenance-mode.json
deleted file mode 100644
index 0bb1b885c4..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/enable-or-disable-maintenance-mode.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Enable or disable maintenance mode",
- "description": "The possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.\n\nThe possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).",
- "operationId": "enterprise-admin-enable-or-disable-maintenance-mode",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#enable-or-disable-maintenance-mode"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "maintenance": {
- "description": "A JSON string with the attributes `enabled` and `when`.",
- "type": "string"
- }
- },
- "required": [
- "maintenance"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "scheduled_time": {
- "type": "string"
- },
- "connection_services": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "number": {
- "type": "number"
- }
- },
- "required": [
- "name",
- "number"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/maintenance \\\n -d '{\"maintenance\":\"maintenance\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n maintenance: 'maintenance'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/get-global-hook.json b/openapi/ghe-2.15/operations/enterprise-admin/get-global-hook.json
deleted file mode 100644
index e15f4d8e68..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/get-global-hook.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get single global hook",
- "description": "",
- "operationId": "enterprise-admin-get-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/global_webhooks/#get-single-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "secret": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/get-license-information.json b/openapi/ghe-2.15/operations/enterprise-admin/get-license-information.json
deleted file mode 100644
index b05934f023..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/get-license-information.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "Get license information",
- "description": "",
- "operationId": "enterprise-admin-get-license-information",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/license/#get-license-information"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "seats": {
- "type": "number"
- },
- "seats_used": {
- "type": "number"
- },
- "seats_available": {
- "type": "number"
- },
- "kind": {
- "type": "string"
- },
- "days_until_expiration": {
- "type": "number"
- },
- "expire_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/enterprise/settings/license"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-environment-download-status.json b/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-environment-download-status.json
deleted file mode 100644
index 0e77ed9896..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-environment-download-status.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Get a pre-receive environment's download status",
- "description": "In addition to seeing the download status at the `/admin/pre-receive-environments/:pre_receive_environment_id`, there is also a separate endpoint for just the status.\n\nPossible values for `state` are `not_started`, `in_progress`, `success`, `failed`.",
- "operationId": "enterprise-admin-get-pre-receive-environment-download-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_environments/#get-a-pre-receive-environments-download-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The state of the most recent download."
- },
- {
- "name": "downloaded_at",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The time when the most recent download started."
- },
- {
- "name": "message",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "On failure, this will have any error messages produced."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments//downloads/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-environment.json b/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-environment.json
deleted file mode 100644
index 715bd25849..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-environment.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Get a single pre-receive environment",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_environments/#get-a-single-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-hook-for-org.json b/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-hook-for-org.json
deleted file mode 100644
index fe2fe86edc..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-hook-for-org.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get a single pre-receive hook for organization",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/org_pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-hook-for-repo.json b/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-hook-for-repo.json
deleted file mode 100644
index 2d3215e036..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-hook-for-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get a single pre-receive hook for repository",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/repo_pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-hook.json b/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-hook.json
deleted file mode 100644
index 5ac949caf6..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/get-pre-receive-hook.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Get a single pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/get-type-stats.json b/openapi/ghe-2.15/operations/enterprise-admin/get-type-stats.json
deleted file mode 100644
index c8127b5823..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/get-type-stats.json
+++ /dev/null
@@ -1,213 +0,0 @@
-{
- "summary": "Get statistics",
- "description": "There are a variety of types to choose from:\n\n| Type | Description |\n| ------------ | --------------------------------------------------------------------------------------------------- |\n| `issues` | The number of open and closed issues. |\n| `hooks` | The number of active and inactive hooks. |\n| `milestones` | The number of open and closed milestones. |\n| `orgs` | The number of organizations, teams, team members, and disabled organizations. |\n| `comments` | The number of comments on issues, pull requests, commits, and gists. |\n| `pages` | The number of GitHub Pages sites. |\n| `users` | The number of suspended and admin users. |\n| `gists` | The number of private and public gists. |\n| `pulls` | The number of merged, mergeable, and unmergeable pull requests. |\n| `repos` | The number of organization-owned repositories, root repositories, forks, pushed commits, and wikis. |\n| `all` | All of the statistics listed above. |\n\nThese statistics are cached and will be updated approximately every 10 minutes.",
- "operationId": "enterprise-admin-get-type-stats",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/admin_stats/#get-statistics"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "type",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "type parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "repos": {
- "type": "object",
- "properties": {
- "total_repos": {
- "type": "number"
- },
- "root_repos": {
- "type": "number"
- },
- "fork_repos": {
- "type": "number"
- },
- "org_repos": {
- "type": "number"
- },
- "total_pushes": {
- "type": "number"
- },
- "total_wikis": {
- "type": "number"
- }
- }
- },
- "hooks": {
- "type": "object",
- "properties": {
- "total_hooks": {
- "type": "number"
- },
- "active_hooks": {
- "type": "number"
- },
- "inactive_hooks": {
- "type": "number"
- }
- }
- },
- "pages": {
- "type": "object",
- "properties": {
- "total_pages": {
- "type": "number"
- }
- }
- },
- "orgs": {
- "type": "object",
- "properties": {
- "total_orgs": {
- "type": "number"
- },
- "disabled_orgs": {
- "type": "number"
- },
- "total_teams": {
- "type": "number"
- },
- "total_team_members": {
- "type": "number"
- }
- }
- },
- "users": {
- "type": "object",
- "properties": {
- "total_users": {
- "type": "number"
- },
- "admin_users": {
- "type": "number"
- },
- "suspended_users": {
- "type": "number"
- }
- }
- },
- "pulls": {
- "type": "object",
- "properties": {
- "total_pulls": {
- "type": "number"
- },
- "merged_pulls": {
- "type": "number"
- },
- "mergeable_pulls": {
- "type": "number"
- },
- "unmergeable_pulls": {
- "type": "number"
- }
- }
- },
- "issues": {
- "type": "object",
- "properties": {
- "total_issues": {
- "type": "number"
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- }
- }
- },
- "milestones": {
- "type": "object",
- "properties": {
- "total_milestones": {
- "type": "number"
- },
- "open_milestones": {
- "type": "number"
- },
- "closed_milestones": {
- "type": "number"
- }
- }
- },
- "gists": {
- "type": "object",
- "properties": {
- "total_gists": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "total_commit_comments": {
- "type": "number"
- },
- "total_gist_comments": {
- "type": "number"
- },
- "total_issue_comments": {
- "type": "number"
- },
- "total_pull_request_comments": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/enterprise/stats/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n type: 'type'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/list-global-hooks.json b/openapi/ghe-2.15/operations/enterprise-admin/list-global-hooks.json
deleted file mode 100644
index 1cefe3e403..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/list-global-hooks.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "List global hooks",
- "description": "",
- "operationId": "enterprise-admin-list-global-hooks",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/global_webhooks/#list-global-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-environments.json b/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-environments.json
deleted file mode 100644
index 26cb4f0392..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-environments.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List pre-receive environments",
- "description": "",
- "operationId": "enterprise-admin-list-pre-receive-environments",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_environments/#list-pre-receive-environments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-hooks-for-org.json b/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-hooks-for-org.json
deleted file mode 100644
index 2de66257a8..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-hooks-for-org.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List pre-receive hooks for organization",
- "description": "List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.",
- "operationId": "enterprise-admin-list-pre-receive-hooks-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/org_pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json b/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json
deleted file mode 100644
index d2c15df6ff..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List pre-receive hooks for repository",
- "description": "List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.",
- "operationId": "enterprise-admin-list-pre-receive-hooks-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/repo_pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-hooks.json b/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-hooks.json
deleted file mode 100644
index f690528fba..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/list-pre-receive-hooks.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List pre-receive hooks",
- "description": "",
- "operationId": "enterprise-admin-list-pre-receive-hooks",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/modify-settings.json b/openapi/ghe-2.15/operations/enterprise-admin/modify-settings.json
deleted file mode 100644
index a9e75edeb0..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/modify-settings.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Modify settings",
- "description": "For a list of the available settings, see the [Retrieve settings endpoint](https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#retrieve-settings).",
- "operationId": "enterprise-admin-modify-settings",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#modify-settings"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "settings": {
- "description": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify.",
- "type": "string"
- }
- },
- "required": [
- "settings"
- ]
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings \\\n -d '{\"settings\":\"settings\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n settings: 'settings'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/ping-global-hook.json b/openapi/ghe-2.15/operations/enterprise-admin/ping-global-hook.json
deleted file mode 100644
index 1be3e5e228..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/ping-global-hook.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Ping a global hook",
- "description": "This will trigger a [ping event](https://developer.github.com/enterprise/2.15/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "enterprise-admin-ping-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/global_webhooks/#ping-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks//pings"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json b/openapi/ghe-2.15/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json
deleted file mode 100644
index 0e9b1d7a79..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Promote an ordinary user to a site administrator",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "enterprise-admin-promote-ordinary-user-to-site-administrator",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#promote-an-ordinary-user-to-a-site-administrator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//site_admin"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/queue-indexing-job.json b/openapi/ghe-2.15/operations/enterprise-admin/queue-indexing-job.json
deleted file mode 100644
index 7516c35d12..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/queue-indexing-job.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Queue an indexing job",
- "description": "You can index the following targets (replace `:owner` with the name of a user or organization account and `:repository` with the name of a repository):\n\n| Target | Description |\n| --------------------------- | -------------------------------------------------------------------- |\n| `:owner` | A user or organization account. |\n| `:owner/:repository` | A repository. |\n| `:owner/*` | All of a user or organization's repositories. |\n| `:owner/:repository/issues` | All the issues in a repository. |\n| `:owner/*/issues` | All the issues in all of a user or organization's repositories. |\n| `:owner/:repository/code` | All the source code in a repository. |\n| `:owner/*/code` | All the source code in all of a user or organization's repositories. |",
- "operationId": "enterprise-admin-queue-indexing-job",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/search_indexing/#queue-an-indexing-job"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "target": {
- "description": "A string representing the item to index.",
- "type": "string"
- }
- },
- "required": [
- "target"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/staff/indexing_jobs \\\n -d '{\"target\":\"target\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n target: 'target'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/remove-authorized-ssh-key.json b/openapi/ghe-2.15/operations/enterprise-admin/remove-authorized-ssh-key.json
deleted file mode 100644
index a44d725e6d..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/remove-authorized-ssh-key.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Remove an authorized SSH key",
- "description": "",
- "operationId": "enterprise-admin-remove-authorized-ssh-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#remove-an-authorized-ssh-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "authorized_key": {
- "description": "The path to the public SSH key.",
- "type": "string"
- }
- },
- "required": [
- "authorized_key"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys \\\n -d '{\"authorized_key\":\"authorized_key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n authorized_key: 'authorized_key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json b/openapi/ghe-2.15/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json
deleted file mode 100644
index 01f996cf1a..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove enforcement overrides for a pre-receive hook for organization",
- "description": "Removes any overrides for this hook at the org level for this org.",
- "operationId": "enterprise-admin-remove-enforcement-overrides-for-pre-receive-hook-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/org_pre_receive_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json b/openapi/ghe-2.15/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json
deleted file mode 100644
index 3742da77fd..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Remove enforcement overrides for a pre-receive hook for repository",
- "description": "Deletes any overridden enforcement on this repository for the specified hook.\n\nResponds with effective values inherited from owner and/or global level.",
- "operationId": "enterprise-admin-remove-enforcement-overrides-for-pre-receive-hook-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/repo_pre_receive_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/rename-org.json b/openapi/ghe-2.15/operations/enterprise-admin/rename-org.json
deleted file mode 100644
index 386c5bf18d..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/rename-org.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Rename an organization",
- "description": "",
- "operationId": "enterprise-admin-rename-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/orgs/#rename-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The organization's new name.",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/organizations/ \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/rename-user.json b/openapi/ghe-2.15/operations/enterprise-admin/rename-user.json
deleted file mode 100644
index 2fc5ccd761..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/rename-user.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Rename an existing user",
- "description": "",
- "operationId": "enterprise-admin-rename-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#rename-an-existing-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The user's new username.",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users/ \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username',\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/retrieve-authorized-ssh-keys.json b/openapi/ghe-2.15/operations/enterprise-admin/retrieve-authorized-ssh-keys.json
deleted file mode 100644
index 98dceb9584..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/retrieve-authorized-ssh-keys.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Retrieve authorized SSH keys",
- "description": "",
- "operationId": "enterprise-admin-retrieve-authorized-ssh-keys",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#retrieve-authorized-ssh-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/retrieve-settings.json b/openapi/ghe-2.15/operations/enterprise-admin/retrieve-settings.json
deleted file mode 100644
index eb3453c193..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/retrieve-settings.json
+++ /dev/null
@@ -1,452 +0,0 @@
-{
- "summary": "Retrieve settings",
- "description": "",
- "operationId": "enterprise-admin-retrieve-settings",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#retrieve-settings"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "enterprise": {
- "type": "object",
- "properties": {
- "private_mode": {
- "type": "boolean"
- },
- "public_pages": {
- "type": "boolean"
- },
- "subdomain_isolation": {
- "type": "boolean"
- },
- "signup_enabled": {
- "type": "boolean"
- },
- "github_hostname": {
- "type": "string"
- },
- "identicons_host": {
- "type": "string"
- },
- "http_proxy": {
- "type": "string"
- },
- "auth_mode": {
- "type": "string"
- },
- "expire_sessions": {
- "type": "boolean"
- },
- "admin_password": {
- "type": "string"
- },
- "configuration_id": {
- "type": "number"
- },
- "configuration_run_count": {
- "type": "number"
- },
- "avatar": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "uri": {
- "type": "string"
- }
- }
- },
- "customer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "uuid": {
- "type": "string"
- },
- "secret_key_data": {
- "type": "string"
- },
- "public_key_data": {
- "type": "string"
- }
- }
- },
- "license": {
- "type": "object",
- "properties": {
- "seats": {
- "type": "number"
- },
- "evaluation": {
- "type": "boolean"
- },
- "perpetual": {
- "type": "boolean"
- },
- "unlimited_seating": {
- "type": "boolean"
- },
- "support_key": {
- "type": "string"
- },
- "ssh_allowed": {
- "type": "boolean"
- },
- "cluster_support": {
- "type": "boolean"
- },
- "expire_at": {
- "type": "string"
- }
- }
- },
- "github_ssl": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "cert": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- }
- },
- "ldap": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string"
- },
- "port": {
- "type": "number"
- },
- "base": {
- "type": "array",
- "items": {}
- },
- "uid": {
- "type": "string"
- },
- "bind_dn": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "method": {
- "type": "string"
- },
- "search_strategy": {
- "type": "string"
- },
- "user_groups": {
- "type": "array",
- "items": {}
- },
- "admin_group": {
- "type": "string"
- },
- "virtual_attribute_enabled": {
- "type": "boolean"
- },
- "recursive_group_search": {
- "type": "boolean"
- },
- "posix_support": {
- "type": "boolean"
- },
- "user_sync_emails": {
- "type": "boolean"
- },
- "user_sync_keys": {
- "type": "boolean"
- },
- "user_sync_interval": {
- "type": "number"
- },
- "team_sync_interval": {
- "type": "number"
- },
- "sync_enabled": {
- "type": "boolean"
- },
- "reconciliation": {
- "type": "object",
- "properties": {
- "user": {
- "type": "string"
- },
- "org": {
- "type": "string"
- }
- }
- },
- "profile": {
- "type": "object",
- "properties": {
- "uid": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "mail": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- }
- }
- }
- },
- "cas": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- }
- }
- },
- "saml": {
- "type": "object",
- "properties": {
- "sso_url": {
- "type": "string"
- },
- "certificate": {
- "type": "string"
- },
- "certificate_path": {
- "type": "string"
- },
- "issuer": {
- "type": "string"
- },
- "idp_initiated_sso": {
- "type": "boolean"
- },
- "disable_admin_demote": {
- "type": "boolean"
- }
- }
- },
- "github_oauth": {
- "type": "object",
- "properties": {
- "client_id": {
- "type": "string"
- },
- "client_secret": {
- "type": "string"
- },
- "organization_name": {
- "type": "string"
- },
- "organization_team": {
- "type": "string"
- }
- }
- },
- "smtp": {
- "type": "object",
- "properties": {
- "smtp": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "address": {
- "type": "string"
- },
- "authentication": {
- "type": "string"
- },
- "port": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "user_name": {
- "type": "string"
- },
- "enable_starttls_auto": {
- "type": "boolean"
- },
- "password": {
- "type": "string"
- },
- "smtp.discard-to-noreply-address": {
- "type": "boolean"
- },
- "support_address": {
- "type": "string"
- },
- "support_address_type": {
- "type": "string"
- },
- "noreply_address": {
- "type": "string"
- }
- }
- }
- }
- },
- "ntp": {
- "type": "object",
- "properties": {
- "primary_server": {
- "type": "string"
- },
- "secondary_server": {
- "type": "string"
- }
- }
- },
- "timezone": {
- "type": "string"
- },
- "snmp": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "community": {
- "type": "string"
- }
- }
- },
- "syslog": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "server": {
- "type": "string"
- },
- "protocol_name": {
- "type": "string"
- }
- }
- },
- "assets": {
- "type": "string"
- },
- "pages": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "collectd": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "server": {
- "type": "string"
- },
- "port": {
- "type": "number"
- },
- "encryption": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "password": {
- "type": "string"
- }
- }
- },
- "mapping": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "tileserver": {
- "type": "string"
- },
- "basemap": {
- "type": "string"
- },
- "token": {
- "type": "string"
- }
- }
- },
- "load_balancer": {
- "type": "string"
- }
- }
- },
- "run_list": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/start-configuration-process.json b/openapi/ghe-2.15/operations/enterprise-admin/start-configuration-process.json
deleted file mode 100644
index d168f6ef8f..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/start-configuration-process.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Start a configuration process",
- "description": "This endpoint allows you to start a configuration process at any time for your updated settings to take effect:",
- "operationId": "enterprise-admin-start-configuration-process",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#start-a-configuration-process"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/configure"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/suspend-user.json b/openapi/ghe-2.15/operations/enterprise-admin/suspend-user.json
deleted file mode 100644
index e75f4dd0fe..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/suspend-user.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Suspend a user",
- "description": "If your GitHub Enterprise instance uses [LDAP Sync with Active Directory LDAP servers](https://help.github.com/enterprise/admin/guides/user-management/using-ldap), Active Directory LDAP-authenticated users cannot be suspended through this API. If you attempt to suspend an Active Directory LDAP-authenticated user through this API, it will return a `403` response.\n\nYou can suspend any user account except your own.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "enterprise-admin-suspend-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#suspend-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reason": {
- "description": "The reason the user is being suspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//suspended"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/sync-ldap-mapping-for-team.json b/openapi/ghe-2.15/operations/enterprise-admin/sync-ldap-mapping-for-team.json
deleted file mode 100644
index bb369fd067..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/sync-ldap-mapping-for-team.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Sync LDAP mapping for a team",
- "description": "Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.",
- "operationId": "enterprise-admin-sync-ldap-mapping-for-team",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/ldap/#sync-ldap-mapping-for-a-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/teams//sync"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/sync-ldap-mapping-for-user.json b/openapi/ghe-2.15/operations/enterprise-admin/sync-ldap-mapping-for-user.json
deleted file mode 100644
index c34d5fc46b..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/sync-ldap-mapping-for-user.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Sync LDAP mapping for a user",
- "description": "Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.",
- "operationId": "enterprise-admin-sync-ldap-mapping-for-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/ldap/#sync-ldap-mapping-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/users//sync"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/trigger-pre-receive-environment-download.json b/openapi/ghe-2.15/operations/enterprise-admin/trigger-pre-receive-environment-download.json
deleted file mode 100644
index d3c8437cfa..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/trigger-pre-receive-environment-download.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Trigger a pre-receive environment download",
- "description": "Triggers a new download of the environment tarball from the environment's `image_url`. When the download is finished, the newly downloaded tarball will overwrite the existing environment.\n\nIf a download cannot be triggered, you will get a reponse like this:\n\nThe possible error messages are:\n\n* _Cannot modify or delete the default environment_\n* _Can not start a new download when a download is in progress_",
- "operationId": "enterprise-admin-trigger-pre-receive-environment-download",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_environments/#trigger-a-pre-receive-environment-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments//downloads"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/unsuspend-user.json b/openapi/ghe-2.15/operations/enterprise-admin/unsuspend-user.json
deleted file mode 100644
index 6b2843f991..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/unsuspend-user.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Unsuspend a user",
- "description": "If your GitHub Enterprise instance uses [LDAP Sync with Active Directory LDAP servers](https://help.github.com/enterprise/admin/guides/user-management/using-ldap), this API is disabled and will return a `403` response. Active Directory LDAP-authenticated users cannot be unsuspended using the API.",
- "operationId": "enterprise-admin-unsuspend-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/users/#unsuspend-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reason": {
- "description": "The reason the user is being unsuspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//suspended"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/update-global-hook.json b/openapi/ghe-2.15/operations/enterprise-admin/update-global-hook.json
deleted file mode 100644
index 1299631c54..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/update-global-hook.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "summary": "Edit a global hook",
- "description": "Parameters that are not provided will be overwritten with the default value or removed if no default exists.",
- "operationId": "enterprise-admin-update-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/global_webhooks/#edit-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.15/v3/enterprise-admin/global_webhooks/#update-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.15/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/ \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/update-ldap-mapping-for-team.json b/openapi/ghe-2.15/operations/enterprise-admin/update-ldap-mapping-for-team.json
deleted file mode 100644
index e47c0bb2a5..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/update-ldap-mapping-for-team.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "summary": "Update LDAP mapping for a team",
- "description": "Updates the [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Create team](https://developer.github.com/enterprise/2.15/v3/teams/#create-team) endpoint to create a team with LDAP mapping.\n\nIf you pass the `hellcat-preview` media type, you can also update the LDAP mapping of a child team.",
- "operationId": "enterprise-admin-update-ldap-mapping-for-team",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ldap_dn": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/teams//mapping"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/update-ldap-mapping-for-user.json b/openapi/ghe-2.15/operations/enterprise-admin/update-ldap-mapping-for-user.json
deleted file mode 100644
index fc99200977..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/update-ldap-mapping-for-user.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "summary": "Update LDAP mapping for a user",
- "description": "",
- "operationId": "enterprise-admin-update-ldap-mapping-for-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ldap_dn": {
- "type": "string"
- },
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/users//mapping"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-environment.json b/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-environment.json
deleted file mode 100644
index 5f4a76438b..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-environment.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Edit a pre-receive environment",
- "description": "If you attempt to modify the default environment, you will get a response like this:",
- "operationId": "enterprise-admin-update-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_environments/#edit-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "This pre-receive environment's new name.",
- "type": "string"
- },
- "image_url": {
- "description": "URL from which to download a tarball of this environment.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json b/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json
deleted file mode 100644
index 1442e4320c..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Update pre-receive hook enforcement for organization",
- "description": "For pre-receive hooks which are allowed to be configured at the org level, you can set `enforcement` and `allow_downstream_configuration`",
- "operationId": "enterprise-admin-update-pre-receive-hook-enforcement-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/org_pre_receive_hooks/#update-pre-receive-hook-enforcement"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json b/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json
deleted file mode 100644
index e924b4746f..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Update pre-receive hook enforcement for repository",
- "description": "For pre-receive hooks which are allowed to be configured at the repo level, you can set `enforcement`",
- "operationId": "enterprise-admin-update-pre-receive-hook-enforcement-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/repo_pre_receive_hooks/#update-pre-receive-hook-enforcement"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-hook.json b/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-hook.json
deleted file mode 100644
index 411d39589d..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/update-pre-receive-hook.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "summary": "Edit a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-update-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/pre_receive_hooks/#edit-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "script": {
- "type": "string"
- },
- "script_repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "full_name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre_receive_hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/upgrade-license.json b/openapi/ghe-2.15/operations/enterprise-admin/upgrade-license.json
deleted file mode 100644
index f1091e906c..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/upgrade-license.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Upgrade a license",
- "description": "This API upgrades your license and also triggers the configuration process:",
- "operationId": "enterprise-admin-upgrade-license",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#upgrade-a-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "license": {
- "description": "The content of your new _.ghl_ license file.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/upgrade"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/enterprise-admin/upload-license-for-first-time.json b/openapi/ghe-2.15/operations/enterprise-admin/upload-license-for-first-time.json
deleted file mode 100644
index fa75e8fa7c..0000000000
--- a/openapi/ghe-2.15/operations/enterprise-admin/upload-license-for-first-time.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "summary": "Upload a license for the first time",
- "description": "When you boot a GitHub Enterprise instance for the first time, you can use the following endpoint to upload a license:\n\nNote that you need to POST to [`/setup/api/configure`](https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#start-a-configuration-process) to start the actual configuration process.\n\nWhen using this endpoint, your GitHub Enterprise instance must have a password set. This can be accomplished two ways:\n\n1. If you're working directly with the API before accessing the web interface, you must pass in the password parameter to set your password.\n2. If you set up your instance via the web interface before accessing the API, your calls to this endpoint do not need the password parameter.\n\nFor a list of the available settings, see the [Retrieve settings endpoint](https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#retrieve-settings).",
- "operationId": "enterprise-admin-upload-license-for-first-time",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/enterprise-admin/management_console/#upload-a-license-for-the-first-time"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "license": {
- "description": "The content of your _.ghl_ license file.",
- "type": "string"
- },
- "password": {
- "description": "You **must** provide a password _only if_ you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.",
- "type": "string"
- },
- "settings": {
- "description": "An optional JSON string containing the installation settings.",
- "type": "string"
- }
- },
- "required": [
- "license"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/start \\\n -d '{\"license\":\"license\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n license: 'license'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/check-is-starred.json b/openapi/ghe-2.15/operations/gists/check-is-starred.json
deleted file mode 100644
index 92142f75ca..0000000000
--- a/openapi/ghe-2.15/operations/gists/check-is-starred.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Check if a gist is starred",
- "description": "",
- "operationId": "gists-check-is-starred",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#check-if-a-gist-is-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/create-comment.json b/openapi/ghe-2.15/operations/gists/create-comment.json
deleted file mode 100644
index 661dc7cf10..0000000000
--- a/openapi/ghe-2.15/operations/gists/create-comment.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "",
- "operationId": "gists-create-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The comment text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/create.json b/openapi/ghe-2.15/operations/gists/create.json
deleted file mode 100644
index a4e64b6ff6..0000000000
--- a/openapi/ghe-2.15/operations/gists/create.json
+++ /dev/null
@@ -1,470 +0,0 @@
-{
- "summary": "Create a gist",
- "description": "Allows you to add a new gist with one or more files.\n\n**Note:** Don't name your files \"gistfile\" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.",
- "operationId": "gists-create",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#create-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "files": {
- "description": "The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`.",
- "type": "object",
- "properties": {
- "content": {
- "description": "The content of the file.",
- "type": "string"
- }
- }
- },
- "description": {
- "description": "A descriptive name for this gist.",
- "type": "string"
- },
- "public": {
- "description": "When `true`, the gist will be public and available for anyone to see.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "files"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists \\\n -d '{\"files\":\"files\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n files: 'files'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/delete-comment.json b/openapi/ghe-2.15/operations/gists/delete-comment.json
deleted file mode 100644
index f3b1fac1aa..0000000000
--- a/openapi/ghe-2.15/operations/gists/delete-comment.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "gists-delete-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/delete.json b/openapi/ghe-2.15/operations/gists/delete.json
deleted file mode 100644
index 4b93a4b04e..0000000000
--- a/openapi/ghe-2.15/operations/gists/delete.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a gist",
- "description": "",
- "operationId": "gists-delete",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#delete-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/fork.json b/openapi/ghe-2.15/operations/gists/fork.json
deleted file mode 100644
index 8801f0021f..0000000000
--- a/openapi/ghe-2.15/operations/gists/fork.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Fork a gist",
- "description": "**Note**: This was previously `/gists/:gist_id/fork`.",
- "operationId": "gists-fork",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#fork-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//forks"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/get-comment.json b/openapi/ghe-2.15/operations/gists/get-comment.json
deleted file mode 100644
index 50baa92678..0000000000
--- a/openapi/ghe-2.15/operations/gists/get-comment.json
+++ /dev/null
@@ -1,147 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "gists-get-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/get-revision.json b/openapi/ghe-2.15/operations/gists/get-revision.json
deleted file mode 100644
index 0e71310915..0000000000
--- a/openapi/ghe-2.15/operations/gists/get-revision.json
+++ /dev/null
@@ -1,455 +0,0 @@
-{
- "summary": "Get a specific revision of a gist",
- "description": "",
- "operationId": "gists-get-revision",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#get-a-specific-revision-of-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//:sha"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/get.json b/openapi/ghe-2.15/operations/gists/get.json
deleted file mode 100644
index b8b8bc1791..0000000000
--- a/openapi/ghe-2.15/operations/gists/get.json
+++ /dev/null
@@ -1,446 +0,0 @@
-{
- "summary": "Get a single gist",
- "description": "",
- "operationId": "gists-get",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#get-a-single-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/list-comments.json b/openapi/ghe-2.15/operations/gists/list-comments.json
deleted file mode 100644
index 38dd565689..0000000000
--- a/openapi/ghe-2.15/operations/gists/list-comments.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List comments on a gist",
- "description": "",
- "operationId": "gists-list-comments",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/comments/#list-comments-on-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/list-commits.json b/openapi/ghe-2.15/operations/gists/list-commits.json
deleted file mode 100644
index 682103ac59..0000000000
--- a/openapi/ghe-2.15/operations/gists/list-commits.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List gist commits",
- "description": "",
- "operationId": "gists-list-commits",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#list-gist-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//commits"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/list-forks.json b/openapi/ghe-2.15/operations/gists/list-forks.json
deleted file mode 100644
index 13e255fc72..0000000000
--- a/openapi/ghe-2.15/operations/gists/list-forks.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List gist forks",
- "description": "",
- "operationId": "gists-list-forks",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#list-gist-forks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//forks"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/list-public-for-user.json b/openapi/ghe-2.15/operations/gists/list-public-for-user.json
deleted file mode 100644
index c0c691be39..0000000000
--- a/openapi/ghe-2.15/operations/gists/list-public-for-user.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List public gists for the specified user",
- "description": "",
- "operationId": "gists-list-public-for-user",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#list-a-users-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//gists"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/list-public.json b/openapi/ghe-2.15/operations/gists/list-public.json
deleted file mode 100644
index 8d18717850..0000000000
--- a/openapi/ghe-2.15/operations/gists/list-public.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List all public gists",
- "description": "List all public gists sorted by most recently updated to least recently updated.\n\nNote: With [pagination](https://developer.github.com/enterprise/2.15/v3/#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.",
- "operationId": "gists-list-public",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#list-all-public-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/public"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/list-starred.json b/openapi/ghe-2.15/operations/gists/list-starred.json
deleted file mode 100644
index 6f73c1fa5f..0000000000
--- a/openapi/ghe-2.15/operations/gists/list-starred.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List starred gists",
- "description": "List the authenticated user's starred gists:",
- "operationId": "gists-list-starred",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#list-starred-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/starred"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/list.json b/openapi/ghe-2.15/operations/gists/list.json
deleted file mode 100644
index 41ac95bc44..0000000000
--- a/openapi/ghe-2.15/operations/gists/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List the authenticated user's gists or if called anonymously, this will return all public gists",
- "description": "",
- "operationId": "gists-list",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#list-a-users-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/star.json b/openapi/ghe-2.15/operations/gists/star.json
deleted file mode 100644
index 5acfccdb8d..0000000000
--- a/openapi/ghe-2.15/operations/gists/star.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Star a gist",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "gists-star",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#star-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/unstar.json b/openapi/ghe-2.15/operations/gists/unstar.json
deleted file mode 100644
index 078163243f..0000000000
--- a/openapi/ghe-2.15/operations/gists/unstar.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Unstar a gist",
- "description": "",
- "operationId": "gists-unstar",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#unstar-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/update-comment.json b/openapi/ghe-2.15/operations/gists/update-comment.json
deleted file mode 100644
index dcfb6a2821..0000000000
--- a/openapi/ghe-2.15/operations/gists/update-comment.json
+++ /dev/null
@@ -1,165 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "gists-update-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The comment text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gists/update.json b/openapi/ghe-2.15/operations/gists/update.json
deleted file mode 100644
index c903542d80..0000000000
--- a/openapi/ghe-2.15/operations/gists/update.json
+++ /dev/null
@@ -1,475 +0,0 @@
-{
- "summary": "Edit a gist",
- "description": "Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged.",
- "operationId": "gists-update",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gists/#edit-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "description": {
- "description": "A descriptive name for this gist.",
- "type": "string"
- },
- "files": {
- "description": "The filenames and content that make up this gist.",
- "type": "object",
- "properties": {
- "content": {
- "description": "The updated content of the file.",
- "type": "string"
- },
- "filename": {
- "description": "The new name for this file. To delete a file, set the value of the filename to `null`.",
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.md": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "new_file.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/create-blob.json b/openapi/ghe-2.15/operations/git/create-blob.json
deleted file mode 100644
index eef11c8eca..0000000000
--- a/openapi/ghe-2.15/operations/git/create-blob.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "summary": "Create a blob",
- "description": "",
- "operationId": "git-create-blob",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/blobs/#create-a-blob"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The new blob's content.",
- "type": "string"
- },
- "encoding": {
- "description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "type": "string",
- "default": "utf-8"
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/blobs \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/create-commit.json b/openapi/ghe-2.15/operations/git/create-commit.json
deleted file mode 100644
index 7a89092fe8..0000000000
--- a/openapi/ghe-2.15/operations/git/create-commit.json
+++ /dev/null
@@ -1,223 +0,0 @@
-{
- "summary": "Create a commit",
- "description": "Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\nIn this example, the payload of the signature would be:\n\n\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-create-commit",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/commits/#create-a-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message",
- "type": "string"
- },
- "tree": {
- "description": "The SHA of the tree object this commit points to",
- "type": "string"
- },
- "parents": {
- "description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "author": {
- "description": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- },
- "date": {
- "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- },
- "committer": {
- "description": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- },
- "date": {
- "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- },
- "signature": {
- "description": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.",
- "type": "string"
- }
- },
- "required": [
- "message",
- "tree",
- "parents"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/commits \\\n -d '{\"message\":\"message\",\"tree\":\"tree\",\"parents\":\"parents\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n message: 'message',\n tree: 'tree',\n parents: 'parents'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/create-ref.json b/openapi/ghe-2.15/operations/git/create-ref.json
deleted file mode 100644
index 49efd00cf5..0000000000
--- a/openapi/ghe-2.15/operations/git/create-ref.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Create a reference",
- "description": "Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches.",
- "operationId": "git-create-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/refs/#create-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ref": {
- "description": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
- "type": "string"
- },
- "sha": {
- "description": "The SHA1 value for this reference.",
- "type": "string"
- }
- },
- "required": [
- "ref",
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ref": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs \\\n -d '{\"ref\":\"ref\",\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/create-tag.json b/openapi/ghe-2.15/operations/git/create-tag.json
deleted file mode 100644
index a17220796b..0000000000
--- a/openapi/ghe-2.15/operations/git/create-tag.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Create a tag object",
- "description": "Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://developer.github.com/enterprise/2.15/v3/git/refs/#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://developer.github.com/enterprise/2.15/v3/git/refs/#create-a-reference) the tag reference - this call would be unnecessary.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-create-tag",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/tags/#create-a-tag-object"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag": {
- "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
- "type": "string"
- },
- "message": {
- "description": "The tag message.",
- "type": "string"
- },
- "object": {
- "description": "The SHA of the git object this is tagging.",
- "type": "string"
- },
- "type": {
- "description": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
- "type": "string",
- "enum": [
- "commit",
- "tree",
- "blob"
- ]
- },
- "tagger": {
- "description": "An object with information about the individual creating the tag.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author of the tag",
- "type": "string"
- },
- "email": {
- "description": "The email of the author of the tag",
- "type": "string"
- },
- "date": {
- "description": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- }
- },
- "required": [
- "tag",
- "message",
- "object",
- "type"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "node_id": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tagger": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/tags \\\n -d '{\"tag\":\"tag\",\"message\":\"message\",\"object\":\"object\",\"type\":\"type\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag: 'tag',\n message: 'message',\n object: 'object',\n type: 'type'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/create-tree.json b/openapi/ghe-2.15/operations/git/create-tree.json
deleted file mode 100644
index 9c36226543..0000000000
--- a/openapi/ghe-2.15/operations/git/create-tree.json
+++ /dev/null
@@ -1,161 +0,0 @@
-{
- "summary": "Create a tree",
- "description": "The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out.",
- "operationId": "git-create-tree",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/trees/#create-a-tree"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tree": {
- "description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The file referenced in the tree.",
- "type": "string"
- },
- "mode": {
- "description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "type": "string",
- "enum": [
- "100644",
- "100755",
- "040000",
- "160000",
- "120000"
- ]
- },
- "type": {
- "description": "Either `blob`, `tree`, or `commit`.",
- "type": "string",
- "enum": [
- "blob",
- "tree",
- "commit"
- ]
- },
- "sha": {
- "description": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "type": "string"
- },
- "content": {
- "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "type": "string"
- }
- }
- }
- },
- "base_tree": {
- "description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.",
- "type": "string"
- }
- },
- "required": [
- "tree"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "tree": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- },
- "mode": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/trees \\\n -d '{\"tree\":\"tree\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tree: 'tree'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/delete-ref.json b/openapi/ghe-2.15/operations/git/delete-ref.json
deleted file mode 100644
index 331df3955c..0000000000
--- a/openapi/ghe-2.15/operations/git/delete-ref.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a reference",
- "description": "```\nDELETE /repos/octocat/Hello-World/git/refs/heads/feature-a\n```\n\n```\nDELETE /repos/octocat/Hello-World/git/refs/tags/v1.0\n```",
- "operationId": "git-delete-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/refs/#delete-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/get-blob.json b/openapi/ghe-2.15/operations/git/get-blob.json
deleted file mode 100644
index 5106954986..0000000000
--- a/openapi/ghe-2.15/operations/git/get-blob.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Get a blob",
- "description": "The `content` in the response will always be Base64 encoded.\n\n_Note_: This API supports blobs up to 100 megabytes in size.",
- "operationId": "git-get-blob",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/blobs/#get-a-blob"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "file_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "file_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/blobs/:file_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n file_sha: 'file_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/get-commit.json b/openapi/ghe-2.15/operations/git/get-commit.json
deleted file mode 100644
index 62a12f1d94..0000000000
--- a/openapi/ghe-2.15/operations/git/get-commit.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "summary": "Get a commit",
- "description": "Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-get-commit",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/commits/#get-a-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/commits/:commit_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/get-ref.json b/openapi/ghe-2.15/operations/git/get-ref.json
deleted file mode 100644
index 72b7155381..0000000000
--- a/openapi/ghe-2.15/operations/git/get-ref.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get a reference",
- "description": "Returns a branch or tag reference. Other than the [REST API](https://developer.github.com/v3/git/refs/#get-a-reference) it always returns a single reference. If the REST API returns with an array then the method responds with an error.",
- "operationId": "git-get-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/refs/#get-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "Must be formatted as `heads/branch`, not just `branch`"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/get-tag.json b/openapi/ghe-2.15/operations/git/get-tag.json
deleted file mode 100644
index 82a873743d..0000000000
--- a/openapi/ghe-2.15/operations/git/get-tag.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "summary": "Get a tag",
- "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-get-tag",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/tags/#get-a-tag"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tag_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tag_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "node_id": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tagger": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/tags/:tag_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag_sha: 'tag_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/get-tree.json b/openapi/ghe-2.15/operations/git/get-tree.json
deleted file mode 100644
index f7c81bf8ac..0000000000
--- a/openapi/ghe-2.15/operations/git/get-tree.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get a tree",
- "description": "If `truncated` in the response is `true`, the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, omit the `recursive` parameter, and fetch one sub-tree at a time. If you need to fetch even more items, you can clone the repository and iterate over the Git data locally.",
- "operationId": "git-get-tree",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/trees/#get-a-tree"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tree_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tree_sha parameter"
- },
- {
- "name": "recursive",
- "in": "query",
- "schema": {
- "type": "integer",
- "enum": [
- 1
- ]
- },
- "description": "recursive parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/trees/:tree_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tree_sha: 'tree_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/git/update-ref.json b/openapi/ghe-2.15/operations/git/update-ref.json
deleted file mode 100644
index 1d45385fac..0000000000
--- a/openapi/ghe-2.15/operations/git/update-ref.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "summary": "Update a reference",
- "description": "",
- "operationId": "git-update-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/git/refs/#update-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "sha": {
- "description": "The SHA1 value to set this reference to",
- "type": "string"
- },
- "force": {
- "description": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ref": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref \\\n -d '{\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gitignore/get-template.json b/openapi/ghe-2.15/operations/gitignore/get-template.json
deleted file mode 100644
index 00c1767877..0000000000
--- a/openapi/ghe-2.15/operations/gitignore/get-template.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get a single template",
- "description": "The API also allows fetching the source of a single template.\n\nUse the raw [media type](https://developer.github.com/enterprise/2.15/v3/media/) to get the raw contents.\n\n",
- "operationId": "gitignore-get-template",
- "tags": [
- "gitignore"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gitignore/#get-a-single-template"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "source": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gitignore/templates/"
- },
- {
- "lang": "JS",
- "source": "octokit.gitignore.get({\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/gitignore/list-templates.json b/openapi/ghe-2.15/operations/gitignore/list-templates.json
deleted file mode 100644
index 70accfdda0..0000000000
--- a/openapi/ghe-2.15/operations/gitignore/list-templates.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Listing available templates",
- "description": "List all templates available to pass as an option when [creating a repository](https://developer.github.com/enterprise/2.15/v3/repos/#create).",
- "operationId": "gitignore-list-templates",
- "tags": [
- "gitignore"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/gitignore/#listing-available-templates"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gitignore/templates"
- },
- {
- "lang": "JS",
- "source": "octokit.gitignore.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/add-assignees.json b/openapi/ghe-2.15/operations/issues/add-assignees.json
deleted file mode 100644
index 4ed346b3ce..0000000000
--- a/openapi/ghe-2.15/operations/issues/add-assignees.json
+++ /dev/null
@@ -1,516 +0,0 @@
-{
- "summary": "Add assignees to an issue",
- "description": "Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.\n\nThis example adds two assignees to the existing `octocat` assignee.",
- "operationId": "issues-add-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/assignees/#add-assignees-to-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "assignees": {
- "description": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/add-labels.json b/openapi/ghe-2.15/operations/issues/add-labels.json
deleted file mode 100644
index 3bcb40f5f3..0000000000
--- a/openapi/ghe-2.15/operations/issues/add-labels.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "Add labels to an issue",
- "description": "",
- "operationId": "issues-add-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#add-labels-to-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string",
- "description": "labels parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels \\\n -d '{\"labels\":\"labels\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n labels: 'labels'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "labels"
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/check-assignee.json b/openapi/ghe-2.15/operations/issues/check-assignee.json
deleted file mode 100644
index 5d137761cb..0000000000
--- a/openapi/ghe-2.15/operations/issues/check-assignee.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check assignee",
- "description": "Checks if a user has permission to be assigned to an issue in this repository.\n\nIf the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.\n\nOtherwise a `404` status code is returned.",
- "operationId": "issues-check-assignee",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/assignees/#check-assignee"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "assignee",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "assignee parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/assignees/:assignee"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n assignee: 'assignee'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/create-comment.json b/openapi/ghe-2.15/operations/issues/create-comment.json
deleted file mode 100644
index 672e4fcd12..0000000000
--- a/openapi/ghe-2.15/operations/issues/create-comment.json
+++ /dev/null
@@ -1,187 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "issues-create-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/create-label.json b/openapi/ghe-2.15/operations/issues/create-label.json
deleted file mode 100644
index 3b00f734ff..0000000000
--- a/openapi/ghe-2.15/operations/issues/create-label.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "summary": "Create a label",
- "description": "",
- "operationId": "issues-create-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#create-a-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).",
- "type": "string"
- },
- "color": {
- "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the label.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "color"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels \\\n -d '{\"name\":\"name\",\"color\":\"color\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name',\n color: 'color'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/create-milestone.json b/openapi/ghe-2.15/operations/issues/create-milestone.json
deleted file mode 100644
index 3d4f66f3dd..0000000000
--- a/openapi/ghe-2.15/operations/issues/create-milestone.json
+++ /dev/null
@@ -1,209 +0,0 @@
-{
- "summary": "Create a milestone",
- "description": "",
- "operationId": "issues-create-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/milestones/#create-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the milestone.",
- "type": "string"
- },
- "state": {
- "description": "The state of the milestone. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open"
- },
- "description": {
- "description": "A description of the milestone.",
- "type": "string"
- },
- "due_on": {
- "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- },
- "required": [
- "title"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones \\\n -d '{\"title\":\"title\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/create.json b/openapi/ghe-2.15/operations/issues/create.json
deleted file mode 100644
index 5411682bc2..0000000000
--- a/openapi/ghe-2.15/operations/issues/create.json
+++ /dev/null
@@ -1,562 +0,0 @@
-{
- "summary": "Create an issue",
- "description": "Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` status.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "issues-create",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/#create-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the issue.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the issue.",
- "type": "string"
- },
- "assignee": {
- "description": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
- "type": "string"
- },
- "milestone": {
- "description": "The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._",
- "type": "integer"
- },
- "labels": {
- "description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "assignees": {
- "description": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "title"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues \\\n -d '{\"title\":\"title\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/delete-comment.json b/openapi/ghe-2.15/operations/issues/delete-comment.json
deleted file mode 100644
index a6de1b956d..0000000000
--- a/openapi/ghe-2.15/operations/issues/delete-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "issues-delete-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/delete-label.json b/openapi/ghe-2.15/operations/issues/delete-label.json
deleted file mode 100644
index c5f02b36d0..0000000000
--- a/openapi/ghe-2.15/operations/issues/delete-label.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a label",
- "description": "",
- "operationId": "issues-delete-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#delete-a-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/delete-milestone.json b/openapi/ghe-2.15/operations/issues/delete-milestone.json
deleted file mode 100644
index c12096183c..0000000000
--- a/openapi/ghe-2.15/operations/issues/delete-milestone.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Delete a milestone",
- "description": "",
- "operationId": "issues-delete-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/milestones/#delete-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/get-comment.json b/openapi/ghe-2.15/operations/issues/get-comment.json
deleted file mode 100644
index 83fb50fdcf..0000000000
--- a/openapi/ghe-2.15/operations/issues/get-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "issues-get-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/get-event.json b/openapi/ghe-2.15/operations/issues/get-event.json
deleted file mode 100644
index 5987924df9..0000000000
--- a/openapi/ghe-2.15/operations/issues/get-event.json
+++ /dev/null
@@ -1,553 +0,0 @@
-{
- "summary": "Get a single event",
- "description": "",
- "operationId": "issues-get-event",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/events/#get-a-single-event"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "event_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "event_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "actor": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "event": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "commit_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "issue": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/events/:event_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n event_id: 'event_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/get-label.json b/openapi/ghe-2.15/operations/issues/get-label.json
deleted file mode 100644
index b5e5287d78..0000000000
--- a/openapi/ghe-2.15/operations/issues/get-label.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "summary": "Get a single label",
- "description": "",
- "operationId": "issues-get-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#get-a-single-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/get-milestone.json b/openapi/ghe-2.15/operations/issues/get-milestone.json
deleted file mode 100644
index 8f89f84e6a..0000000000
--- a/openapi/ghe-2.15/operations/issues/get-milestone.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Get a single milestone",
- "description": "",
- "operationId": "issues-get-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/milestones/#get-a-single-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/get.json b/openapi/ghe-2.15/operations/issues/get.json
deleted file mode 100644
index 5bdbf5b0d2..0000000000
--- a/openapi/ghe-2.15/operations/issues/get.json
+++ /dev/null
@@ -1,537 +0,0 @@
-{
- "summary": "Get a single issue",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.15/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-get",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/#get-a-single-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-assignees.json b/openapi/ghe-2.15/operations/issues/list-assignees.json
deleted file mode 100644
index 6cc9e7f279..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-assignees.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List assignees",
- "description": "Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository.",
- "operationId": "issues-list-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/assignees/#list-assignees"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-comments-for-repo.json b/openapi/ghe-2.15/operations/issues/list-comments-for-repo.json
deleted file mode 100644
index 9ef7119eab..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-comments-for-repo.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "List comments in a repository",
- "description": "By default, Issue Comments are ordered by ascending ID.",
- "operationId": "issues-list-comments-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/comments/#list-comments-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Either `created` or `updated`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Either `asc` or `desc`. Ignored without the `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-comments.json b/openapi/ghe-2.15/operations/issues/list-comments.json
deleted file mode 100644
index cd17c7974e..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-comments.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "List comments on an issue",
- "description": "Issue Comments are ordered by ascending ID.",
- "operationId": "issues-list-comments",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/comments/#list-comments-on-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-events-for-repo.json b/openapi/ghe-2.15/operations/issues/list-events-for-repo.json
deleted file mode 100644
index 6c145a9bc7..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-events-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List events for a repository",
- "description": "",
- "operationId": "issues-list-events-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/events/#list-events-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/events"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-events-for-timeline.json b/openapi/ghe-2.15/operations/issues/list-events-for-timeline.json
deleted file mode 100644
index 399f7015ac..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-events-for-timeline.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List events for an issue",
- "description": "",
- "operationId": "issues-list-events-for-timeline",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/timeline/#list-events-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.mockingbird-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.mockingbird-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/timeline"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-events.json b/openapi/ghe-2.15/operations/issues/list-events.json
deleted file mode 100644
index 1b671eb553..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-events.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List events for an issue",
- "description": "",
- "operationId": "issues-list-events",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/events/#list-events-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/events"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-for-authenticated-user.json b/openapi/ghe-2.15/operations/issues/list-for-authenticated-user.json
deleted file mode 100644
index 5c182307e3..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-for-authenticated-user.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "summary": "List all issues across owned and member repositories assigned to the authenticated user",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.15/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-authenticated-user",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-for-org.json b/openapi/ghe-2.15/operations/issues/list-for-org.json
deleted file mode 100644
index ea91dc85e6..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-for-org.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "summary": "List all issues for a given organization assigned to the authenticated user",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.15/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-org",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-for-repo.json b/openapi/ghe-2.15/operations/issues/list-for-repo.json
deleted file mode 100644
index c670eafe90..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-for-repo.json
+++ /dev/null
@@ -1,185 +0,0 @@
-{
- "summary": "List issues for a repository",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.15/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/#list-issues-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned."
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "assignee",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user."
- },
- {
- "name": "creator",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The user that created the issue."
- },
- {
- "name": "mentioned",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A user that's mentioned in the issue."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-labels-for-milestone.json b/openapi/ghe-2.15/operations/issues/list-labels-for-milestone.json
deleted file mode 100644
index 005cd9fbc8..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-labels-for-milestone.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "Get labels for every issue in a milestone",
- "description": "",
- "operationId": "issues-list-labels-for-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-labels-for-repo.json b/openapi/ghe-2.15/operations/issues/list-labels-for-repo.json
deleted file mode 100644
index 11875670f3..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-labels-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List all labels for this repository",
- "description": "",
- "operationId": "issues-list-labels-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#list-all-labels-for-this-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-labels-on-issue.json b/openapi/ghe-2.15/operations/issues/list-labels-on-issue.json
deleted file mode 100644
index dbc4485bfe..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-labels-on-issue.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List labels on an issue",
- "description": "",
- "operationId": "issues-list-labels-on-issue",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#list-labels-on-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/list-milestones-for-repo.json b/openapi/ghe-2.15/operations/issues/list-milestones-for-repo.json
deleted file mode 100644
index dae86b6380..0000000000
--- a/openapi/ghe-2.15/operations/issues/list-milestones-for-repo.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "summary": "List milestones for a repository",
- "description": "",
- "operationId": "issues-list-milestones-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/milestones/#list-milestones-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "The state of the milestone. Either `open`, `closed`, or `all`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "due_on",
- "completeness"
- ],
- "default": "due_on"
- },
- "required": false,
- "description": "What to sort results by. Either `due_on` or `completeness`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "asc"
- },
- "required": false,
- "description": "The direction of the sort. Either `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/list.json b/openapi/ghe-2.15/operations/issues/list.json
deleted file mode 100644
index 7392680b6c..0000000000
--- a/openapi/ghe-2.15/operations/issues/list.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "summary": "List all issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.15/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/lock.json b/openapi/ghe-2.15/operations/issues/lock.json
deleted file mode 100644
index bc6c54ffda..0000000000
--- a/openapi/ghe-2.15/operations/issues/lock.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "Lock an issue",
- "description": "Users with push access can lock an issue or pull request's conversation.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "issues-lock",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/#lock-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "lock_reason": {
- "description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
- "type": "string",
- "enum": [
- "off-topic",
- "too heated",
- "resolved",
- "spam"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/lock"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/remove-assignees.json b/openapi/ghe-2.15/operations/issues/remove-assignees.json
deleted file mode 100644
index fc466a24df..0000000000
--- a/openapi/ghe-2.15/operations/issues/remove-assignees.json
+++ /dev/null
@@ -1,496 +0,0 @@
-{
- "summary": "Remove assignees from an issue",
- "description": "Removes one or more assignees from an issue.\n\nThis example removes two of three assignees, leaving the `octocat` assignee.",
- "operationId": "issues-remove-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/assignees/#remove-assignees-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "assignees": {
- "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/remove-label.json b/openapi/ghe-2.15/operations/issues/remove-label.json
deleted file mode 100644
index 0409332038..0000000000
--- a/openapi/ghe-2.15/operations/issues/remove-label.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "summary": "Remove a label from an issue",
- "description": "Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist.",
- "operationId": "issues-remove-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#remove-a-label-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/remove-labels.json b/openapi/ghe-2.15/operations/issues/remove-labels.json
deleted file mode 100644
index 65a194f3ed..0000000000
--- a/openapi/ghe-2.15/operations/issues/remove-labels.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Remove all labels from an issue",
- "description": "",
- "operationId": "issues-remove-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#remove-all-labels-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/replace-labels.json b/openapi/ghe-2.15/operations/issues/replace-labels.json
deleted file mode 100644
index 3f8e883752..0000000000
--- a/openapi/ghe-2.15/operations/issues/replace-labels.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "Replace all labels for an issue",
- "description": "Sending an empty array (`[]`) will remove all labels from the issue.",
- "operationId": "issues-replace-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/labels/#replace-all-labels-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string",
- "description": "labels parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels \\\n -d '{\"labels\":\"labels\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n labels: 'labels'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "labels"
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/unlock.json b/openapi/ghe-2.15/operations/issues/unlock.json
deleted file mode 100644
index 427fc94d62..0000000000
--- a/openapi/ghe-2.15/operations/issues/unlock.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Unlock an issue",
- "description": "Users with push access can unlock an issue's conversation.",
- "operationId": "issues-unlock",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/#unlock-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/lock"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/update-comment.json b/openapi/ghe-2.15/operations/issues/update-comment.json
deleted file mode 100644
index 7e5fb06bac..0000000000
--- a/openapi/ghe-2.15/operations/issues/update-comment.json
+++ /dev/null
@@ -1,177 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "issues-update-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/issues/update-milestone.json b/openapi/ghe-2.15/operations/issues/update-milestone.json
deleted file mode 100644
index 91aaebc809..0000000000
--- a/openapi/ghe-2.15/operations/issues/update-milestone.json
+++ /dev/null
@@ -1,225 +0,0 @@
-{
- "summary": "Update a milestone",
- "description": "",
- "operationId": "issues-update-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/milestones/#update-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the milestone.",
- "type": "string"
- },
- "state": {
- "description": "The state of the milestone. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open"
- },
- "description": {
- "description": "A description of the milestone.",
- "type": "string"
- },
- "due_on": {
- "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/issues/update.json b/openapi/ghe-2.15/operations/issues/update.json
deleted file mode 100644
index 18ed5feca0..0000000000
--- a/openapi/ghe-2.15/operations/issues/update.json
+++ /dev/null
@@ -1,587 +0,0 @@
-{
- "summary": "Edit an issue",
- "description": "Issue owners and users with push access can edit an issue.",
- "operationId": "issues-update",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/issues/#edit-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the issue.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the issue.",
- "type": "string"
- },
- "assignee": {
- "description": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
- "type": "string"
- },
- "state": {
- "description": "State of the issue. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "milestone": {
- "description": "The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._",
- "type": "integer",
- "nullable": true
- },
- "labels": {
- "description": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "assignees": {
- "description": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/licenses/get-for-repo.json b/openapi/ghe-2.15/operations/licenses/get-for-repo.json
deleted file mode 100644
index 68a963723d..0000000000
--- a/openapi/ghe-2.15/operations/licenses/get-for-repo.json
+++ /dev/null
@@ -1,137 +0,0 @@
-{
- "summary": "Get the contents of a repository's license",
- "description": "This method returns the contents of the repository's license file, if one is detected.\n\nSimilar to [the repository contents API](https://developer.github.com/enterprise/2.15/v3/repos/contents/#get-contents), this method also supports [custom media types](https://developer.github.com/enterprise/2.15/v3/repos/contents/#custom-media-types) for retrieving the raw license content or rendered license HTML.",
- "operationId": "licenses-get-for-repo",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/licenses/#get-the-contents-of-a-repositorys-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- },
- "license": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/license"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/licenses/get.json b/openapi/ghe-2.15/operations/licenses/get.json
deleted file mode 100644
index df5b01c75a..0000000000
--- a/openapi/ghe-2.15/operations/licenses/get.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get an individual license",
- "description": "",
- "operationId": "licenses-get",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/licenses/#get-an-individual-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "license",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "license parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "permissions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "conditions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "limitations": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "body": {
- "type": "string"
- },
- "featured": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/licenses/"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get({\n license: 'license'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/licenses/list-commonly-used.json b/openapi/ghe-2.15/operations/licenses/list-commonly-used.json
deleted file mode 100644
index 9363f7dddd..0000000000
--- a/openapi/ghe-2.15/operations/licenses/list-commonly-used.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "List commonly used licenses",
- "description": "",
- "operationId": "licenses-list-commonly-used",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/licenses/#list-commonly-used-licenses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/licenses"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-03-05",
- "note": "\"List all licenses\" renamed to \"List commonly used licenses\"",
- "meta": {
- "before": {
- "idName": "list"
- },
- "after": {
- "idName": "list-commonly-used"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/markdown/render-raw.json b/openapi/ghe-2.15/operations/markdown/render-raw.json
deleted file mode 100644
index ff9be8788e..0000000000
--- a/openapi/ghe-2.15/operations/markdown/render-raw.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Render a Markdown document in raw mode",
- "description": "You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.\n\n",
- "operationId": "markdown-render-raw",
- "tags": [
- "markdown"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/markdown/#render-a-markdown-document-in-raw-mode"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "content-type",
- "description": "Setting content-type header is required for this endpoint",
- "in": "header",
- "schema": {
- "type": "string",
- "enum": [
- "text/plain; charset=utf-8"
- ]
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string",
- "description": "data parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/markdown/raw \\\n -d '{\"data\":\"data\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.markdown.get({\n data: 'data'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "data"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/markdown/render.json b/openapi/ghe-2.15/operations/markdown/render.json
deleted file mode 100644
index 8612643bc8..0000000000
--- a/openapi/ghe-2.15/operations/markdown/render.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Render an arbitrary Markdown document",
- "description": "",
- "operationId": "markdown-render",
- "tags": [
- "markdown"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/markdown/#render-an-arbitrary-markdown-document"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "text": {
- "description": "The Markdown text to render in HTML. Markdown content must be 400 KB or less.",
- "type": "string"
- },
- "mode": {
- "description": "The rendering mode. Can be either: \n\\* `markdown` to render a document in plain Markdown, just like README.md files are rendered. \n\\* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests.",
- "type": "string",
- "enum": [
- "markdown",
- "gfm"
- ],
- "default": "markdown"
- },
- "context": {
- "description": "The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode.",
- "type": "string"
- }
- },
- "required": [
- "text"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/markdown \\\n -d '{\"text\":\"text\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.markdown.get({\n text: 'text'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/meta/get.json b/openapi/ghe-2.15/operations/meta/get.json
deleted file mode 100644
index 2bd9a41bd9..0000000000
--- a/openapi/ghe-2.15/operations/meta/get.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "summary": "Get",
- "description": "If you access this endpoint on your organization's [GitHub Enterprise](https://enterprise.github.com/) installation, this endpoint provides information about that installation.\n\n**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.15/v3/guides/replacing-github-services) to help you update your services to webhooks.",
- "operationId": "meta-get",
- "tags": [
- "meta"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/meta/#meta"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "verifiable_password_authentication": {
- "type": "boolean"
- },
- "installed_version": {
- "type": "string"
- },
- "github_services_sha": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/meta"
- },
- {
- "lang": "JS",
- "source": "octokit.meta.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/check-authorization.json b/openapi/ghe-2.15/operations/oauth_authorizations/check-authorization.json
deleted file mode 100644
index 17e75f568a..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/check-authorization.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Check an authorization",
- "description": "OAuth applications can use a special API method for checking OAuth token validity without running afoul of normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/enterprise/2.15/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
- "operationId": "oauth_authorizations-check-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#check-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/create-authorization.json b/openapi/ghe-2.15/operations/oauth_authorizations/create-authorization.json
deleted file mode 100644
index ba4a5a5e61..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/create-authorization.json
+++ /dev/null
@@ -1,143 +0,0 @@
-{
- "summary": "Create a new authorization",
- "description": "Creates OAuth tokens using [Basic Authentication](https://developer.github.com/enterprise/2.15/v3/auth#basic-authentication). If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.15/v3/auth/#working-with-two-factor-authentication).\"\n\nYou can use this endpoint to create multiple OAuth tokens instead of implementing the [web flow](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/authorizing-oauth-apps/).\n\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them.\n\nYou can also create tokens on GitHub from the [personal access tokens settings](https://github.com/settings/tokens) page. Read more about these tokens in [the GitHub Help documentation](https://help.github.com/articles/creating-an-access-token-for-command-line-use).",
- "operationId": "oauth_authorizations-create-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#create-a-new-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "client_id": {
- "description": "The 20 character OAuth app client key for which to create the token.",
- "type": "string"
- },
- "client_secret": {
- "description": "The 40 character OAuth app client secret for which to create the token.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "type": "string"
- }
- },
- "required": [
- "note"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations \\\n -d '{\"note\":\"note\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n note: 'note'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/delete-authorization.json b/openapi/ghe-2.15/operations/oauth_authorizations/delete-authorization.json
deleted file mode 100644
index 11dd2b6228..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/delete-authorization.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete an authorization",
- "description": "",
- "operationId": "oauth_authorizations-delete-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#delete-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/delete-grant.json b/openapi/ghe-2.15/operations/oauth_authorizations/delete-grant.json
deleted file mode 100644
index 5afc6c6430..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/delete-grant.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a grant",
- "description": "Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
- "operationId": "oauth_authorizations-delete-grant",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#delete-a-grant"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "grant_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "grant_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n grant_id: 'grant_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/get-authorization.json b/openapi/ghe-2.15/operations/oauth_authorizations/get-authorization.json
deleted file mode 100644
index 3fcebfdd49..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/get-authorization.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "summary": "Get a single authorization",
- "description": "",
- "operationId": "oauth_authorizations-get-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#get-a-single-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/get-grant.json b/openapi/ghe-2.15/operations/oauth_authorizations/get-grant.json
deleted file mode 100644
index 4326e7b0ae..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/get-grant.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "Get a single grant",
- "description": "",
- "operationId": "oauth_authorizations-get-grant",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#get-a-single-grant"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "grant_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "grant_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n grant_id: 'grant_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json b/openapi/ghe-2.15/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json
deleted file mode 100644
index 4ef944af94..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get-or-create an authorization for a specific app and fingerprint",
- "description": "This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.15/v3/auth/#working-with-two-factor-authentication).\"",
- "operationId": "oauth_authorizations-get-or-create-authorization-for-app-and-fingerprint",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "fingerprint",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "fingerprint parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "client_secret": {
- "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
- "type": "string"
- },
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- }
- },
- "required": [
- "client_secret"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/clients//:fingerprint \\\n -d '{\"client_secret\":\"client_secret\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n fingerprint: 'fingerprint',\n client_secret: 'client_secret'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2018-12-27",
- "note": "`idName` changed for \"Get-or-create an authorization for a specific app and fingerprint\". It now includes `-and-`",
- "meta": {
- "before": {
- "idName": "get-or-create-authorization-for-app-fingerprint"
- },
- "after": {
- "idName": "get-or-create-authorization-for-app-and-fingerprint"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/get-or-create-authorization-for-app.json b/openapi/ghe-2.15/operations/oauth_authorizations/get-or-create-authorization-for-app.json
deleted file mode 100644
index 4089a3ccb6..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/get-or-create-authorization-for-app.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Get-or-create an authorization for a specific app",
- "description": "Creates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.15/v3/auth/#working-with-two-factor-authentication).\"",
- "operationId": "oauth_authorizations-get-or-create-authorization-for-app",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "client_secret": {
- "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
- "type": "string"
- },
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint).",
- "type": "string"
- }
- },
- "required": [
- "client_secret"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/clients/ \\\n -d '{\"client_secret\":\"client_secret\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n client_secret: 'client_secret'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/list-authorizations.json b/openapi/ghe-2.15/operations/oauth_authorizations/list-authorizations.json
deleted file mode 100644
index ff0d004b6e..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/list-authorizations.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your authorizations",
- "description": "",
- "operationId": "oauth_authorizations-list-authorizations",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#list-your-authorizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/list-grants.json b/openapi/ghe-2.15/operations/oauth_authorizations/list-grants.json
deleted file mode 100644
index 38276577f1..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/list-grants.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your grants",
- "description": "You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `[\"repo\", \"user\"]`.",
- "operationId": "oauth_authorizations-list-grants",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#list-your-grants"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/reset-authorization.json b/openapi/ghe-2.15/operations/oauth_authorizations/reset-authorization.json
deleted file mode 100644
index af963a1d79..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/reset-authorization.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Reset an authorization",
- "description": "OAuth applications can use this API method to reset a valid OAuth token without end user involvement. Applications must save the \"token\" property in the response, because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/enterprise/2.15/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
- "operationId": "oauth_authorizations-reset-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#reset-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/revoke-authorization-for-application.json b/openapi/ghe-2.15/operations/oauth_authorizations/revoke-authorization-for-application.json
deleted file mode 100644
index cb111f3257..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/revoke-authorization-for-application.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Revoke an authorization for an application",
- "description": "OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/enterprise/2.15/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`.",
- "operationId": "oauth_authorizations-revoke-authorization-for-application",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#revoke-an-authorization-for-an-application"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/revoke-grant-for-application.json b/openapi/ghe-2.15/operations/oauth_authorizations/revoke-grant-for-application.json
deleted file mode 100644
index ba59de932c..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/revoke-grant-for-application.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Revoke a grant for an application",
- "description": "OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/enterprise/2.15/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted.\n\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
- "operationId": "oauth_authorizations-revoke-grant-for-application",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#revoke-a-grant-for-an-application"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//grants/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/oauth_authorizations/update-authorization.json b/openapi/ghe-2.15/operations/oauth_authorizations/update-authorization.json
deleted file mode 100644
index 72548b4c73..0000000000
--- a/openapi/ghe-2.15/operations/oauth_authorizations/update-authorization.json
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "summary": "Update an existing authorization",
- "description": "If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.15/v3/auth/#working-with-two-factor-authentication).\"\n\nYou can only send one of these scope keys at a time.",
- "operationId": "oauth_authorizations-update-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/oauth_authorizations/#update-an-existing-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "Replaces the authorization scopes with these.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "add_scopes": {
- "description": "A list of scopes to add to this authorization.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "remove_scopes": {
- "description": "A list of scopes to remove from this authorization.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/add-or-update-membership.json b/openapi/ghe-2.15/operations/orgs/add-or-update-membership.json
deleted file mode 100644
index f120677e59..0000000000
--- a/openapi/ghe-2.15/operations/orgs/add-or-update-membership.json
+++ /dev/null
@@ -1,202 +0,0 @@
-{
- "summary": "Add or update organization membership",
- "description": "Only authenticated organization owners can add a member to the organization or update the member's role.",
- "operationId": "orgs-add-or-update-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#add-or-update-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "role": {
- "description": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.",
- "type": "string",
- "enum": [
- "admin",
- "member"
- ],
- "default": "member"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/check-membership.json b/openapi/ghe-2.15/operations/orgs/check-membership.json
deleted file mode 100644
index e68cad8c81..0000000000
--- a/openapi/ghe-2.15/operations/orgs/check-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check membership",
- "description": "Check if a user is, publicly or privately, a member of the organization.",
- "operationId": "orgs-check-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#check-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/check-public-membership.json b/openapi/ghe-2.15/operations/orgs/check-public-membership.json
deleted file mode 100644
index cc7bc68480..0000000000
--- a/openapi/ghe-2.15/operations/orgs/check-public-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check public membership",
- "description": "",
- "operationId": "orgs-check-public-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#check-public-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/conceal-membership.json b/openapi/ghe-2.15/operations/orgs/conceal-membership.json
deleted file mode 100644
index d32afb0ab5..0000000000
--- a/openapi/ghe-2.15/operations/orgs/conceal-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Conceal a user's membership",
- "description": "",
- "operationId": "orgs-conceal-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#conceal-a-users-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/convert-member-to-outside-collaborator.json b/openapi/ghe-2.15/operations/orgs/convert-member-to-outside-collaborator.json
deleted file mode 100644
index d8b59a61ec..0000000000
--- a/openapi/ghe-2.15/operations/orgs/convert-member-to-outside-collaborator.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Convert member to outside collaborator",
- "description": "When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see \"[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\".",
- "operationId": "orgs-convert-member-to-outside-collaborator",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/create-hook.json b/openapi/ghe-2.15/operations/orgs/create-hook.json
deleted file mode 100644
index 29cca9b1bc..0000000000
--- a/openapi/ghe-2.15/operations/orgs/create-hook.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "summary": "Create a hook",
- "description": "Here's how you can create a hook that posts payloads in JSON format:",
- "operationId": "orgs-create-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/hooks/#create-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Must be passed as \"web\".",
- "type": "string"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.15/v3/orgs/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.15/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name",
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks \\\n -d '{\"name\":\"name\",\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n name: 'name',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/delete-hook.json b/openapi/ghe-2.15/operations/orgs/delete-hook.json
deleted file mode 100644
index a5674d3971..0000000000
--- a/openapi/ghe-2.15/operations/orgs/delete-hook.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a hook",
- "description": "",
- "operationId": "orgs-delete-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/hooks/#delete-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/get-hook.json b/openapi/ghe-2.15/operations/orgs/get-hook.json
deleted file mode 100644
index f4523f1498..0000000000
--- a/openapi/ghe-2.15/operations/orgs/get-hook.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
- "summary": "Get single hook",
- "description": "",
- "operationId": "orgs-get-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/hooks/#get-single-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/get-membership-for-authenticated-user.json b/openapi/ghe-2.15/operations/orgs/get-membership-for-authenticated-user.json
deleted file mode 100644
index e274576bc0..0000000000
--- a/openapi/ghe-2.15/operations/orgs/get-membership-for-authenticated-user.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "summary": "Get your organization membership",
- "description": "",
- "operationId": "orgs-get-membership-for-authenticated-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#get-your-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/get-membership.json b/openapi/ghe-2.15/operations/orgs/get-membership.json
deleted file mode 100644
index 21eda02aba..0000000000
--- a/openapi/ghe-2.15/operations/orgs/get-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get organization membership",
- "description": "In order to get a user's membership with an organization, the authenticated user must be an organization member.",
- "operationId": "orgs-get-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#get-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/get.json b/openapi/ghe-2.15/operations/orgs/get.json
deleted file mode 100644
index acab60b6a6..0000000000
--- a/openapi/ghe-2.15/operations/orgs/get.json
+++ /dev/null
@@ -1,180 +0,0 @@
-{
- "summary": "Get an organization",
- "description": "To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/).",
- "operationId": "orgs-get",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/#get-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "billing_email": {
- "type": "string"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- }
- }
- },
- "default_repository_settings": {
- "type": "string"
- },
- "members_can_create_repositories": {
- "type": "boolean"
- },
- "two_factor_requirement_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/list-for-authenticated-user.json b/openapi/ghe-2.15/operations/orgs/list-for-authenticated-user.json
deleted file mode 100644
index 05b0fdff21..0000000000
--- a/openapi/ghe-2.15/operations/orgs/list-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your organizations",
- "description": "List organizations for the authenticated user.\n\n**OAuth scope requirements**\n\nThis only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response.",
- "operationId": "orgs-list-for-authenticated-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/#list-your-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/list-for-user.json b/openapi/ghe-2.15/operations/orgs/list-for-user.json
deleted file mode 100644
index ddefd52ff1..0000000000
--- a/openapi/ghe-2.15/operations/orgs/list-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List user organizations",
- "description": "List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user.\n\nThis method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List your organizations](https://developer.github.com/enterprise/2.15/v3/orgs/#list-your-organizations) API instead.",
- "operationId": "orgs-list-for-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/#list-user-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/list-hooks.json b/openapi/ghe-2.15/operations/orgs/list-hooks.json
deleted file mode 100644
index 0b4e309ce4..0000000000
--- a/openapi/ghe-2.15/operations/orgs/list-hooks.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List hooks",
- "description": "",
- "operationId": "orgs-list-hooks",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/hooks/#list-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/list-members.json b/openapi/ghe-2.15/operations/orgs/list-members.json
deleted file mode 100644
index 101c9a30aa..0000000000
--- a/openapi/ghe-2.15/operations/orgs/list-members.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Members list",
- "description": "List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned.\n\n",
- "operationId": "orgs-list-members",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#members-list"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "2fa_disabled",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter members returned in the list. Can be one of: \n\\* `2fa_disabled` - Members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. Available for organization owners. \n\\* `all` - All members the authenticated user can see."
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "admin",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter members returned by their role. Can be one of: \n\\* `all` - All members of the organization, regardless of role. \n\\* `admin` - Organization owners. \n\\* `member` - Non-owner organization members."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/list-memberships.json b/openapi/ghe-2.15/operations/orgs/list-memberships.json
deleted file mode 100644
index 6fd38c0f23..0000000000
--- a/openapi/ghe-2.15/operations/orgs/list-memberships.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List your organization memberships",
- "description": "",
- "operationId": "orgs-list-memberships",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#list-your-organization-memberships"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "active",
- "pending"
- ]
- },
- "required": false,
- "description": "Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/list-outside-collaborators.json b/openapi/ghe-2.15/operations/orgs/list-outside-collaborators.json
deleted file mode 100644
index fce1d20e7d..0000000000
--- a/openapi/ghe-2.15/operations/orgs/list-outside-collaborators.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "List outside collaborators",
- "description": "List all users who are outside collaborators of an organization.\n\n",
- "operationId": "orgs-list-outside-collaborators",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/outside_collaborators/#list-outside-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "2fa_disabled",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter the list of outside collaborators. Can be one of: \n\\* `2fa_disabled`: Outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. \n\\* `all`: All outside collaborators."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/list-public-members.json b/openapi/ghe-2.15/operations/orgs/list-public-members.json
deleted file mode 100644
index 029d9e1f01..0000000000
--- a/openapi/ghe-2.15/operations/orgs/list-public-members.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Public members list",
- "description": "Members of an organization can choose to have their membership publicized or not.",
- "operationId": "orgs-list-public-members",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#public-members-list"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/list.json b/openapi/ghe-2.15/operations/orgs/list.json
deleted file mode 100644
index 0ecbd63a4c..0000000000
--- a/openapi/ghe-2.15/operations/orgs/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List all organizations",
- "description": "Lists all organizations, in the order that they were created on GitHub Enterprise.\n\n**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.15/v3/#link-header) to get the URL for the next page of organizations.",
- "operationId": "orgs-list",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/#list-all-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last Organization that you've seen."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/organizations"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/ping-hook.json b/openapi/ghe-2.15/operations/orgs/ping-hook.json
deleted file mode 100644
index b9ae459400..0000000000
--- a/openapi/ghe-2.15/operations/orgs/ping-hook.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Ping a hook",
- "description": "This will trigger a [ping event](https://developer.github.com/enterprise/2.15/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "orgs-ping-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/hooks/#ping-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id/pings"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/publicize-membership.json b/openapi/ghe-2.15/operations/orgs/publicize-membership.json
deleted file mode 100644
index 6fc1ba7361..0000000000
--- a/openapi/ghe-2.15/operations/orgs/publicize-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Publicize a user's membership",
- "description": "The user can publicize their own membership. (A user cannot publicize the membership for another user.)\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "orgs-publicize-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#publicize-a-users-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/remove-member.json b/openapi/ghe-2.15/operations/orgs/remove-member.json
deleted file mode 100644
index aabb364b0f..0000000000
--- a/openapi/ghe-2.15/operations/orgs/remove-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove a member",
- "description": "Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.",
- "operationId": "orgs-remove-member",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#remove-a-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/remove-membership.json b/openapi/ghe-2.15/operations/orgs/remove-membership.json
deleted file mode 100644
index 524d68327e..0000000000
--- a/openapi/ghe-2.15/operations/orgs/remove-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove organization membership",
- "description": "In order to remove a user's membership with an organization, the authenticated user must be an organization owner.\n\nIf the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases.",
- "operationId": "orgs-remove-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#remove-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/remove-outside-collaborator.json b/openapi/ghe-2.15/operations/orgs/remove-outside-collaborator.json
deleted file mode 100644
index 147bc45264..0000000000
--- a/openapi/ghe-2.15/operations/orgs/remove-outside-collaborator.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove outside collaborator",
- "description": "Removing a user from this list will remove them from all the organization's repositories.",
- "operationId": "orgs-remove-outside-collaborator",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/outside_collaborators/#remove-outside-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/update-hook.json b/openapi/ghe-2.15/operations/orgs/update-hook.json
deleted file mode 100644
index c99b35b1bb..0000000000
--- a/openapi/ghe-2.15/operations/orgs/update-hook.json
+++ /dev/null
@@ -1,159 +0,0 @@
-{
- "summary": "Edit a hook",
- "description": "",
- "operationId": "orgs-update-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/hooks/#edit-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.15/v3/orgs/hooks/#update-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.15/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/update-membership.json b/openapi/ghe-2.15/operations/orgs/update-membership.json
deleted file mode 100644
index e5a6e7491b..0000000000
--- a/openapi/ghe-2.15/operations/orgs/update-membership.json
+++ /dev/null
@@ -1,194 +0,0 @@
-{
- "summary": "Edit your organization membership",
- "description": "",
- "operationId": "orgs-update-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/members/#edit-your-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state that the membership should be in. Only `\"active\"` will be accepted.",
- "type": "string",
- "enum": [
- "active"
- ]
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs/ \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/orgs/update.json b/openapi/ghe-2.15/operations/orgs/update.json
deleted file mode 100644
index 24a944972c..0000000000
--- a/openapi/ghe-2.15/operations/orgs/update.json
+++ /dev/null
@@ -1,239 +0,0 @@
-{
- "summary": "Edit an organization",
- "description": "",
- "operationId": "orgs-update",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/orgs/#edit-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "billing_email": {
- "description": "Billing email address. This address is not publicized.",
- "type": "string"
- },
- "company": {
- "description": "The company name.",
- "type": "string"
- },
- "email": {
- "description": "The publicly visible email address.",
- "type": "string"
- },
- "location": {
- "description": "The location.",
- "type": "string"
- },
- "name": {
- "description": "The shorthand name of the company.",
- "type": "string"
- },
- "description": {
- "description": "The description of the company.",
- "type": "string"
- },
- "has_organization_projects": {
- "description": "Toggles whether organization projects are enabled for the organization.",
- "type": "boolean"
- },
- "has_repository_projects": {
- "description": "Toggles whether repository projects are enabled for repositories that belong to the organization.",
- "type": "boolean"
- },
- "default_repository_permission": {
- "description": "Default permission level members have for organization repositories: \n\\* `read` - can pull, but not push to or administer this repository. \n\\* `write` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push, and administer this repository. \n\\* `none` - no permissions granted by default.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin",
- "none"
- ],
- "default": "read"
- },
- "members_can_create_repositories": {
- "description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only admin members can create repositories.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "billing_email": {
- "type": "string"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- }
- }
- },
- "default_repository_settings": {
- "type": "string"
- },
- "members_can_create_repositories": {
- "type": "boolean"
- },
- "two_factor_requirement_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/add-collaborator.json b/openapi/ghe-2.15/operations/projects/add-collaborator.json
deleted file mode 100644
index 244b59100e..0000000000
--- a/openapi/ghe-2.15/operations/projects/add-collaborator.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "summary": "Add user as a collaborator",
- "description": "Adds a collaborator to a an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator.",
- "operationId": "projects-add-collaborator",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/collaborators/#add-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\" Can be one of: \n\\* `read` - can read, but not write to or administer this project. \n\\* `write` - can read and write, but not administer this project. \n\\* `admin` - can read, write and administer this project.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ],
- "default": "write"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/create-card.json b/openapi/ghe-2.15/operations/projects/create-card.json
deleted file mode 100644
index 347f911e5b..0000000000
--- a/openapi/ghe-2.15/operations/projects/create-card.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "summary": "Create a project card",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.15/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "projects-create-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/cards/#create-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "note": {
- "description": "The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`.",
- "type": "string"
- },
- "content_id": {
- "description": "The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/enterprise/2.15/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/enterprise/2.15/v3/pulls/#list-pull-requests) endpoints to find this id. \n**Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`.",
- "type": "integer"
- },
- "content_type": {
- "description": "**Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "archived": {
- "type": "boolean"
- },
- "column_url": {
- "type": "string"
- },
- "content_url": {
- "type": "string"
- },
- "project_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//cards"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/create-column.json b/openapi/ghe-2.15/operations/projects/create-column.json
deleted file mode 100644
index 323f17c39a..0000000000
--- a/openapi/ghe-2.15/operations/projects/create-column.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Create a project column",
- "description": "",
- "operationId": "projects-create-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/columns/#create-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the column.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//columns \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/create-for-org.json b/openapi/ghe-2.15/operations/projects/create-for-org.json
deleted file mode 100644
index 706c3472b3..0000000000
--- a/openapi/ghe-2.15/operations/projects/create-for-org.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Create an organization project",
- "description": "Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-create-for-org",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/#create-an-organization-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/orgs//projects \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/create-for-repo.json b/openapi/ghe-2.15/operations/projects/create-for-repo.json
deleted file mode 100644
index f0191701f4..0000000000
--- a/openapi/ghe-2.15/operations/projects/create-for-repo.json
+++ /dev/null
@@ -1,208 +0,0 @@
-{
- "summary": "Create a repository project",
- "description": "Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-create-for-repo",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/#create-a-repository-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/projects \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/delete-card.json b/openapi/ghe-2.15/operations/projects/delete-card.json
deleted file mode 100644
index 1691190f70..0000000000
--- a/openapi/ghe-2.15/operations/projects/delete-card.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project card",
- "description": "",
- "operationId": "projects-delete-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/cards/#delete-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/delete-column.json b/openapi/ghe-2.15/operations/projects/delete-column.json
deleted file mode 100644
index 9a0d51fe2e..0000000000
--- a/openapi/ghe-2.15/operations/projects/delete-column.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project column",
- "description": "",
- "operationId": "projects-delete-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/columns/#delete-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/delete.json b/openapi/ghe-2.15/operations/projects/delete.json
deleted file mode 100644
index 0b9406a821..0000000000
--- a/openapi/ghe-2.15/operations/projects/delete.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project",
- "description": "Deletes a project board. Returns a `404 Not Found` status if projects are disabled.",
- "operationId": "projects-delete",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/#delete-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/get-card.json b/openapi/ghe-2.15/operations/projects/get-card.json
deleted file mode 100644
index afc3c08c2a..0000000000
--- a/openapi/ghe-2.15/operations/projects/get-card.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Get a project card",
- "description": "",
- "operationId": "projects-get-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/cards/#get-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/get-column.json b/openapi/ghe-2.15/operations/projects/get-column.json
deleted file mode 100644
index db8cd21e5d..0000000000
--- a/openapi/ghe-2.15/operations/projects/get-column.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Get a project column",
- "description": "",
- "operationId": "projects-get-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/columns/#get-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/get.json b/openapi/ghe-2.15/operations/projects/get.json
deleted file mode 100644
index 3124f710ff..0000000000
--- a/openapi/ghe-2.15/operations/projects/get.json
+++ /dev/null
@@ -1,177 +0,0 @@
-{
- "summary": "Get a project",
- "description": "Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-get",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/#get-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/list-cards.json b/openapi/ghe-2.15/operations/projects/list-cards.json
deleted file mode 100644
index ed3f18ddc1..0000000000
--- a/openapi/ghe-2.15/operations/projects/list-cards.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List project cards",
- "description": "",
- "operationId": "projects-list-cards",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/cards/#list-project-cards"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- },
- {
- "name": "archived_state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "archived",
- "not_archived"
- ],
- "default": "not_archived"
- },
- "required": false,
- "description": "Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//cards"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/list-collaborators.json b/openapi/ghe-2.15/operations/projects/list-collaborators.json
deleted file mode 100644
index c3f90b3231..0000000000
--- a/openapi/ghe-2.15/operations/projects/list-collaborators.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List collaborators",
- "description": "Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators.",
- "operationId": "projects-list-collaborators",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/collaborators/#list-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "outside",
- "direct",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filters the collaborators by their affiliation. Can be one of: \n\\* `outside`: Outside collaborators of a project that are not a member of the project's organization. \n\\* `direct`: Collaborators with permissions to a project, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/list-columns.json b/openapi/ghe-2.15/operations/projects/list-columns.json
deleted file mode 100644
index 601f1ae258..0000000000
--- a/openapi/ghe-2.15/operations/projects/list-columns.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "List project columns",
- "description": "",
- "operationId": "projects-list-columns",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/columns/#list-project-columns"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//columns"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/list-for-org.json b/openapi/ghe-2.15/operations/projects/list-for-org.json
deleted file mode 100644
index 183a965c2f..0000000000
--- a/openapi/ghe-2.15/operations/projects/list-for-org.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List organization projects",
- "description": "Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.\n\ns",
- "operationId": "projects-list-for-org",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/#list-organization-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/orgs//projects"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/list-for-repo.json b/openapi/ghe-2.15/operations/projects/list-for-repo.json
deleted file mode 100644
index 99306c126f..0000000000
--- a/openapi/ghe-2.15/operations/projects/list-for-repo.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "List repository projects",
- "description": "Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-list-for-repo",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/#list-repository-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/projects"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/move-card.json b/openapi/ghe-2.15/operations/projects/move-card.json
deleted file mode 100644
index 0085b61fa9..0000000000
--- a/openapi/ghe-2.15/operations/projects/move-card.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Move a project card",
- "description": "",
- "operationId": "projects-move-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/cards/#move-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "position": {
- "description": "Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`.",
- "type": "string",
- "pattern": "^(top|bottom|after:\\d+)$"
- },
- "column_id": {
- "description": "The `id` value of a column in the same project.",
- "type": "integer"
- }
- },
- "required": [
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards//moves \\\n -d '{\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/move-column.json b/openapi/ghe-2.15/operations/projects/move-column.json
deleted file mode 100644
index 1c7c871e6e..0000000000
--- a/openapi/ghe-2.15/operations/projects/move-column.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Move a project column",
- "description": "",
- "operationId": "projects-move-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/columns/#move-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "position": {
- "description": "Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project.",
- "type": "string",
- "pattern": "^(first|last|after:\\d+)$"
- }
- },
- "required": [
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//moves \\\n -d '{\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/remove-collaborator.json b/openapi/ghe-2.15/operations/projects/remove-collaborator.json
deleted file mode 100644
index 0b561b1152..0000000000
--- a/openapi/ghe-2.15/operations/projects/remove-collaborator.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Remove user as a collaborator",
- "description": "Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator.",
- "operationId": "projects-remove-collaborator",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/collaborators/#remove-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/review-user-permission-level.json b/openapi/ghe-2.15/operations/projects/review-user-permission-level.json
deleted file mode 100644
index 829420386b..0000000000
--- a/openapi/ghe-2.15/operations/projects/review-user-permission-level.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "summary": "Review a user's permission level",
- "description": "Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level.",
- "operationId": "projects-review-user-permission-level",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/collaborators/#review-a-users-permission-level"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "permission": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username/permission"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/update-card.json b/openapi/ghe-2.15/operations/projects/update-card.json
deleted file mode 100644
index 87cb2281ce..0000000000
--- a/openapi/ghe-2.15/operations/projects/update-card.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Update a project card",
- "description": "",
- "operationId": "projects-update-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/cards/#update-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "note": {
- "description": "The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`.",
- "type": "string"
- },
- "archived": {
- "description": "Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/update-column.json b/openapi/ghe-2.15/operations/projects/update-column.json
deleted file mode 100644
index 015ce5fbb0..0000000000
--- a/openapi/ghe-2.15/operations/projects/update-column.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Update a project column",
- "description": "",
- "operationId": "projects-update-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/columns/#update-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new name of the column.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/ \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/projects/update.json b/openapi/ghe-2.15/operations/projects/update.json
deleted file mode 100644
index 9bcccda359..0000000000
--- a/openapi/ghe-2.15/operations/projects/update.json
+++ /dev/null
@@ -1,212 +0,0 @@
-{
- "summary": "Update a project",
- "description": "Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-update",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/projects/#update-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- },
- "state": {
- "description": "State of the project. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "organization_permission": {
- "description": "The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/enterprise/2.15/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/enterprise/2.15/v3/projects/collaborators/#add-user-as-a-collaborator). \n \n**Note:** Updating a project's `organization_permission` requires `admin` access to the project. \n \nCan be one of: \n\\* `read` - Organization members can read, but not write to or administer this project. \n\\* `write` - Organization members can read and write, but not administer this project. \n\\* `admin` - Organization members can read, write and administer this project. \n\\* `none` - Organization members can only see this project if it is public.",
- "type": "string"
- },
- "private": {
- "description": "Sets the visibility of a project board. Setting `private` is only available for organization projects. **Note:** Updating a project's visibility requires `admin` access to the project. \n \nCan be one of: \n\\* `false` - Anyone can see the project. \n\\* `true` - Organization members with the appropriate `organization_permission` can see project boards in an organization account.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/pulls/check-if-merged.json b/openapi/ghe-2.15/operations/pulls/check-if-merged.json
deleted file mode 100644
index dc727e64a5..0000000000
--- a/openapi/ghe-2.15/operations/pulls/check-if-merged.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Get if a pull request has been merged",
- "description": "",
- "operationId": "pulls-check-if-merged",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/#get-if-a-pull-request-has-been-merged"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/merge"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/create-comment-reply.json b/openapi/ghe-2.15/operations/pulls/create-comment-reply.json
deleted file mode 100644
index 196758f1ed..0000000000
--- a/openapi/ghe-2.15/operations/pulls/create-comment-reply.json
+++ /dev/null
@@ -1,248 +0,0 @@
-{
- "summary": "Create a comment reply",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.15/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.15/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-comment-reply",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- },
- "in_reply_to": {
- "description": "The comment ID to reply to. **Note**: This must be the ID of a _top-level comment_, not a reply to that comment. Replies to replies are not supported.",
- "type": "integer"
- }
- },
- "required": [
- "body",
- "in_reply_to"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments \\\n -d '{\"body\":\"body\",\"in_reply_to\":\"in_reply_to\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n body: 'body',\n in_reply_to: 'in_reply_to'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/create-comment.json b/openapi/ghe-2.15/operations/pulls/create-comment.json
deleted file mode 100644
index 429c2c15ea..0000000000
--- a/openapi/ghe-2.15/operations/pulls/create-comment.json
+++ /dev/null
@@ -1,258 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.15/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.15/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- },
- "commit_id": {
- "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "type": "string"
- },
- "path": {
- "description": "The relative path to the file that necessitates a comment.",
- "type": "string"
- },
- "position": {
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "type": "integer"
- }
- },
- "required": [
- "body",
- "commit_id",
- "path",
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments \\\n -d '{\"body\":\"body\",\"commit_id\":\"commit_id\",\"path\":\"path\",\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n body: 'body',\n commit_id: 'commit_id',\n path: 'path',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/create-from-issue.json b/openapi/ghe-2.15/operations/pulls/create-from-issue.json
deleted file mode 100644
index d55a72dca1..0000000000
--- a/openapi/ghe-2.15/operations/pulls/create-from-issue.json
+++ /dev/null
@@ -1,1528 +0,0 @@
-{
- "summary": "Create a Pull Request from an Issue",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create-from-issue",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/#create-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "issue": {
- "description": "The issue number in this repository to turn into a Pull Request.",
- "type": "integer"
- },
- "head": {
- "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "type": "string"
- },
- "base": {
- "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- },
- "required": [
- "issue",
- "head",
- "base"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls \\\n -d '{\"issue\":\"issue\",\"head\":\"head\",\"base\":\"base\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue: 'issue',\n head: 'head',\n base: 'base'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/pulls/create-review-request.json b/openapi/ghe-2.15/operations/pulls/create-review-request.json
deleted file mode 100644
index 2d40984262..0000000000
--- a/openapi/ghe-2.15/operations/pulls/create-review-request.json
+++ /dev/null
@@ -1,1468 +0,0 @@
-{
- "summary": "Create a review request",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create-review-request",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/review_requests/#create-a-review-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reviewers": {
- "description": "An array of user `login`s that will be requested.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "team_reviewers": {
- "description": "An array of team `slug`s that will be requested.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/create-review.json b/openapi/ghe-2.15/operations/pulls/create-review.json
deleted file mode 100644
index 2ebd19b098..0000000000
--- a/openapi/ghe-2.15/operations/pulls/create-review.json
+++ /dev/null
@@ -1,244 +0,0 @@
-{
- "summary": "Create a pull request review",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.15/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.15/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/reviews/#create-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "commit_id": {
- "description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "type": "string"
- },
- "body": {
- "description": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "type": "string"
- },
- "event": {
- "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/enterprise/2.15/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready.",
- "type": "string",
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- },
- "comments": {
- "description": "Use the following table to specify the location, destination, and contents of the draft review comment.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The relative path to the file that necessitates a review comment.",
- "type": "string"
- },
- "position": {
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "type": "integer"
- },
- "body": {
- "description": "Text of the review comment.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "position",
- "body"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews \\\n -d '{\"comments[].path\":\"comments[].path\",\"comments[].position\":\"comments[].position\",\"comments[].body\":\"comments[].body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n 'comments[].path': 'comments[].path',\n 'comments[].position': 'comments[].position',\n 'comments[].body': 'comments[].body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/create.json b/openapi/ghe-2.15/operations/pulls/create.json
deleted file mode 100644
index 839ef488d7..0000000000
--- a/openapi/ghe-2.15/operations/pulls/create.json
+++ /dev/null
@@ -1,1532 +0,0 @@
-{
- "summary": "Create a pull request",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/#create-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the pull request.",
- "type": "string"
- },
- "head": {
- "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "type": "string"
- },
- "base": {
- "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the pull request.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- },
- "required": [
- "title",
- "head",
- "base"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls \\\n -d '{\"title\":\"title\",\"head\":\"head\",\"base\":\"base\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title',\n head: 'head',\n base: 'base'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/pulls/delete-comment.json b/openapi/ghe-2.15/operations/pulls/delete-comment.json
deleted file mode 100644
index 306ef760a6..0000000000
--- a/openapi/ghe-2.15/operations/pulls/delete-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "pulls-delete-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/pulls/delete-pending-review.json b/openapi/ghe-2.15/operations/pulls/delete-pending-review.json
deleted file mode 100644
index fdbc780040..0000000000
--- a/openapi/ghe-2.15/operations/pulls/delete-pending-review.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Delete a pending review",
- "description": "",
- "operationId": "pulls-delete-pending-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/reviews/#delete-a-pending-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/delete-review-request.json b/openapi/ghe-2.15/operations/pulls/delete-review-request.json
deleted file mode 100644
index c1f8dd5a9c..0000000000
--- a/openapi/ghe-2.15/operations/pulls/delete-review-request.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "summary": "Delete a review request",
- "description": "",
- "operationId": "pulls-delete-review-request",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/review_requests/#delete-a-review-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reviewers": {
- "description": "An array of user `login`s that will be removed.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "team_reviewers": {
- "description": "An array of team `slug`s that will be removed.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/dismiss-review.json b/openapi/ghe-2.15/operations/pulls/dismiss-review.json
deleted file mode 100644
index 5cf7ee0fff..0000000000
--- a/openapi/ghe-2.15/operations/pulls/dismiss-review.json
+++ /dev/null
@@ -1,217 +0,0 @@
-{
- "summary": "Dismiss a pull request review",
- "description": "**Note:** To dismiss a pull request review on a [protected branch](https://developer.github.com/enterprise/2.15/v3/repos/branches/), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.",
- "operationId": "pulls-dismiss-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/reviews/#dismiss-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The message for the pull request review dismissal",
- "type": "string"
- }
- },
- "required": [
- "message"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/dismissals \\\n -d '{\"message\":\"message\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id',\n message: 'message'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/get-comment.json b/openapi/ghe-2.15/operations/pulls/get-comment.json
deleted file mode 100644
index 4e92e7f793..0000000000
--- a/openapi/ghe-2.15/operations/pulls/get-comment.json
+++ /dev/null
@@ -1,215 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "pulls-get-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/pulls/get-comments-for-review.json b/openapi/ghe-2.15/operations/pulls/get-comments-for-review.json
deleted file mode 100644
index 50357f1287..0000000000
--- a/openapi/ghe-2.15/operations/pulls/get-comments-for-review.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "Get comments for a single review",
- "description": "",
- "operationId": "pulls-get-comments-for-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/reviews/#get-comments-for-a-single-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/get-review.json b/openapi/ghe-2.15/operations/pulls/get-review.json
deleted file mode 100644
index d3e860316a..0000000000
--- a/openapi/ghe-2.15/operations/pulls/get-review.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Get a single review",
- "description": "",
- "operationId": "pulls-get-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/reviews/#get-a-single-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/get.json b/openapi/ghe-2.15/operations/pulls/get.json
deleted file mode 100644
index 753478f8b3..0000000000
--- a/openapi/ghe-2.15/operations/pulls/get.json
+++ /dev/null
@@ -1,1515 +0,0 @@
-{
- "summary": "Get a single pull request",
- "description": "Lists details of a pull request by providing its number.\n\nWhen you get, [create](https://developer.github.com/enterprise/2.15/v3/pulls/#create-a-pull-request), or [edit](https://developer.github.com/enterprise/2.15/v3/pulls/#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see \"[Checking mergeability of pull requests](https://developer.github.com/enterprise/2.15/v3/git/#checking-mergeability-of-pull-requests)\".\n\nThe value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit.\n\nThe value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request:\n\n* If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit.\n* If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch.\n* If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to.\n\nPass the appropriate [media type](https://developer.github.com/enterprise/2.15/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.",
- "operationId": "pulls-get",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/#get-a-single-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/list-comments-for-repo.json b/openapi/ghe-2.15/operations/pulls/list-comments-for-repo.json
deleted file mode 100644
index 7bfb50b82e..0000000000
--- a/openapi/ghe-2.15/operations/pulls/list-comments-for-repo.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "summary": "List comments in a repository",
- "description": "By default, review comments are ordered by ascending ID.",
- "operationId": "pulls-list-comments-for-repo",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/comments/#list-comments-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Can be either `created` or `updated` comments."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/pulls/list-comments.json b/openapi/ghe-2.15/operations/pulls/list-comments.json
deleted file mode 100644
index 169fa84c1b..0000000000
--- a/openapi/ghe-2.15/operations/pulls/list-comments.json
+++ /dev/null
@@ -1,142 +0,0 @@
-{
- "summary": "List comments on a pull request",
- "description": "By default, review comments are ordered by ascending ID.",
- "operationId": "pulls-list-comments",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/comments/#list-comments-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Can be either `created` or `updated` comments."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/list-commits.json b/openapi/ghe-2.15/operations/pulls/list-commits.json
deleted file mode 100644
index 9cfd61b5bf..0000000000
--- a/openapi/ghe-2.15/operations/pulls/list-commits.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List commits on a pull request",
- "description": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [Commit List API](https://developer.github.com/enterprise/2.15/v3/repos/commits/#list-commits-on-a-repository).",
- "operationId": "pulls-list-commits",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/#list-commits-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/list-files.json b/openapi/ghe-2.15/operations/pulls/list-files.json
deleted file mode 100644
index 15107736e3..0000000000
--- a/openapi/ghe-2.15/operations/pulls/list-files.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List pull requests files",
- "description": "**Note:** The response includes a maximum of 300 files.",
- "operationId": "pulls-list-files",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/#list-pull-requests-files"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/files"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/list-review-requests.json b/openapi/ghe-2.15/operations/pulls/list-review-requests.json
deleted file mode 100644
index 89ec9c1751..0000000000
--- a/openapi/ghe-2.15/operations/pulls/list-review-requests.json
+++ /dev/null
@@ -1,212 +0,0 @@
-{
- "summary": "List review requests",
- "description": "",
- "operationId": "pulls-list-review-requests",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/review_requests/#list-review-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/list-reviews.json b/openapi/ghe-2.15/operations/pulls/list-reviews.json
deleted file mode 100644
index 4528e6a768..0000000000
--- a/openapi/ghe-2.15/operations/pulls/list-reviews.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List reviews on a pull request",
- "description": "The list of reviews returns in chronological order.",
- "operationId": "pulls-list-reviews",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/reviews/#list-reviews-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/list.json b/openapi/ghe-2.15/operations/pulls/list.json
deleted file mode 100644
index 3f7b0ba4cc..0000000000
--- a/openapi/ghe-2.15/operations/pulls/list.json
+++ /dev/null
@@ -1,149 +0,0 @@
-{
- "summary": "List pull requests",
- "description": "",
- "operationId": "pulls-list",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/#list-pull-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Either `open`, `closed`, or `all` to filter by state."
- },
- {
- "name": "head",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`."
- },
- {
- "name": "base",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter pulls by base branch name. Example: `gh-pages`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "popularity",
- "long-running"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/pulls/merge.json b/openapi/ghe-2.15/operations/pulls/merge.json
deleted file mode 100644
index 6cacdd8dce..0000000000
--- a/openapi/ghe-2.15/operations/pulls/merge.json
+++ /dev/null
@@ -1,113 +0,0 @@
-{
- "summary": "Merge a pull request (Merge Button)",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-merge",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/#merge-a-pull-request-merge-button"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "commit_title": {
- "description": "Title for the automatic commit message.",
- "type": "string"
- },
- "commit_message": {
- "description": "Extra detail to append to automatic commit message.",
- "type": "string"
- },
- "sha": {
- "description": "SHA that pull request head must match to allow merge.",
- "type": "string"
- },
- "merge_method": {
- "description": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "type": "string",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/merge"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/submit-review.json b/openapi/ghe-2.15/operations/pulls/submit-review.json
deleted file mode 100644
index 01adbef813..0000000000
--- a/openapi/ghe-2.15/operations/pulls/submit-review.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Submit a pull request review",
- "description": "",
- "operationId": "pulls-submit-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/reviews/#submit-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The body text of the pull request review",
- "type": "string"
- },
- "event": {
- "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "type": "string",
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- }
- },
- "required": [
- "event"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/events \\\n -d '{\"event\":\"event\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id',\n event: 'event'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/pulls/update-comment.json b/openapi/ghe-2.15/operations/pulls/update-comment.json
deleted file mode 100644
index e2bdf6f3a1..0000000000
--- a/openapi/ghe-2.15/operations/pulls/update-comment.json
+++ /dev/null
@@ -1,233 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "pulls-update-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/pulls/update.json b/openapi/ghe-2.15/operations/pulls/update.json
deleted file mode 100644
index 10466058fd..0000000000
--- a/openapi/ghe-2.15/operations/pulls/update.json
+++ /dev/null
@@ -1,1550 +0,0 @@
-{
- "summary": "Update a pull request",
- "description": "",
- "operationId": "pulls-update",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/pulls/#update-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the pull request.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the pull request.",
- "type": "string"
- },
- "state": {
- "description": "State of this Pull Request. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "base": {
- "description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/rate_limit/get.json b/openapi/ghe-2.15/operations/rate_limit/get.json
deleted file mode 100644
index e76d2f51ba..0000000000
--- a/openapi/ghe-2.15/operations/rate_limit/get.json
+++ /dev/null
@@ -1,113 +0,0 @@
-{
- "summary": "Get your current rate limit status",
- "description": "**Note:** Accessing this endpoint does not count against your REST API rate limit.\n\n**Understanding your rate limit status**\n\nThe Search API has a [custom rate limit](https://developer.github.com/enterprise/2.15/v3/search/#rate-limit), separate from the rate limit governing the rest of the REST API. The GraphQL API also has a [custom rate limit](https://developer.github.com/enterprise/2.15/v4/guides/resource-limitations/#rate-limit) that is separate from and calculated differently than rate limits in the REST API.\n\nFor these reasons, the Rate Limit API response categorizes your rate limit. Under `resources`, you'll see three objects:\n\n* The `core` object provides your rate limit status for all non-search-related resources in the REST API.\n* The `search` object provides your rate limit status for the [Search API](https://developer.github.com/enterprise/2.15/v3/search/).\n* The `graphql` object provides your rate limit status for the [GraphQL API](https://developer.github.com/enterprise/2.15/v4/).\n\nFor more information on the headers and values in the rate limit response, see \"[Rate limiting](https://developer.github.com/enterprise/2.15/v3/#rate-limiting).\"\n\nThe `rate` object (shown at the bottom of the response above) is deprecated.\n\nIf you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object.",
- "operationId": "rate_limit-get",
- "tags": [
- "rate_limit"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/rate_limit/#get-your-current-rate-limit-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "resources": {
- "type": "object",
- "properties": {
- "core": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- },
- "search": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- },
- "graphql": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- }
- }
- },
- "rate": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/rate_limit"
- },
- {
- "lang": "JS",
- "source": "octokit.rate_limit.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/create-for-commit-comment.json b/openapi/ghe-2.15/operations/reactions/create-for-commit-comment.json
deleted file mode 100644
index 07bc95fe90..0000000000
--- a/openapi/ghe-2.15/operations/reactions/create-for-commit-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a commit comment",
- "description": "Create a reaction to a [commit comment](https://developer.github.com/enterprise/2.15/v3/repos/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment.",
- "operationId": "reactions-create-for-commit-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#create-reaction-for-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types) to add to the commit comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/create-for-issue-comment.json b/openapi/ghe-2.15/operations/reactions/create-for-issue-comment.json
deleted file mode 100644
index ba72e62425..0000000000
--- a/openapi/ghe-2.15/operations/reactions/create-for-issue-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for an issue comment",
- "description": "Create a reaction to an [issue comment](https://developer.github.com/enterprise/2.15/v3/issues/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment.",
- "operationId": "reactions-create-for-issue-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#create-reaction-for-an-issue-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types) to add to the issue comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/create-for-issue.json b/openapi/ghe-2.15/operations/reactions/create-for-issue.json
deleted file mode 100644
index f0b7f558e9..0000000000
--- a/openapi/ghe-2.15/operations/reactions/create-for-issue.json
+++ /dev/null
@@ -1,189 +0,0 @@
-{
- "summary": "Create reaction for an issue",
- "description": "Create a reaction to an [issue](https://developer.github.com/enterprise/2.15/v3/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue.",
- "operationId": "reactions-create-for-issue",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#create-reaction-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types) to add to the issue.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/reactions/create-for-pull-request-review-comment.json b/openapi/ghe-2.15/operations/reactions/create-for-pull-request-review-comment.json
deleted file mode 100644
index 5c8889ab1d..0000000000
--- a/openapi/ghe-2.15/operations/reactions/create-for-pull-request-review-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a pull request review comment",
- "description": "Create a reaction to a [pull request review comment](https://developer.github.com/enterprise/2.15/v3/pulls/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment.",
- "operationId": "reactions-create-for-pull-request-review-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#create-reaction-for-a-pull-request-review-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types) to add to the pull request review comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/create-for-team-discussion-comment.json b/openapi/ghe-2.15/operations/reactions/create-for-team-discussion-comment.json
deleted file mode 100644
index 3823ffba4b..0000000000
--- a/openapi/ghe-2.15/operations/reactions/create-for-team-discussion-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a team discussion comment",
- "description": "Create a reaction to a [team discussion comment](https://developer.github.com/enterprise/2.15/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment.",
- "operationId": "reactions-create-for-team-discussion-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#create-reaction-for-a-team-discussion-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types) to add to the team discussion comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/create-for-team-discussion.json b/openapi/ghe-2.15/operations/reactions/create-for-team-discussion.json
deleted file mode 100644
index fbf8f3c2bc..0000000000
--- a/openapi/ghe-2.15/operations/reactions/create-for-team-discussion.json
+++ /dev/null
@@ -1,170 +0,0 @@
-{
- "summary": "Create reaction for a team discussion",
- "description": "Create a reaction to a [team discussion](https://developer.github.com/enterprise/2.15/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion.",
- "operationId": "reactions-create-for-team-discussion",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#create-reaction-for-a-team-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types) to add to the team discussion.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/delete.json b/openapi/ghe-2.15/operations/reactions/delete.json
deleted file mode 100644
index c02b3627c4..0000000000
--- a/openapi/ghe-2.15/operations/reactions/delete.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a reaction",
- "description": "OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/enterprise/2.15/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/enterprise/2.15/v3/teams/discussion_comments/).",
- "operationId": "reactions-delete",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#delete-a-reaction"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "reaction_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "reaction_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/reactions/"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n reaction_id: 'reaction_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/list-for-commit-comment.json b/openapi/ghe-2.15/operations/reactions/list-for-commit-comment.json
deleted file mode 100644
index 6bdb0c806b..0000000000
--- a/openapi/ghe-2.15/operations/reactions/list-for-commit-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a commit comment",
- "description": "List the reactions to a [commit comment](https://developer.github.com/enterprise/2.15/v3/repos/comments/).",
- "operationId": "reactions-list-for-commit-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#list-reactions-for-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/list-for-issue-comment.json b/openapi/ghe-2.15/operations/reactions/list-for-issue-comment.json
deleted file mode 100644
index 77101757d2..0000000000
--- a/openapi/ghe-2.15/operations/reactions/list-for-issue-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for an issue comment",
- "description": "List the reactions to an [issue comment](https://developer.github.com/enterprise/2.15/v3/issues/comments/).",
- "operationId": "reactions-list-for-issue-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#list-reactions-for-an-issue-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/list-for-issue.json b/openapi/ghe-2.15/operations/reactions/list-for-issue.json
deleted file mode 100644
index 34178a6469..0000000000
--- a/openapi/ghe-2.15/operations/reactions/list-for-issue.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "summary": "List reactions for an issue",
- "description": "List the reactions to an [issue](https://developer.github.com/enterprise/2.15/v3/issues/).",
- "operationId": "reactions-list-for-issue",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#list-reactions-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/reactions/list-for-pull-request-review-comment.json b/openapi/ghe-2.15/operations/reactions/list-for-pull-request-review-comment.json
deleted file mode 100644
index 5271bf3d09..0000000000
--- a/openapi/ghe-2.15/operations/reactions/list-for-pull-request-review-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a pull request review comment",
- "description": "List the reactions to a [pull request review comment](https://developer.github.com/enterprise/2.15/v3/pulls/comments/).",
- "operationId": "reactions-list-for-pull-request-review-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#list-reactions-for-a-pull-request-review-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/list-for-team-discussion-comment.json b/openapi/ghe-2.15/operations/reactions/list-for-team-discussion-comment.json
deleted file mode 100644
index 117eaed0a6..0000000000
--- a/openapi/ghe-2.15/operations/reactions/list-for-team-discussion-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a team discussion comment",
- "description": "List the reactions to a [team discussion comment](https://developer.github.com/enterprise/2.15/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "reactions-list-for-team-discussion-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#list-reactions-for-a-team-discussion-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/reactions/list-for-team-discussion.json b/openapi/ghe-2.15/operations/reactions/list-for-team-discussion.json
deleted file mode 100644
index beaeba4c9d..0000000000
--- a/openapi/ghe-2.15/operations/reactions/list-for-team-discussion.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List reactions for a team discussion",
- "description": "List the reactions to a [team discussion](https://developer.github.com/enterprise/2.15/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "reactions-list-for-team-discussion",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/reactions/#list-reactions-for-a-team-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.15/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/accept-invitation.json b/openapi/ghe-2.15/operations/repos/accept-invitation.json
deleted file mode 100644
index eda5c3cc77..0000000000
--- a/openapi/ghe-2.15/operations/repos/accept-invitation.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Accept a repository invitation",
- "description": "",
- "operationId": "repos-accept-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/invitations/#accept-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations/"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/add-collaborator.json b/openapi/ghe-2.15/operations/repos/add-collaborator.json
deleted file mode 100644
index 1cbd18ba60..0000000000
--- a/openapi/ghe-2.15/operations/repos/add-collaborator.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "Add user as a collaborator",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "repos-add-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/collaborators/#add-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: \n\\* `pull` - can pull, but not push to or administer this repository. \n\\* `push` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push and administer this repository.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "push"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/add-deploy-key.json b/openapi/ghe-2.15/operations/repos/add-deploy-key.json
deleted file mode 100644
index 33c119e297..0000000000
--- a/openapi/ghe-2.15/operations/repos/add-deploy-key.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "summary": "Add a new deploy key",
- "description": "Here's how you can create a read-only deploy key:\n\n",
- "operationId": "repos-add-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/keys/#add-a-new-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "A name for the key.",
- "type": "string"
- },
- "key": {
- "description": "The contents of the key.",
- "type": "string"
- },
- "read_only": {
- "description": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/).\"",
- "type": "boolean"
- }
- },
- "required": [
- "key"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys \\\n -d '{\"key\":\"key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key: 'key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/add-protected-branch-admin-enforcement.json b/openapi/ghe-2.15/operations/repos/add-protected-branch-admin-enforcement.json
deleted file mode 100644
index 249eed808d..0000000000
--- a/openapi/ghe-2.15/operations/repos/add-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Add admin enforcement of protected branch",
- "description": "Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-add-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#add-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/add-protected-branch-required-signatures.json b/openapi/ghe-2.15/operations/repos/add-protected-branch-required-signatures.json
deleted file mode 100644
index 97c0c65981..0000000000
--- a/openapi/ghe-2.15/operations/repos/add-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "summary": "Add required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits.",
- "operationId": "repos-add-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#add-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/add-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.15/operations/repos/add-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 216a380cad..0000000000
--- a/openapi/ghe-2.15/operations/repos/add-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-add-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/add-protected-branch-team-restrictions.json b/openapi/ghe-2.15/operations/repos/add-protected-branch-team-restrictions.json
deleted file mode 100644
index 9361efb6a0..0000000000
--- a/openapi/ghe-2.15/operations/repos/add-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add team restrictions of protected branch",
- "description": "Grants the specified teams push access for this branch. If you pass the `hellcat-preview` media type, you can also give push access to child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-add-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#add-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/add-protected-branch-user-restrictions.json b/openapi/ghe-2.15/operations/repos/add-protected-branch-user-restrictions.json
deleted file mode 100644
index cb0d059f9d..0000000000
--- a/openapi/ghe-2.15/operations/repos/add-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add user restrictions of protected branch",
- "description": "Grants the specified people push access for this branch.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-add-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#add-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/check-collaborator.json b/openapi/ghe-2.15/operations/repos/check-collaborator.json
deleted file mode 100644
index e9c5c38811..0000000000
--- a/openapi/ghe-2.15/operations/repos/check-collaborator.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check if a user is a collaborator",
- "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
- "operationId": "repos-check-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/collaborators/#check-if-a-user-is-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/compare-commits.json b/openapi/ghe-2.15/operations/repos/compare-commits.json
deleted file mode 100644
index ede036f45f..0000000000
--- a/openapi/ghe-2.15/operations/repos/compare-commits.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Compare two commits",
- "description": "Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`.\n\nThe response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://developer.github.com/enterprise/2.15/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.\n\nThe response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.\n\n**Working with large comparisons**\n\nThe response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [Commit List API](https://developer.github.com/enterprise/2.15/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the range.\n\nFor comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long to generate. You can typically resolve this error by using a smaller commit range.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "repos-compare-commits",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/commits/#compare-two-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "base",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "base parameter"
- },
- {
- "name": "head",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "head parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/compare/:base...:head"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n base: 'base',\n head: 'head'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-commit-comment.json b/openapi/ghe-2.15/operations/repos/create-commit-comment.json
deleted file mode 100644
index 6b521f805e..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-commit-comment.json
+++ /dev/null
@@ -1,211 +0,0 @@
-{
- "summary": "Create a commit comment",
- "description": "Create a comment for a commit using its `:commit_sha`.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "repos-create-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/comments/#create-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- },
- "path": {
- "description": "Relative path of the file to comment on.",
- "type": "string"
- },
- "position": {
- "description": "Line index in the diff to comment on.",
- "type": "integer"
- },
- "line": {
- "description": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
- "type": "integer"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-06-07",
- "note": "\"sha\" parameter renamed to \"commit_sha\"",
- "meta": {
- "before": "sha",
- "after": "commit_sha"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-deployment-status.json b/openapi/ghe-2.15/operations/repos/create-deployment-status.json
deleted file mode 100644
index 6d0d7c6651..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-deployment-status.json
+++ /dev/null
@@ -1,224 +0,0 @@
-{
- "summary": "Create a deployment status",
- "description": "Users with `push` access can create deployment statuses for a given deployment.\n\nGitHub Apps require `read & write` access to \"Deployments\" and `read-only` access to \"Repo contents\" (for private repos). OAuth Apps require the `repo_deployment` scope.",
- "operationId": "repos-create-deployment-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/deployments/#create-a-deployment-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state of the status. Can be one of `error`, `failure`, `inactive`, `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/enterprise/2.15/v3/previews/#enhanced-deployments) custom media type.",
- "type": "string",
- "enum": [
- "error",
- "failure",
- "inactive",
- "pending",
- "success"
- ]
- },
- "target_url": {
- "description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "type": "string",
- "default": ""
- },
- "log_url": {
- "description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "type": "string",
- "default": ""
- },
- "description": {
- "description": "A short description of the status. The maximum description length is 140 characters.",
- "type": "string",
- "default": ""
- },
- "environment_url": {
- "description": "Sets the URL for accessing your environment.",
- "type": "string",
- "default": ""
- },
- "auto_inactive": {
- "description": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "deployment_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "environment_url": {
- "type": "string"
- },
- "log_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-deployment.json b/openapi/ghe-2.15/operations/repos/create-deployment.json
deleted file mode 100644
index 6bb8955bf2..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-deployment.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Create a deployment",
- "description": "Deployments offer a few configurable parameters with sane defaults.\n\nThe `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them before we merge a pull request.\n\nThe `environment` parameter allows deployments to be issued to different runtime environments. Teams often have multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter makes it easier to track which environments have requested deployments. The default environment is `production`.\n\nThe `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will return a failure response.\n\nBy default, [commit statuses](https://developer.github.com/enterprise/2.15/v3/repos/statuses) for every submitted context must be in a `success` state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do not require any contexts or create any commit statuses, the deployment will always succeed.\n\nThe `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text field that will be passed on when a deployment event is dispatched.\n\nThe `task` parameter is used by the deployment system to allow different execution paths. In the web world this might be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an application with debugging enabled.\n\nUsers with `repo` or `repo_deployment` scopes can create a deployment for a given ref:\n\nA simple example putting the user and room into the payload to notify back to chat networks.\n\nA more advanced example specifying required commit statuses and bypassing auto-merging.\n\nYou will see this response when GitHub automatically merges the base branch into the topic branch instead of creating a deployment. This auto-merge happens when:\n\n* Auto-merge option is enabled in the repository\n* Topic branch does not include the latest changes on the base branch, which is `master`in the response example\n* There are no merge conflicts\n\nIf there are no new commits in the base branch, a new request to create a deployment should give a successful response.\n\nThis error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts.\n\nThis error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`.",
- "operationId": "repos-create-deployment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/deployments/#create-a-deployment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ref": {
- "description": "The ref to deploy. This can be a branch, tag, or SHA.",
- "type": "string"
- },
- "task": {
- "description": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
- "type": "string",
- "default": "deploy"
- },
- "auto_merge": {
- "description": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.",
- "type": "boolean",
- "default": true
- },
- "required_contexts": {
- "description": "The [status](https://developer.github.com/enterprise/2.15/v3/repos/statuses/) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "payload": {
- "description": "JSON payload with extra information about the deployment.",
- "type": "string",
- "default": ""
- },
- "environment": {
- "description": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
- "type": "string",
- "default": "production"
- },
- "description": {
- "description": "Short description of the deployment.",
- "type": "string",
- "default": ""
- },
- "transient_environment": {
- "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future.",
- "type": "boolean",
- "default": false
- },
- "production_environment": {
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
- "type": "boolean"
- }
- },
- "required": [
- "ref"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments \\\n -d '{\"ref\":\"ref\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-for-authenticated-user.json b/openapi/ghe-2.15/operations/repos/create-for-authenticated-user.json
deleted file mode 100644
index 7a8b137936..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-for-authenticated-user.json
+++ /dev/null
@@ -1,428 +0,0 @@
-{
- "summary": "Create a new repository for the authenticated user",
- "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/enterprise/2.15/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/enterprise/2.15/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
- "operationId": "repos-create-for-authenticated-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#create"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "team_id": {
- "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "type": "integer"
- },
- "auto_init": {
- "description": "Pass `true` to create an initial commit with empty README.",
- "type": "boolean",
- "default": false
- },
- "gitignore_template": {
- "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "type": "string"
- },
- "license_template": {
- "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repos \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-fork.json b/openapi/ghe-2.15/operations/repos/create-fork.json
deleted file mode 100644
index 7450b7c6b2..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-fork.json
+++ /dev/null
@@ -1,383 +0,0 @@
-{
- "summary": "Create a fork",
- "description": "Create a fork for the authenticated user.\n\n**Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Enterprise Support](https://enterprise.github.com/support).",
- "operationId": "repos-create-fork",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/forks/#create-a-fork"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "organization": {
- "description": "Optional parameter to specify the organization name if forking into an organization.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/forks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-hook.json b/openapi/ghe-2.15/operations/repos/create-hook.json
deleted file mode 100644
index 9bb46db0d9..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-hook.json
+++ /dev/null
@@ -1,190 +0,0 @@
-{
- "summary": "Create a hook",
- "description": "Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can share the same `config` as long as those webhooks do not have any `events` that overlap.\n\n**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.15/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nHere's how you can create a hook that posts payloads in JSON format:",
- "operationId": "repos-create-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/hooks/#create-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Use `web` to create a webhook. To create a GitHub Service, use the name of a valid service. You can use [/hooks](https://api.github.com/hooks) for the list of valid service names. **Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install GitHub Services. Please see the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.15/v3/guides/replacing-github-services) for details.",
- "type": "string",
- "default": "web"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.15/v3/repos/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.15/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks \\\n -d '{\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-in-org.json b/openapi/ghe-2.15/operations/repos/create-in-org.json
deleted file mode 100644
index 913bb83e4d..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-in-org.json
+++ /dev/null
@@ -1,437 +0,0 @@
-{
- "summary": "Create a new repository in this organization",
- "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/enterprise/2.15/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/enterprise/2.15/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
- "operationId": "repos-create-in-org",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#create"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "team_id": {
- "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "type": "integer"
- },
- "auto_init": {
- "description": "Pass `true` to create an initial commit with empty README.",
- "type": "boolean",
- "default": false
- },
- "gitignore_template": {
- "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "type": "string"
- },
- "license_template": {
- "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//repos \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-or-update-file.json b/openapi/ghe-2.15/operations/repos/create-or-update-file.json
deleted file mode 100644
index 1460ad0fb6..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-or-update-file.json
+++ /dev/null
@@ -1,299 +0,0 @@
-{
- "summary": "Create or update a file",
- "description": "Creates a new file or updates an existing file in a repository.",
- "operationId": "repos-create-or-update-file",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/contents/#create-or-update-a-file"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message.",
- "type": "string"
- },
- "content": {
- "description": "The new file content, using Base64 encoding.",
- "type": "string"
- },
- "sha": {
- "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "type": "string"
- },
- "branch": {
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
- "type": "string"
- },
- "committer": {
- "description": "The person that committed the file. Default: the authenticated user.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- },
- "email": {
- "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "email"
- ]
- },
- "author": {
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- },
- "email": {
- "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "email"
- ]
- }
- },
- "required": [
- "message",
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path \\\n -d '{\"message\":\"message\",\"content\":\"content\",\"committer.name\":\"committer.name\",\"committer.email\":\"committer.email\",\"author.name\":\"author.name\",\"author.email\":\"author.email\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path',\n message: 'message',\n content: 'content',\n 'committer.name': 'committer.name',\n 'committer.email': 'committer.email',\n 'author.name': 'author.name',\n 'author.email': 'author.email'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-06-07",
- "note": "\"Create a file\" replaced by \"Create or update a file\"",
- "meta": {
- "before": {
- "idName": "create-file"
- },
- "after": {
- "idName": "create-or-update-file"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-release.json b/openapi/ghe-2.15/operations/repos/create-release.json
deleted file mode 100644
index 826620df45..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-release.json
+++ /dev/null
@@ -1,221 +0,0 @@
-{
- "summary": "Create a release",
- "description": "Users with push access to the repository can create a release.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "repos-create-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#create-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string"
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "type": "string"
- },
- "name": {
- "description": "The name of the release.",
- "type": "string"
- },
- "body": {
- "description": "Text describing the contents of the tag.",
- "type": "string"
- },
- "draft": {
- "description": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "type": "boolean",
- "default": false
- },
- "prerelease": {
- "description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "tag_name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {}
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases \\\n -d '{\"tag_name\":\"tag_name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag_name: 'tag_name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/create-status.json b/openapi/ghe-2.15/operations/repos/create-status.json
deleted file mode 100644
index 67aa5de7f8..0000000000
--- a/openapi/ghe-2.15/operations/repos/create-status.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "summary": "Create a status",
- "description": "Users with push access in a repository can create commit statuses for a given SHA.\n\nNote: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error.",
- "operationId": "repos-create-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/statuses/#create-a-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "sha parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state of the status. Can be one of `error`, `failure`, `pending`, or `success`.",
- "type": "string",
- "enum": [
- "error",
- "failure",
- "pending",
- "success"
- ]
- },
- "target_url": {
- "description": "The target URL to associate with this status. This URL will be linked from the GitHub Enterprise UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
- "type": "string"
- },
- "description": {
- "description": "A short description of the status.",
- "type": "string"
- },
- "context": {
- "description": "A string label to differentiate this status from the status of other systems.",
- "type": "string",
- "default": "default"
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "context": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/statuses/:sha \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n sha: 'sha',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/decline-invitation.json b/openapi/ghe-2.15/operations/repos/decline-invitation.json
deleted file mode 100644
index f04726ecf7..0000000000
--- a/openapi/ghe-2.15/operations/repos/decline-invitation.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Decline a repository invitation",
- "description": "",
- "operationId": "repos-decline-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/invitations/#decline-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations/"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/delete-commit-comment.json b/openapi/ghe-2.15/operations/repos/delete-commit-comment.json
deleted file mode 100644
index cfce0be7b9..0000000000
--- a/openapi/ghe-2.15/operations/repos/delete-commit-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a commit comment",
- "description": "",
- "operationId": "repos-delete-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/comments/#delete-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/delete-download.json b/openapi/ghe-2.15/operations/repos/delete-download.json
deleted file mode 100644
index 5fbc6917be..0000000000
--- a/openapi/ghe-2.15/operations/repos/delete-download.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a download",
- "description": "",
- "operationId": "repos-delete-download",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/downloads/#delete-a-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "download_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "download_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads/:download_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 'download_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/delete-file.json b/openapi/ghe-2.15/operations/repos/delete-file.json
deleted file mode 100644
index 281251e2e1..0000000000
--- a/openapi/ghe-2.15/operations/repos/delete-file.json
+++ /dev/null
@@ -1,230 +0,0 @@
-{
- "summary": "Delete a file",
- "description": "Deletes a file in a repository.\n\nYou can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.",
- "operationId": "repos-delete-file",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/contents/#delete-a-file"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message.",
- "type": "string"
- },
- "sha": {
- "description": "The blob SHA of the file being replaced.",
- "type": "string"
- },
- "branch": {
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
- "type": "string"
- },
- "committer": {
- "description": "object containing information about the committer.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- }
- }
- },
- "author": {
- "description": "object containing information about the author.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- }
- }
- }
- },
- "required": [
- "message",
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path \\\n -d '{\"message\":\"message\",\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path',\n message: 'message',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/delete-hook.json b/openapi/ghe-2.15/operations/repos/delete-hook.json
deleted file mode 100644
index 9958537835..0000000000
--- a/openapi/ghe-2.15/operations/repos/delete-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a hook",
- "description": "",
- "operationId": "repos-delete-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/hooks/#delete-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/delete-invitation.json b/openapi/ghe-2.15/operations/repos/delete-invitation.json
deleted file mode 100644
index 7a3302030b..0000000000
--- a/openapi/ghe-2.15/operations/repos/delete-invitation.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a repository invitation",
- "description": "",
- "operationId": "repos-delete-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/invitations/#delete-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations/:invitation_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/delete-release-asset.json b/openapi/ghe-2.15/operations/repos/delete-release-asset.json
deleted file mode 100644
index cb0bb0112b..0000000000
--- a/openapi/ghe-2.15/operations/repos/delete-release-asset.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a release asset",
- "description": "",
- "operationId": "repos-delete-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#delete-a-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/delete-release.json b/openapi/ghe-2.15/operations/repos/delete-release.json
deleted file mode 100644
index 87169d850e..0000000000
--- a/openapi/ghe-2.15/operations/repos/delete-release.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a release",
- "description": "Users with push access to the repository can delete a release.",
- "operationId": "repos-delete-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#delete-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/delete.json b/openapi/ghe-2.15/operations/repos/delete.json
deleted file mode 100644
index 071ed27bf8..0000000000
--- a/openapi/ghe-2.15/operations/repos/delete.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a repository",
- "description": "Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.\n\nIf an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:\n\nIf a site admin has configured the enterprise appliance to prevent users from deleting organization-owned repositories, a user will get this response:",
- "operationId": "repos-delete",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#delete-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-archive-link.json b/openapi/ghe-2.15/operations/repos/get-archive-link.json
deleted file mode 100644
index 30f79a43e5..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-archive-link.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Get archive link",
- "description": "Gets a redirect URL to download an archive for a repository. The `:archive_format` can be either `tarball` or `zipball`. The `:ref` must be a valid Git reference. If you omit `:ref`, the repository’s default branch (usually `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request.\n\n_Note_: For private repositories, these links are temporary and expire after five minutes.\n\nTo follow redirects with curl, use the `-L` switch:\n\n",
- "operationId": "repos-get-archive-link",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/contents/#get-archive-link"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "archive_format",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "archive_format parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "302": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/:archive_format/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n archive_format: 'archive_format',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-branch-protection.json b/openapi/ghe-2.15/operations/repos/get-branch-protection.json
deleted file mode 100644
index 96b126bc08..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-branch-protection.json
+++ /dev/null
@@ -1,364 +0,0 @@
-{
- "summary": "Get branch protection",
- "description": "",
- "operationId": "repos-get-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#get-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- },
- "enforce_admins": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "required_pull_request_reviews": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- },
- "restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-branch.json b/openapi/ghe-2.15/operations/repos/get-branch.json
deleted file mode 100644
index 3ea602c49a..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-branch.json
+++ /dev/null
@@ -1,260 +0,0 @@
-{
- "summary": "Get branch",
- "description": "",
- "operationId": "repos-get-branch",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#get-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- },
- "author": {
- "type": "object",
- "properties": {
- "gravatar_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "login": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "sha",
- "url"
- ]
- }
- },
- "url": {
- "type": "string"
- },
- "committer": {
- "type": "object",
- "properties": {
- "gravatar_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "login": {
- "type": "string"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "string"
- },
- "self": {
- "type": "string"
- }
- }
- },
- "protected": {
- "type": "boolean"
- },
- "protection": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "enforcement_level": {
- "type": "string"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "protection_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-code-frequency-stats.json b/openapi/ghe-2.15/operations/repos/get-code-frequency-stats.json
deleted file mode 100644
index d1790155df..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-code-frequency-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the number of additions and deletions per week",
- "description": "Returns a weekly aggregate of the number of additions and deletions pushed to a repository.\n\n",
- "operationId": "repos-get-code-frequency-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/code_frequency"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-collaborator-permission-level.json b/openapi/ghe-2.15/operations/repos/get-collaborator-permission-level.json
deleted file mode 100644
index 6b47843857..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-collaborator-permission-level.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Review a user's permission level",
- "description": "Possible values for the `permission` key: `admin`, `write`, `read`, `none`.",
- "operationId": "repos-get-collaborator-permission-level",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/collaborators/#review-a-users-permission-level"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username/permission"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-combined-status-for-ref.json b/openapi/ghe-2.15/operations/repos/get-combined-status-for-ref.json
deleted file mode 100644
index 8130a7fc91..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-combined-status-for-ref.json
+++ /dev/null
@@ -1,346 +0,0 @@
-{
- "summary": "Get the combined status for a specific ref",
- "description": "Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.\n\nThe most recent status for each context is returned, up to 100. This field [paginates](https://developer.github.com/enterprise/2.15/v3/#pagination) if there are over 100 contexts.\n\nAdditionally, a combined `state` is returned. The `state` is one of:\n\n* **failure** if any of the contexts report as `error` or `failure`\n* **pending** if there are no statuses or a context is `pending`\n* **success** if the latest status for all contexts is `success`",
- "operationId": "repos-get-combined-status-for-ref",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "state": {
- "type": "string"
- },
- "statuses": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "context": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "url",
- "avatar_url",
- "id",
- "node_id",
- "state",
- "description",
- "target_url",
- "context",
- "created_at",
- "updated_at"
- ]
- }
- },
- "sha": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "commit_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/status"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-commit-activity-stats.json b/openapi/ghe-2.15/operations/repos/get-commit-activity-stats.json
deleted file mode 100644
index e63b2ff8b1..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-commit-activity-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the last year of commit activity data",
- "description": "Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`.\n\n",
- "operationId": "repos-get-commit-activity-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/statistics/#get-the-last-year-of-commit-activity-data"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/commit_activity"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-commit-comment.json b/openapi/ghe-2.15/operations/repos/get-commit-comment.json
deleted file mode 100644
index a1450b3010..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-commit-comment.json
+++ /dev/null
@@ -1,171 +0,0 @@
-{
- "summary": "Get a single commit comment",
- "description": "",
- "operationId": "repos-get-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/comments/#get-a-single-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-commit.json b/openapi/ghe-2.15/operations/repos/get-commit.json
deleted file mode 100644
index 760f3a0830..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-commit.json
+++ /dev/null
@@ -1,361 +0,0 @@
-{
- "summary": "Get a single commit",
- "description": "Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.\n\nYou can pass the appropriate [media type](https://developer.github.com/enterprise/2.15/v3/media/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.\n\nTo return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://developer.github.com/enterprise/2.15/v3/media/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |\n\n",
- "operationId": "repos-get-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/commits/#get-a-single-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "comment_count": {
- "type": "number"
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "stats": {
- "type": "object",
- "properties": {
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "files": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changes": {
- "type": "number"
- },
- "status": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "blob_url": {
- "type": "string"
- },
- "patch": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"sha\" parameter renamed to \"ref\"",
- "meta": {
- "before": "sha",
- "after": "commit_sha"
- }
- },
- {
- "type": "parameter",
- "date": "2019-06-21",
- "note": "\"commit_sha\" parameter renamed to \"ref\"",
- "meta": {
- "before": "commit_sha",
- "after": "ref"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-contents.json b/openapi/ghe-2.15/operations/repos/get-contents.json
deleted file mode 100644
index cdf179d862..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-contents.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Get contents",
- "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit `:path`, you will receive the contents of all files in the repository.\n\nFiles and symlinks support [a custom media type](https://developer.github.com/enterprise/2.15/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML (when supported). All content types support [a custom media type](https://developer.github.com/enterprise/2.15/v3/repos/contents/#custom-media-types) to ensure the content is returned in a consistent object format.\n\n**Note**:\n\n* To get a repository's contents recursively, you can [recursively get the tree](https://developer.github.com/enterprise/2.15/v3/git/trees/).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees API](https://developer.github.com/enterprise/2.15/v3/git/trees/#get-a-tree).\n* This API supports files up to 1 megabyte in size.\n\nThe response will be an array of objects, one object for each item in the directory.\n\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value _should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as \"submodule\".\n\nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](https://developer.github.com/enterprise/2.15/v3/repos/contents/#response-if-content-is-a-file)).\n\nOtherwise, the API responds with an object describing the symlink itself:\n\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the github.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
- "operationId": "repos-get-contents",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/contents/#get-contents"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-contributors-stats.json b/openapi/ghe-2.15/operations/repos/get-contributors-stats.json
deleted file mode 100644
index 66cd9e251e..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-contributors-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get contributors list with additions, deletions, and commit counts",
- "description": "* `total` - The Total number of commits authored by the contributor.\n\nWeekly Hash (`weeks` array):\n\n* `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).\n* `a` - Number of additions\n* `d` - Number of deletions\n* `c` - Number of commits\n\n",
- "operationId": "repos-get-contributors-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/contributors"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-deploy-key.json b/openapi/ghe-2.15/operations/repos/get-deploy-key.json
deleted file mode 100644
index 58bf61eecb..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-deploy-key.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "summary": "Get a deploy key",
- "description": "",
- "operationId": "repos-get-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/keys/#get-a-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys/:key_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-deployment-status.json b/openapi/ghe-2.15/operations/repos/get-deployment-status.json
deleted file mode 100644
index 1620a745b2..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-deployment-status.json
+++ /dev/null
@@ -1,183 +0,0 @@
-{
- "summary": "Get a single deployment status",
- "description": "Users with pull access can view a deployment status for a deployment:",
- "operationId": "repos-get-deployment-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/deployments/#get-a-single-deployment-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- },
- {
- "name": "status_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "status_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "deployment_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "environment_url": {
- "type": "string"
- },
- "log_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses/:status_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id',\n status_id: 'status_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-deployment.json b/openapi/ghe-2.15/operations/repos/get-deployment.json
deleted file mode 100644
index 75610e5807..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-deployment.json
+++ /dev/null
@@ -1,188 +0,0 @@
-{
- "summary": "Get a single deployment",
- "description": "",
- "operationId": "repos-get-deployment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/deployments/#get-a-single-deployment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "task": {
- "type": "string"
- },
- "payload": {
- "type": "object",
- "properties": {
- "deploy": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "transient_environment": {
- "type": "boolean"
- },
- "production_environment": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-download.json b/openapi/ghe-2.15/operations/repos/get-download.json
deleted file mode 100644
index af57725083..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-download.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "Get a single download",
- "description": "",
- "operationId": "repos-get-download",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/downloads/#get-a-single-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "download_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "download_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "content_type": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads/:download_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 'download_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-hook.json b/openapi/ghe-2.15/operations/repos/get-hook.json
deleted file mode 100644
index 0827e72bca..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-hook.json
+++ /dev/null
@@ -1,140 +0,0 @@
-{
- "summary": "Get single hook",
- "description": "",
- "operationId": "repos-get-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/hooks/#get-single-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-latest-pages-build.json b/openapi/ghe-2.15/operations/repos/get-latest-pages-build.json
deleted file mode 100644
index 1d4ed193ae..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-latest-pages-build.json
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "summary": "Get latest Pages build",
- "description": "",
- "operationId": "repos-get-latest-pages-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/pages/#get-latest-pages-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "error": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- }
- }
- },
- "pusher": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "commit": {
- "type": "string"
- },
- "duration": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-latest-release.json b/openapi/ghe-2.15/operations/repos/get-latest-release.json
deleted file mode 100644
index 3fb37b413a..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-latest-release.json
+++ /dev/null
@@ -1,280 +0,0 @@
-{
- "summary": "Get the latest release",
- "description": "View the latest published full release for the repository.\n\nThe latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published.",
- "operationId": "repos-get-latest-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#get-the-latest-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-pages-build.json b/openapi/ghe-2.15/operations/repos/get-pages-build.json
deleted file mode 100644
index 3af15998c1..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-pages-build.json
+++ /dev/null
@@ -1,164 +0,0 @@
-{
- "summary": "Get a specific Pages build",
- "description": "",
- "operationId": "repos-get-pages-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/pages/#get-a-specific-pages-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "build_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "build_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "error": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- }
- }
- },
- "pusher": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "commit": {
- "type": "string"
- },
- "duration": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds/:build_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n build_id: 'build_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-pages.json b/openapi/ghe-2.15/operations/repos/get-pages.json
deleted file mode 100644
index 8a7c204001..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-pages.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "Get information about a Pages site",
- "description": "",
- "operationId": "repos-get-pages",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/pages/#get-information-about-a-pages-site"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "cname": {
- "type": "string"
- },
- "custom_404": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "source": {
- "type": "object",
- "properties": {
- "branch": {
- "type": "string"
- },
- "directory": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-participation-stats.json b/openapi/ghe-2.15/operations/repos/get-participation-stats.json
deleted file mode 100644
index dd1b5f5180..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-participation-stats.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get the weekly commit count for the repository owner and everyone else",
- "description": "Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`.\n\nThe array order is oldest week (index 0) to most recent week.\n\n",
- "operationId": "repos-get-participation-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "all": {
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- "owner": {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/participation"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-protected-branch-admin-enforcement.json b/openapi/ghe-2.15/operations/repos/get-protected-branch-admin-enforcement.json
deleted file mode 100644
index 090e290b93..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get admin enforcement of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#get-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.15/operations/repos/get-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index cc9960fa26..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get pull request review enforcement of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-protected-branch-required-signatures.json b/openapi/ghe-2.15/operations/repos/get-protected-branch-required-signatures.json
deleted file mode 100644
index 50d12e64fa..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "summary": "Get required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help.\n\n**Note**: You must enable branch protection to require signed commits.",
- "operationId": "repos-get-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#get-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-protected-branch-required-status-checks.json b/openapi/ghe-2.15/operations/repos/get-protected-branch-required-status-checks.json
deleted file mode 100644
index 45b84165c8..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Get required status checks of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#get-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-protected-branch-restrictions.json b/openapi/ghe-2.15/operations/repos/get-protected-branch-restrictions.json
deleted file mode 100644
index f937ce9117..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-protected-branch-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get restrictions of protected branch",
- "description": "**Note**: Teams and users `restrictions` are only available for organization-owned repositories.",
- "operationId": "repos-get-protected-branch-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#get-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-punch-card-stats.json b/openapi/ghe-2.15/operations/repos/get-punch-card-stats.json
deleted file mode 100644
index 09f91850a3..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-punch-card-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the number of commits per hour in each day",
- "description": "Each array contains the day number, hour number, and number of commits:\n\n* `0-6`: Sunday - Saturday\n* `0-23`: Hour of day\n* Number of commits\n\nFor example, `[2, 14, 25]` indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.",
- "operationId": "repos-get-punch-card-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/punch_card"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-readme.json b/openapi/ghe-2.15/operations/repos/get-readme.json
deleted file mode 100644
index 304d493547..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-readme.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "summary": "Get the README",
- "description": "Gets the preferred README for a repository.\n\nREADMEs support [custom media types](https://developer.github.com/enterprise/2.15/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML.",
- "operationId": "repos-get-readme",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/contents/#get-the-readme"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": "string"
- },
- "self": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/readme"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-release-asset.json b/openapi/ghe-2.15/operations/repos/get-release-asset.json
deleted file mode 100644
index c4e7419ea3..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-release-asset.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "summary": "Get a single release asset",
- "description": "To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://developer.github.com/enterprise/2.15/v3/media/#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.",
- "operationId": "repos-get-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#get-a-single-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-release-by-tag.json b/openapi/ghe-2.15/operations/repos/get-release-by-tag.json
deleted file mode 100644
index c88dfa1d99..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-release-by-tag.json
+++ /dev/null
@@ -1,289 +0,0 @@
-{
- "summary": "Get a release by tag name",
- "description": "Get a published release with the specified tag.",
- "operationId": "repos-get-release-by-tag",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#get-a-release-by-tag-name"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tag",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tag parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/tags/:tag"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag: 'tag'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get-release.json b/openapi/ghe-2.15/operations/repos/get-release.json
deleted file mode 100644
index 18c21e1c4a..0000000000
--- a/openapi/ghe-2.15/operations/repos/get-release.json
+++ /dev/null
@@ -1,289 +0,0 @@
-{
- "summary": "Get a single release",
- "description": "**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://developer.github.com/enterprise/2.15/v3/#hypermedia).",
- "operationId": "repos-get-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#get-a-single-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/get.json b/openapi/ghe-2.15/operations/repos/get.json
deleted file mode 100644
index b2014b32c5..0000000000
--- a/openapi/ghe-2.15/operations/repos/get.json
+++ /dev/null
@@ -1,1050 +0,0 @@
-{
- "summary": "Get",
- "description": "The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.",
- "operationId": "repos-get",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#get"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- },
- "license": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parent": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- }
- }
- },
- "source": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-assets-for-release.json b/openapi/ghe-2.15/operations/repos/list-assets-for-release.json
deleted file mode 100644
index cc3ecf03a0..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-assets-for-release.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List assets for a release",
- "description": "",
- "operationId": "repos-list-assets-for-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#list-assets-for-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id/assets"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-branches.json b/openapi/ghe-2.15/operations/repos/list-branches.json
deleted file mode 100644
index 0823bf8949..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-branches.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List branches",
- "description": "",
- "operationId": "repos-list-branches",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#list-branches"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "protected",
- "in": "query",
- "schema": {
- "type": "boolean"
- },
- "required": false,
- "description": "Setting to `true` returns only protected branches, and each branch in the response includes the `protected` and `protection` keys. Omitting this parameter returns all branches, and protected branches do not contain the `protected` and `protection` keys."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-collaborators.json b/openapi/ghe-2.15/operations/repos/list-collaborators.json
deleted file mode 100644
index b4de58beaf..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-collaborators.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List collaborators",
- "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
- "operationId": "repos-list-collaborators",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/collaborators/#list-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "outside",
- "direct",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter collaborators returned by their affiliation. Can be one of: \n\\* `outside`: All outside collaborators of an organization-owned repository. \n\\* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-comments-for-commit.json b/openapi/ghe-2.15/operations/repos/list-comments-for-commit.json
deleted file mode 100644
index 1f8faa8e6e..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-comments-for-commit.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List comments for a single commit",
- "description": "Use the `:commit_sha` to specify the commit that will have its comments listed.",
- "operationId": "repos-list-comments-for-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/comments/#list-comments-for-a-single-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-06-07",
- "note": "\"ref\" parameter renamed to \"commit_sha\"",
- "meta": {
- "before": "ref",
- "after": "commit_sha"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-commit-comments.json b/openapi/ghe-2.15/operations/repos/list-commit-comments.json
deleted file mode 100644
index 6e7b4df55f..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-commit-comments.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List commit comments for a repository",
- "description": "Commit Comments use [these custom media types](https://developer.github.com/enterprise/2.15/v3/repos/comments/#custom-media-types). You can read more about the use of media types in the API [here](https://developer.github.com/enterprise/2.15/v3/media/).\n\nComments are ordered by ascending ID.",
- "operationId": "repos-list-commit-comments",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/comments/#list-commit-comments-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-commits.json b/openapi/ghe-2.15/operations/repos/list-commits.json
deleted file mode 100644
index 5a44db2580..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-commits.json
+++ /dev/null
@@ -1,132 +0,0 @@
-{
- "summary": "List commits on a repository",
- "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "repos-list-commits",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/commits/#list-commits-on-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`)."
- },
- {
- "name": "path",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits containing this file path will be returned."
- },
- {
- "name": "author",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "GitHub login or email address by which to filter by commit author."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits after this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "until",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-contributors.json b/openapi/ghe-2.15/operations/repos/list-contributors.json
deleted file mode 100644
index f66bc2fbfb..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-contributors.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "List contributors",
- "description": "Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance.\n\nGitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information.",
- "operationId": "repos-list-contributors",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#list-contributors"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "anon",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Set to `1` or `true` to include anonymous contributors in results."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contributors"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-deploy-keys.json b/openapi/ghe-2.15/operations/repos/list-deploy-keys.json
deleted file mode 100644
index abf16452cc..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-deploy-keys.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List deploy keys",
- "description": "",
- "operationId": "repos-list-deploy-keys",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/keys/#list-deploy-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-deployment-statuses.json b/openapi/ghe-2.15/operations/repos/list-deployment-statuses.json
deleted file mode 100644
index 4f232f18c4..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-deployment-statuses.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List deployment statuses",
- "description": "Users with pull access can view deployment statuses for a deployment:",
- "operationId": "repos-list-deployment-statuses",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/deployments/#list-deployment-statuses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-deployments.json b/openapi/ghe-2.15/operations/repos/list-deployments.json
deleted file mode 100644
index ecd94aebd9..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-deployments.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "summary": "List deployments",
- "description": "Simple filtering of deployments is available via query parameters:",
- "operationId": "repos-list-deployments",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/deployments/#list-deployments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The SHA recorded at creation time."
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the ref. This can be a branch, tag, or SHA."
- },
- {
- "name": "task",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`)."
- },
- {
- "name": "environment",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the environment that was deployed to (e.g., `staging` or `production`)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-downloads.json b/openapi/ghe-2.15/operations/repos/list-downloads.json
deleted file mode 100644
index 48d92f224d..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-downloads.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List downloads for a repository",
- "description": "",
- "operationId": "repos-list-downloads",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/downloads/#list-downloads-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-for-org.json b/openapi/ghe-2.15/operations/repos/list-for-org.json
deleted file mode 100644
index 3cc3742568..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-for-org.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List organization repositories",
- "description": "List repositories for the specified org.",
- "operationId": "repos-list-for-org",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#list-organization-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "public",
- "private",
- "forks",
- "sources",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-for-user.json b/openapi/ghe-2.15/operations/repos/list-for-user.json
deleted file mode 100644
index 69a3875eca..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-for-user.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "summary": "List user repositories",
- "description": "List public repositories for the specified user.",
- "operationId": "repos-list-for-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#list-user-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "member"
- ],
- "default": "owner"
- },
- "required": false,
- "description": "Can be one of `all`, `owner`, `member`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- },
- "required": false,
- "description": "Can be one of `created`, `updated`, `pushed`, `full_name`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-forks.json b/openapi/ghe-2.15/operations/repos/list-forks.json
deleted file mode 100644
index c6710924c1..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-forks.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List forks",
- "description": "",
- "operationId": "repos-list-forks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/forks/#list-forks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "newest",
- "oldest",
- "stargazers"
- ],
- "default": "newest"
- },
- "required": false,
- "description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/forks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-hooks.json b/openapi/ghe-2.15/operations/repos/list-hooks.json
deleted file mode 100644
index 3ac880657c..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-hooks.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List hooks",
- "description": "",
- "operationId": "repos-list-hooks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/hooks/#list-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-invitations-for-authenticated-user.json b/openapi/ghe-2.15/operations/repos/list-invitations-for-authenticated-user.json
deleted file mode 100644
index 41baf943ec..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-invitations-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List a user's repository invitations",
- "description": "When authenticating as a user, this endpoint will list all currently open repository invitations for that user.\n\n",
- "operationId": "repos-list-invitations-for-authenticated-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/invitations/#list-a-users-repository-invitations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-invitations.json b/openapi/ghe-2.15/operations/repos/list-invitations.json
deleted file mode 100644
index 85d4094bef..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-invitations.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List invitations for a repository",
- "description": "When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations.\n\n",
- "operationId": "repos-list-invitations",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/invitations/#list-invitations-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-languages.json b/openapi/ghe-2.15/operations/repos/list-languages.json
deleted file mode 100644
index 8efa24e323..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-languages.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "List languages",
- "description": "Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language.",
- "operationId": "repos-list-languages",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#list-languages"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "C": {
- "type": "number"
- },
- "Python": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/languages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-pages-builds.json b/openapi/ghe-2.15/operations/repos/list-pages-builds.json
deleted file mode 100644
index 1dda8a10f7..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-pages-builds.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List Pages builds",
- "description": "",
- "operationId": "repos-list-pages-builds",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/pages/#list-pages-builds"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.15/operations/repos/list-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index ef2a7c0df0..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "List required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-list-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-protected-branch-team-restrictions.json b/openapi/ghe-2.15/operations/repos/list-protected-branch-team-restrictions.json
deleted file mode 100644
index 95be8877cd..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "List team restrictions of protected branch",
- "description": "Lists the teams who have push access to this branch. If you pass the `hellcat-preview` media type, the list includes child teams.",
- "operationId": "repos-list-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#list-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-protected-branch-user-restrictions.json b/openapi/ghe-2.15/operations/repos/list-protected-branch-user-restrictions.json
deleted file mode 100644
index 2b5734985c..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "List user restrictions of protected branch",
- "description": "Lists the people who have push access to this branch.",
- "operationId": "repos-list-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#list-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-public.json b/openapi/ghe-2.15/operations/repos/list-public.json
deleted file mode 100644
index 74a4525dbc..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-public.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "summary": "List all public repositories",
- "description": "This provides a dump of every public repository, in the order that they were created.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.15/v3/#link-header) to get the URL for the next page of repositories.\n\nIf you are an [authenticated](https://developer.github.com/enterprise/2.15/v3/#authentication) site administrator for your Enterprise appliance, you will be able to list all repositories including private repositories.",
- "operationId": "repos-list-public",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#list-all-public-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last Repository that you've seen."
- },
- {
- "name": "visibility",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "public"
- },
- "required": false,
- "description": "To include private repositories as well set to `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-releases.json b/openapi/ghe-2.15/operations/repos/list-releases.json
deleted file mode 100644
index 48fabc7757..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-releases.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List releases for a repository",
- "description": "This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://developer.github.com/enterprise/2.15/v3/repos/#list-tags).\n\nInformation about published releases are available to everyone. Only users with push access will receive listings for draft releases.",
- "operationId": "repos-list-releases",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#list-releases-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-statuses-for-ref.json b/openapi/ghe-2.15/operations/repos/list-statuses-for-ref.json
deleted file mode 100644
index ea245888cb..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-statuses-for-ref.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List statuses for a specific ref",
- "description": "Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.\n\nThis resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`.",
- "operationId": "repos-list-statuses-for-ref",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/statuses/#list-statuses-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/statuses"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-tags.json b/openapi/ghe-2.15/operations/repos/list-tags.json
deleted file mode 100644
index 196ec0b5ed..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-tags.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List tags",
- "description": "",
- "operationId": "repos-list-tags",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#list-tags"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/tags"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-teams.json b/openapi/ghe-2.15/operations/repos/list-teams.json
deleted file mode 100644
index ffbfa9f050..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-teams.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List teams",
- "description": "",
- "operationId": "repos-list-teams",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#list-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list-topics.json b/openapi/ghe-2.15/operations/repos/list-topics.json
deleted file mode 100644
index d6f5026900..0000000000
--- a/openapi/ghe-2.15/operations/repos/list-topics.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "List all topics for a repository",
- "description": "",
- "operationId": "repos-list-topics",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#list-all-topics-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/topics"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/list.json b/openapi/ghe-2.15/operations/repos/list.json
deleted file mode 100644
index a21389c2a4..0000000000
--- a/openapi/ghe-2.15/operations/repos/list.json
+++ /dev/null
@@ -1,135 +0,0 @@
-{
- "summary": "List your repositories",
- "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.",
- "operationId": "repos-list",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#list-your-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "visibility",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "public",
- "private"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `public`, or `private`."
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "owner,collaborator,organization_member"
- },
- "required": false,
- "description": "Comma-separated list of values. Can include: \n\\* `owner`: Repositories that are owned by the authenticated user. \n\\* `collaborator`: Repositories that the user has been added to as a collaborator. \n\\* `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on."
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "public",
- "private",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `owner`, `public`, `private`, `member`. Default: `all` \n \nWill cause a `422` error if used in the same request as **visibility** or **affiliation**. Will cause a `422` error if used in the same request as **visibility** or **affiliation**."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- },
- "required": false,
- "description": "Can be one of `created`, `updated`, `pushed`, `full_name`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/merge.json b/openapi/ghe-2.15/operations/repos/merge.json
deleted file mode 100644
index 40690c3878..0000000000
--- a/openapi/ghe-2.15/operations/repos/merge.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Perform a merge",
- "description": "",
- "operationId": "repos-merge",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/merging/#perform-a-merge"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "base": {
- "description": "The name of the base branch that the head will be merged into.",
- "type": "string"
- },
- "head": {
- "description": "The head to merge. This can be a branch name or a commit SHA1.",
- "type": "string"
- },
- "commit_message": {
- "description": "Commit message to use for the merge commit. If omitted, a default message will be used.",
- "type": "string"
- }
- },
- "required": [
- "base",
- "head"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/merges \\\n -d '{\"base\":\"base\",\"head\":\"head\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n base: 'base',\n head: 'head'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/ping-hook.json b/openapi/ghe-2.15/operations/repos/ping-hook.json
deleted file mode 100644
index e3b8dd3eac..0000000000
--- a/openapi/ghe-2.15/operations/repos/ping-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Ping a hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.15/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nThis will trigger a [ping event](https://developer.github.com/enterprise/2.15/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "repos-ping-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/hooks/#ping-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id/pings"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-branch-protection.json b/openapi/ghe-2.15/operations/repos/remove-branch-protection.json
deleted file mode 100644
index 8bf87ae058..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-branch-protection.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove branch protection",
- "description": "",
- "operationId": "repos-remove-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#remove-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-collaborator.json b/openapi/ghe-2.15/operations/repos/remove-collaborator.json
deleted file mode 100644
index 803a19e9a2..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-collaborator.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove user as a collaborator",
- "description": "",
- "operationId": "repos-remove-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/collaborators/#remove-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-deploy-key.json b/openapi/ghe-2.15/operations/repos/remove-deploy-key.json
deleted file mode 100644
index 05c5d57492..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-deploy-key.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove a deploy key",
- "description": "",
- "operationId": "repos-remove-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/keys/#remove-a-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys/:key_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-protected-branch-admin-enforcement.json b/openapi/ghe-2.15/operations/repos/remove-protected-branch-admin-enforcement.json
deleted file mode 100644
index f1dff06a6a..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove admin enforcement of protected branch",
- "description": "Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-remove-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#remove-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.15/operations/repos/remove-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index adfb9dbbda..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove pull request review enforcement of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-protected-branch-required-signatures.json b/openapi/ghe-2.15/operations/repos/remove-protected-branch-required-signatures.json
deleted file mode 100644
index 82319c19d1..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Remove required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits.",
- "operationId": "repos-remove-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#remove-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.15/operations/repos/remove-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 863ab016a8..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-protected-branch-required-status-checks.json b/openapi/ghe-2.15/operations/repos/remove-protected-branch-required-status-checks.json
deleted file mode 100644
index 967d912335..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove required status checks of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#remove-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-protected-branch-restrictions.json b/openapi/ghe-2.15/operations/repos/remove-protected-branch-restrictions.json
deleted file mode 100644
index a64b6f9e78..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-protected-branch-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove restrictions of protected branch",
- "description": "Disables the ability to restrict who can push to this branch.",
- "operationId": "repos-remove-protected-branch-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#remove-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-protected-branch-team-restrictions.json b/openapi/ghe-2.15/operations/repos/remove-protected-branch-team-restrictions.json
deleted file mode 100644
index 63c17c6467..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove team restrictions of protected branch",
- "description": "Removes the ability of a team to push to this branch. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-remove-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#remove-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/remove-protected-branch-user-restrictions.json b/openapi/ghe-2.15/operations/repos/remove-protected-branch-user-restrictions.json
deleted file mode 100644
index f670631104..0000000000
--- a/openapi/ghe-2.15/operations/repos/remove-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove user restrictions of protected branch",
- "description": "Removes the ability of a team to push to this branch.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames of the people who should no longer have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-remove-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#remove-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/replace-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.15/operations/repos/replace-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 7cd9bfae39..0000000000
--- a/openapi/ghe-2.15/operations/repos/replace-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-replace-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/replace-protected-branch-team-restrictions.json b/openapi/ghe-2.15/operations/repos/replace-protected-branch-team-restrictions.json
deleted file mode 100644
index d498ec0b59..0000000000
--- a/openapi/ghe-2.15/operations/repos/replace-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace team restrictions of protected branch",
- "description": "Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-replace-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#replace-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/replace-protected-branch-user-restrictions.json b/openapi/ghe-2.15/operations/repos/replace-protected-branch-user-restrictions.json
deleted file mode 100644
index d864328ddc..0000000000
--- a/openapi/ghe-2.15/operations/repos/replace-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace user restrictions of protected branch",
- "description": "Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-replace-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#replace-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/replace-topics.json b/openapi/ghe-2.15/operations/repos/replace-topics.json
deleted file mode 100644
index 65e585391f..0000000000
--- a/openapi/ghe-2.15/operations/repos/replace-topics.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "Replace all topics for a repository",
- "description": "",
- "operationId": "repos-replace-topics",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#replace-all-topics-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "names": {
- "description": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "names"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/topics \\\n -d '{\"names\":\"names\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n names: 'names'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/request-page-build.json b/openapi/ghe-2.15/operations/repos/request-page-build.json
deleted file mode 100644
index 0d5a6f0907..0000000000
--- a/openapi/ghe-2.15/operations/repos/request-page-build.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "summary": "Request a page build",
- "description": "You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures.\n\nBuild requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes.",
- "operationId": "repos-request-page-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/pages/#request-a-page-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.mister-fantastic-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.mister-fantastic-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/test-push-hook.json b/openapi/ghe-2.15/operations/repos/test-push-hook.json
deleted file mode 100644
index a6b4243ebe..0000000000
--- a/openapi/ghe-2.15/operations/repos/test-push-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Test a push hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.15/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nThis will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated.\n\n**Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test`",
- "operationId": "repos-test-push-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/hooks/#test-a-push-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id/tests"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/transfer.json b/openapi/ghe-2.15/operations/repos/transfer.json
deleted file mode 100644
index 91298155db..0000000000
--- a/openapi/ghe-2.15/operations/repos/transfer.json
+++ /dev/null
@@ -1,391 +0,0 @@
-{
- "summary": "Transfer a repository",
- "description": "A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/).",
- "operationId": "repos-transfer",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#transfer-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.nightshade-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "new_owner": {
- "description": "**Required:** The username or organization name the repository will be transferred to.",
- "type": "string"
- },
- "team_ids": {
- "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.nightshade-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/transfer"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update-branch-protection.json b/openapi/ghe-2.15/operations/repos/update-branch-protection.json
deleted file mode 100644
index 2e48913d23..0000000000
--- a/openapi/ghe-2.15/operations/repos/update-branch-protection.json
+++ /dev/null
@@ -1,468 +0,0 @@
-{
- "summary": "Update branch protection",
- "description": "Protecting a branch requires admin or owner permissions to the repository.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.\n\n**Note**: The list of users and teams in total is limited to 100 items.",
- "operationId": "repos-update-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#update-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "required_status_checks": {
- "description": "Require status checks to pass before merging. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "strict": {
- "description": "Require branches to be up to date before merging.",
- "type": "boolean"
- },
- "contexts": {
- "description": "The list of status checks to require in order to merge into this branch",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "strict",
- "contexts"
- ]
- },
- "enforce_admins": {
- "description": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
- "type": "boolean",
- "nullable": true
- },
- "required_pull_request_reviews": {
- "description": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "dismissal_restrictions": {
- "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
- "type": "object",
- "properties": {
- "users": {
- "description": "The list of user `login`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) review them.",
- "type": "boolean"
- },
- "required_approving_review_count": {
- "description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "type": "integer"
- }
- }
- },
- "restrictions": {
- "description": "Restrict who can push to this branch. Team and user `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "users": {
- "description": "The list of user `login`s with push access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with push access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- },
- "required": [
- "required_status_checks",
- "enforce_admins",
- "required_pull_request_reviews",
- "restrictions"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- },
- "enforce_admins": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "required_pull_request_reviews": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- },
- "restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection \\\n -d '{\"required_status_checks\":\"required_status_checks\",\"required_status_checks.strict\":\"required_status_checks.strict\",\"required_status_checks.contexts\":\"required_status_checks.contexts\",\"enforce_admins\":\"enforce_admins\",\"required_pull_request_reviews\":\"required_pull_request_reviews\",\"restrictions\":\"restrictions\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n required_status_checks: 'required_status_checks',\n 'required_status_checks.strict': 'required_status_checks.strict',\n 'required_status_checks.contexts': 'required_status_checks.contexts',\n enforce_admins: 'enforce_admins',\n required_pull_request_reviews: 'required_pull_request_reviews',\n restrictions: 'restrictions'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update-commit-comment.json b/openapi/ghe-2.15/operations/repos/update-commit-comment.json
deleted file mode 100644
index 125d46d5ef..0000000000
--- a/openapi/ghe-2.15/operations/repos/update-commit-comment.json
+++ /dev/null
@@ -1,189 +0,0 @@
-{
- "summary": "Update a commit comment",
- "description": "",
- "operationId": "repos-update-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/comments/#update-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update-hook.json b/openapi/ghe-2.15/operations/repos/update-hook.json
deleted file mode 100644
index 6f26210872..0000000000
--- a/openapi/ghe-2.15/operations/repos/update-hook.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "summary": "Edit a hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.15/v3/guides/replacing-github-services) to help you update your services to webhooks.",
- "operationId": "repos-update-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/hooks/#edit-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.15/v3/repos/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.15/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "add_events": {
- "description": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "remove_events": {
- "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update-information-about-pages-site.json b/openapi/ghe-2.15/operations/repos/update-information-about-pages-site.json
deleted file mode 100644
index f58f922b20..0000000000
--- a/openapi/ghe-2.15/operations/repos/update-information-about-pages-site.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Update information about a Pages site",
- "description": "",
- "operationId": "repos-update-information-about-pages-site",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/pages/#update-information-about-a-pages-site"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "source": {
- "description": "Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `\"gh-pages\"`, `\"master\"`, and `\"master /docs\"`.",
- "type": "string",
- "enum": [
- "\"gh-pages\"",
- "\"master\"",
- "\"master /docs\""
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update-invitation.json b/openapi/ghe-2.15/operations/repos/update-invitation.json
deleted file mode 100644
index a7123cc785..0000000000
--- a/openapi/ghe-2.15/operations/repos/update-invitation.json
+++ /dev/null
@@ -1,434 +0,0 @@
-{
- "summary": "Update a repository invitation",
- "description": "",
- "operationId": "repos-update-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/invitations/#update-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permissions": {
- "description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "invitee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "inviter": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "permissions": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations/:invitation_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.15/operations/repos/update-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index f1b0fd0c9d..0000000000
--- a/openapi/ghe-2.15/operations/repos/update-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,251 +0,0 @@
-{
- "summary": "Update pull request review enforcement of protected branch",
- "description": "Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.",
- "operationId": "repos-update-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "dismissal_restrictions": {
- "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
- "type": "object",
- "properties": {
- "users": {
- "description": "The list of user `login`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed.",
- "type": "boolean"
- },
- "required_approving_review_count": {
- "description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "type": "integer"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update-protected-branch-required-status-checks.json b/openapi/ghe-2.15/operations/repos/update-protected-branch-required-status-checks.json
deleted file mode 100644
index 8b40bb1613..0000000000
--- a/openapi/ghe-2.15/operations/repos/update-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Update required status checks of protected branch",
- "description": "Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-update-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/branches/#update-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "strict": {
- "description": "Require branches to be up to date before merging.",
- "type": "boolean"
- },
- "contexts": {
- "description": "The list of status checks to require in order to merge into this branch",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update-release-asset.json b/openapi/ghe-2.15/operations/repos/update-release-asset.json
deleted file mode 100644
index 65450a54ab..0000000000
--- a/openapi/ghe-2.15/operations/repos/update-release-asset.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Edit a release asset",
- "description": "Users with push access to the repository can edit a release asset.",
- "operationId": "repos-update-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#edit-a-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The file name of the asset.",
- "type": "string"
- },
- "label": {
- "description": "An alternate short description of the asset. Used in place of the filename.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update-release.json b/openapi/ghe-2.15/operations/repos/update-release.json
deleted file mode 100644
index e3c7da7f19..0000000000
--- a/openapi/ghe-2.15/operations/repos/update-release.json
+++ /dev/null
@@ -1,324 +0,0 @@
-{
- "summary": "Edit a release",
- "description": "Users with push access to the repository can edit a release.",
- "operationId": "repos-update-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/releases/#edit-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string"
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "type": "string"
- },
- "name": {
- "description": "The name of the release.",
- "type": "string"
- },
- "body": {
- "description": "Text describing the contents of the tag.",
- "type": "string"
- },
- "draft": {
- "description": "`true` makes the release a draft, and `false` publishes the release.",
- "type": "boolean"
- },
- "prerelease": {
- "description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/repos/update.json b/openapi/ghe-2.15/operations/repos/update.json
deleted file mode 100644
index 1386ecaa67..0000000000
--- a/openapi/ghe-2.15/operations/repos/update.json
+++ /dev/null
@@ -1,1106 +0,0 @@
-{
- "summary": "Edit",
- "description": "**Note**: To edit a repository's topics, use the [`topics` endpoint](https://developer.github.com/enterprise/2.15/v3/repos/#replace-all-topics-for-a-repository).",
- "operationId": "repos-update",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/repos/#edit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.x-ray-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private, or if the \"Users Can Change Repo Visibility\" appliance setting is disabled and you are not a hosted site admin. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private, or if the \"Users Can Change Repo Visibility\" appliance setting is disabled and you are not a hosted site admin.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "default_branch": {
- "description": "Updates the default branch for this repository.",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- },
- "archived": {
- "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "type": "boolean",
- "default": false
- },
- "anonymous_access_enabled": {
- "description": "Either `true` to allow anonymous Git access to a public repository, or `false` to disable it. This feature is only available to site and repository administrators in GitHub Enterprise instances that have private mode enabled.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parent": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- }
- }
- },
- "source": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.x-ray-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/code.json b/openapi/ghe-2.15/operations/search/code.json
deleted file mode 100644
index 27c0b2e396..0000000000
--- a/openapi/ghe-2.15/operations/search/code.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "summary": "Search code",
- "description": "Find file contents via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.15/v3/#pagination).\n\nWhen searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.15/v3/search/#text-match-metadata).\n\n**Note:** You must [authenticate](https://developer.github.com/enterprise/2.15/v3/#authentication) to search for code across all public repositories.\n\n**Considerations for code search**\n\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:\n\n* Only the _default branch_ is considered. In most cases, this will be the `master` branch.\n* Only files smaller than 10 MB are searchable.\n\nSuppose you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery). Your query would look something like this:\n\nHere, we're searching for the keyword `addClass` within a file's contents. We're making sure that we're only looking in files where the language is JavaScript. And we're scoping the search to the `repo:jquery/jquery` repository.",
- "operationId": "search-code",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/#search-code"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.15/v3/search/#constructing-a-search-query). See \"[Searching code](https://help.github.com/articles/searching-code/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "indexed"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/code"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/commits.json b/openapi/ghe-2.15/operations/search/commits.json
deleted file mode 100644
index 4256c26b32..0000000000
--- a/openapi/ghe-2.15/operations/search/commits.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "summary": "Search commits",
- "description": "Find commits via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.15/v3/#pagination).\n\nWhen searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.15/v3/search/#text-match-metadata).\n\n**Considerations for commit search**\n\nOnly the _default branch_ is considered. In most cases, this will be the `master` branch.\n\nSuppose you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:",
- "operationId": "search-commits",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/#search-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.cloak-preview+json"
- },
- "required": true
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.15/v3/search/#constructing-a-search-query). See \"[Searching commits](https://help.github.com/articles/searching-commits/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "author-date",
- "committer-date"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.cloak-preview+json\" \\\n https://developer.github.com/search/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/email-legacy.json b/openapi/ghe-2.15/operations/search/email-legacy.json
deleted file mode 100644
index 96e5820423..0000000000
--- a/openapi/ghe-2.15/operations/search/email-legacy.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Email search",
- "description": "This API call is added for compatibility reasons only. There's no guarantee that full email searches will always be available. The `@` character in the address must be left unencoded. Searches only against public email addresses (as configured on the user's GitHub Enterprise profile).",
- "operationId": "search-email-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/legacy/#email-search"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "email",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The email address."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/user/email/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n email: 'email'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/issues-and-pull-requests.json b/openapi/ghe-2.15/operations/search/issues-and-pull-requests.json
deleted file mode 100644
index 924550adee..0000000000
--- a/openapi/ghe-2.15/operations/search/issues-and-pull-requests.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "summary": "Search issues and pull requests",
- "description": "Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.15/v3/#pagination).\n\nWhen searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.15/v3/search/#text-match-metadata).\n\nLet's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.\n\nIn this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results.",
- "operationId": "search-issues-and-pull-requests",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/#search-issues-and-pull-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.15/v3/search/#constructing-a-search-query). See \"[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "comments",
- "reactions",
- "reactions-+1",
- "reactions--1",
- "reactions-smile",
- "reactions-thinking_face",
- "reactions-heart",
- "reactions-tada",
- "interactions",
- "created",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2018-12-27",
- "note": "\"Search issues\" has been renamed to \"Search issues and pull requests\"",
- "meta": {
- "before": {
- "idName": "issues"
- },
- "after": {
- "idName": "issues-and-pull-requests"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.15/operations/search/issues-legacy.json b/openapi/ghe-2.15/operations/search/issues-legacy.json
deleted file mode 100644
index bf4705f2a4..0000000000
--- a/openapi/ghe-2.15/operations/search/issues-legacy.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "summary": "Search issues",
- "description": "Find issues by state and keyword.",
- "operationId": "search-issues-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/legacy/#search-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repository",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repository parameter"
- },
- {
- "name": "state",
- "in": "path",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "required": true,
- "description": "Indicates the state of the issues to return. Can be either `open` or `closed`."
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/issues/search/octocat/:repository/:state/:keyword"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n owner: 'octocat',\n repository: 'repository',\n state: 'state',\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/labels.json b/openapi/ghe-2.15/operations/search/labels.json
deleted file mode 100644
index a889ea4eed..0000000000
--- a/openapi/ghe-2.15/operations/search/labels.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Search labels",
- "description": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://developer.github.com/enterprise/2.15/v3/#pagination).\n\nWhen searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.15/v3/search/#text-match-metadata).\n\nSuppose you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:\n\nThe labels that best match for the query appear first in the search results.",
- "operationId": "search-labels",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/#search-labels"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "repository_id",
- "in": "query",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "The id of the repository."
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.15/v3/search/#constructing-a-search-query)."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n repository_id: 'repository_id',\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/repos-legacy.json b/openapi/ghe-2.15/operations/search/repos-legacy.json
deleted file mode 100644
index a5a4f004cb..0000000000
--- a/openapi/ghe-2.15/operations/search/repos-legacy.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "summary": "Search repositories",
- "description": "Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the `start_page` parameter.",
- "operationId": "search-repos-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/legacy/#search-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- },
- {
- "name": "language",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter results by language."
- },
- {
- "name": "start_page",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The page number to fetch."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "updated"
- ]
- },
- "required": false,
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match."
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/repos/search/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/repos.json b/openapi/ghe-2.15/operations/search/repos.json
deleted file mode 100644
index 593fb972ec..0000000000
--- a/openapi/ghe-2.15/operations/search/repos.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "Search repositories",
- "description": "Find repositories via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.15/v3/#pagination).\n\nWhen searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.15/v3/search/#text-match-metadata).\n\nSuppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this.\n\nYou can search for multiple topics by adding more `topic:` instances, and including the `mercy-preview` header. For example:\n\nIn this request, we're searching for repositories with the word `tetris` in the name, the description, or the README. We're limiting the results to only find repositories where the primary language is Assembly. We're sorting by stars in descending order, so that the most popular repositories appear first in the search results.",
- "operationId": "search-repos",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/#search-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.15/v3/search/#constructing-a-search-query). See \"[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "help-wanted-issues",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/topics.json b/openapi/ghe-2.15/operations/search/topics.json
deleted file mode 100644
index 29154f7327..0000000000
--- a/openapi/ghe-2.15/operations/search/topics.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Search topics",
- "description": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.15/v3/#pagination).\n\nWhen searching for topics, you can get text match metadata for the topic's **short\\_description**, **description**, **name**, or **display\\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.15/v3/search/#text-match-metadata).\n\nSee \"[Searching topics](https://help.github.com/articles/searching-topics/)\" for a detailed list of qualifiers.\n\nSuppose you want to search for topics related to Ruby that are featured on [https://github.com/topics](https://github.com/topics). Your query might look like this:\n\nIn this request, we're searching for topics with the keyword `ruby`, and we're limiting the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.\n\n**Note:** A search for featured Ruby topics only has 6 total results, so a [Link header](https://developer.github.com/enterprise/2.15/v3/#link-header) indicating pagination is not included in the response.",
- "operationId": "search-topics",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/#search-topics"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.15/v3/search/#constructing-a-search-query)."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/topics"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/users-legacy.json b/openapi/ghe-2.15/operations/search/users-legacy.json
deleted file mode 100644
index 3ae068d00c..0000000000
--- a/openapi/ghe-2.15/operations/search/users-legacy.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Search users",
- "description": "Find users by keyword.",
- "operationId": "search-users-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/legacy/#search-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- },
- {
- "name": "start_page",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The page number to fetch."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "updated"
- ]
- },
- "required": false,
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match."
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/user/search/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/search/users.json b/openapi/ghe-2.15/operations/search/users.json
deleted file mode 100644
index 7391f08684..0000000000
--- a/openapi/ghe-2.15/operations/search/users.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "summary": "Search users",
- "description": "Find users via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.15/v3/#pagination).\n\nWhen searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://developer.github.com/enterprise/2.15/v3/search/#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.15/v3/search/#text-match-metadata).\n\nImagine you're looking for a list of popular users. You might try out this query:\n\nHere, we're looking at users with the name Tom. We're only interested in those with more than 42 repositories, and only if they have over 1,000 followers.",
- "operationId": "search-users",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/search/#search-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.15/v3/search/#constructing-a-search-query). See \"[Searching users](https://help.github.com/articles/searching-users/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "followers",
- "repositories",
- "joined"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/users"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/add-member.json b/openapi/ghe-2.15/operations/teams/add-member.json
deleted file mode 100644
index 878814dd53..0000000000
--- a/openapi/ghe-2.15/operations/teams/add-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Add team member",
- "description": "The \"Add team member\" API (described below) is deprecated.\n\nWe recommend using the [Add team membership API](https://developer.github.com/enterprise/2.15/v3/teams/members/#add-or-update-team-membership) instead. It allows you to invite new organization members to your teams.\n\nTo add someone to a team, the authenticated user must be a team maintainer in the team they're changing or be an owner of the organization that the team is associated with. The person being added to the team must be a member of the team's organization.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "teams-add-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/members/#add-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/add-or-update-membership.json b/openapi/ghe-2.15/operations/teams/add-or-update-membership.json
deleted file mode 100644
index f5cedcc1b1..0000000000
--- a/openapi/ghe-2.15/operations/teams/add-or-update-membership.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Add or update team membership",
- "description": "If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a maintainer of the team.\n\nIf the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the \"pending\" state until the user accepts the invitation, at which point the membership will transition to the \"active\" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.\n\nIf the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a maintainer of the team.",
- "operationId": "teams-add-or-update-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/members/#add-or-update-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "role": {
- "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.",
- "type": "string",
- "enum": [
- "member",
- "maintainer"
- ],
- "default": "member"
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/add-or-update-project.json b/openapi/ghe-2.15/operations/teams/add-or-update-project.json
deleted file mode 100644
index d7d1783b44..0000000000
--- a/openapi/ghe-2.15/operations/teams/add-or-update-project.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "summary": "Add or update team project",
- "description": "Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.",
- "operationId": "teams-add-or-update-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#add-or-update-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\" \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/add-or-update-repo.json b/openapi/ghe-2.15/operations/teams/add-or-update-repo.json
deleted file mode 100644
index 9d3b82b922..0000000000
--- a/openapi/ghe-2.15/operations/teams/add-or-update-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Add or update team repository",
- "description": "To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.\n\nIf you pass the `hellcat-preview` media type, you can modify repository permissions of child teams.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"",
- "operationId": "teams-add-or-update-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#add-or-update-team-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/check-manages-repo.json b/openapi/ghe-2.15/operations/teams/check-manages-repo.json
deleted file mode 100644
index 72557d4494..0000000000
--- a/openapi/ghe-2.15/operations/teams/check-manages-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check if a team manages a repository",
- "description": "**Note**: If you pass the `hellcat-preview` media type, repositories inherited through a parent team will be checked.\n\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/enterprise/2.15/v3/media/) via the `Accept` header:",
- "operationId": "teams-check-manages-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#check-if-a-team-manages-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/create-discussion-comment.json b/openapi/ghe-2.15/operations/teams/create-discussion-comment.json
deleted file mode 100644
index a2d29e9d7f..0000000000
--- a/openapi/ghe-2.15/operations/teams/create-discussion-comment.json
+++ /dev/null
@@ -1,210 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "teams-create-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussion_comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The discussion comment's body text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/create-discussion.json b/openapi/ghe-2.15/operations/teams/create-discussion.json
deleted file mode 100644
index 43eef1ed49..0000000000
--- a/openapi/ghe-2.15/operations/teams/create-discussion.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Create a discussion",
- "description": "Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.15/v3/#abuse-rate-limits)\" for details.",
- "operationId": "teams-create-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussions/#create-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The discussion post's title.",
- "type": "string"
- },
- "body": {
- "description": "The discussion post's body text.",
- "type": "string"
- },
- "private": {
- "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "title",
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n title: 'title',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/create.json b/openapi/ghe-2.15/operations/teams/create.json
deleted file mode 100644
index 0b42a3c7b8..0000000000
--- a/openapi/ghe-2.15/operations/teams/create.json
+++ /dev/null
@@ -1,254 +0,0 @@
-{
- "summary": "Create team",
- "description": "To create a team, the authenticated user must be a member or owner of `:org`.",
- "operationId": "teams-create",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#create-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the team.",
- "type": "string"
- },
- "description": {
- "description": "The description of the team.",
- "type": "string"
- },
- "maintainers": {
- "description": "The logins of organization members to add as maintainers of the team.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "repo_names": {
- "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "privacy": {
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
- "type": "string",
- "enum": [
- "secret",
- "closed"
- ]
- },
- "permission": {
- "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- "parent_team_id": {
- "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
- "type": "integer"
- },
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Update LDAP mapping for a team](https://developer.github.com/enterprise/2.15/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-team) endpoint to change the LDAP DN.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//teams \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/delete-discussion-comment.json b/openapi/ghe-2.15/operations/teams/delete-discussion-comment.json
deleted file mode 100644
index e0dcdf4538..0000000000
--- a/openapi/ghe-2.15/operations/teams/delete-discussion-comment.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-delete-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussion_comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/delete-discussion.json b/openapi/ghe-2.15/operations/teams/delete-discussion.json
deleted file mode 100644
index df2eb9d037..0000000000
--- a/openapi/ghe-2.15/operations/teams/delete-discussion.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Delete a discussion",
- "description": "Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-delete-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussions/#delete-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/delete.json b/openapi/ghe-2.15/operations/teams/delete.json
deleted file mode 100644
index cc192085cd..0000000000
--- a/openapi/ghe-2.15/operations/teams/delete.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete team",
- "description": "To delete a team, the authenticated user must be a team maintainer or an owner of the org associated with the team.\n\nIf you are an organization owner and you pass the `hellcat-preview` media type, deleting a parent team will delete all of its child teams as well.",
- "operationId": "teams-delete",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#delete-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/get-discussion-comment.json b/openapi/ghe-2.15/operations/teams/get-discussion-comment.json
deleted file mode 100644
index 76f48c485a..0000000000
--- a/openapi/ghe-2.15/operations/teams/get-discussion-comment.json
+++ /dev/null
@@ -1,201 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-get-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussion_comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/get-discussion.json b/openapi/ghe-2.15/operations/teams/get-discussion.json
deleted file mode 100644
index 37efadc5d0..0000000000
--- a/openapi/ghe-2.15/operations/teams/get-discussion.json
+++ /dev/null
@@ -1,207 +0,0 @@
-{
- "summary": "Get a single discussion",
- "description": "Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-get-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussions/#get-a-single-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/get-member.json b/openapi/ghe-2.15/operations/teams/get-member.json
deleted file mode 100644
index 5fff36a022..0000000000
--- a/openapi/ghe-2.15/operations/teams/get-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get team member",
- "description": "The \"Get team member\" API (described below) is deprecated.\n\nWe recommend using the [Get team membership API](https://developer.github.com/enterprise/2.15/v3/teams/members/#get-team-membership) instead. It allows you to get both active and pending memberships.\n\nTo list members in a team, the team must be visible to the authenticated user.",
- "operationId": "teams-get-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/members/#get-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/get-membership.json b/openapi/ghe-2.15/operations/teams/get-membership.json
deleted file mode 100644
index fd23335e9b..0000000000
--- a/openapi/ghe-2.15/operations/teams/get-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get team membership",
- "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.\n\nTo get a user's membership with a team, the team must be visible to the authenticated user.\n\n**Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/enterprise/2.15/v3/teams#create-team).",
- "operationId": "teams-get-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/members/#get-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/get.json b/openapi/ghe-2.15/operations/teams/get.json
deleted file mode 100644
index c6262e3c15..0000000000
--- a/openapi/ghe-2.15/operations/teams/get.json
+++ /dev/null
@@ -1,192 +0,0 @@
-{
- "summary": "Get team",
- "description": "",
- "operationId": "teams-get",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#get-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/list-child.json b/openapi/ghe-2.15/operations/teams/list-child.json
deleted file mode 100644
index ea8d1b85cd..0000000000
--- a/openapi/ghe-2.15/operations/teams/list-child.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "summary": "List child teams",
- "description": "At this time, the `hellcat-preview` media type is required to use this endpoint.\n\n",
- "operationId": "teams-list-child",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#list-child-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.hellcat-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.hellcat-preview+json\" \\\n https://developer.github.com/teams//teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/list-discussion-comments.json b/openapi/ghe-2.15/operations/teams/list-discussion-comments.json
deleted file mode 100644
index d6b3020561..0000000000
--- a/openapi/ghe-2.15/operations/teams/list-discussion-comments.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List comments",
- "description": "List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-list-discussion-comments",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussion_comments/#list-comments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/list-discussions.json b/openapi/ghe-2.15/operations/teams/list-discussions.json
deleted file mode 100644
index c9547a2215..0000000000
--- a/openapi/ghe-2.15/operations/teams/list-discussions.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "List discussions",
- "description": "List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-list-discussions",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussions/#list-discussions"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/list-for-authenticated-user.json b/openapi/ghe-2.15/operations/teams/list-for-authenticated-user.json
deleted file mode 100644
index b3065b56d2..0000000000
--- a/openapi/ghe-2.15/operations/teams/list-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List user teams",
- "description": "List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/).",
- "operationId": "teams-list-for-authenticated-user",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#list-user-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/list-members.json b/openapi/ghe-2.15/operations/teams/list-members.json
deleted file mode 100644
index 7815a223bf..0000000000
--- a/openapi/ghe-2.15/operations/teams/list-members.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "List team members",
- "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.\n\nTo list members in a team, the team must be visible to the authenticated user.",
- "operationId": "teams-list-members",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/members/#list-team-members"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "member",
- "maintainer",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/list-projects.json b/openapi/ghe-2.15/operations/teams/list-projects.json
deleted file mode 100644
index 78fa4b52db..0000000000
--- a/openapi/ghe-2.15/operations/teams/list-projects.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "List team projects",
- "description": "Lists the organization projects for a team. If you are an [authenticated](https://developer.github.com/enterprise/2.15/v3/#authentication) site administrator for your Enterprise instance, you will be able to list all projects for the team. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team.",
- "operationId": "teams-list-projects",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#list-team-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/list-repos.json b/openapi/ghe-2.15/operations/teams/list-repos.json
deleted file mode 100644
index 4a6f7e49e5..0000000000
--- a/openapi/ghe-2.15/operations/teams/list-repos.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List team repos",
- "description": "**Note**: If you pass the `hellcat-preview` media type, the response will include any repositories inherited through a parent team.\n\nIf you are an [authenticated](https://developer.github.com/enterprise/2.15/v3/#authentication) site administrator for your Enterprise instance, you will be able to list all repositories for the team.",
- "operationId": "teams-list-repos",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#list-team-repos"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/list.json b/openapi/ghe-2.15/operations/teams/list.json
deleted file mode 100644
index 478ab2310b..0000000000
--- a/openapi/ghe-2.15/operations/teams/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List teams",
- "description": "",
- "operationId": "teams-list",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#list-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/remove-member.json b/openapi/ghe-2.15/operations/teams/remove-member.json
deleted file mode 100644
index 5c22ed7b0c..0000000000
--- a/openapi/ghe-2.15/operations/teams/remove-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team member",
- "description": "The \"Remove team member\" API (described below) is deprecated.\n\nWe recommend using the [Remove team membership endpoint](https://developer.github.com/enterprise/2.15/v3/teams/members/#remove-team-membership) instead. It allows you to remove both active and pending memberships.\n\nTo remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.",
- "operationId": "teams-remove-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/members/#remove-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/remove-membership.json b/openapi/ghe-2.15/operations/teams/remove-membership.json
deleted file mode 100644
index 8ff6b9b29f..0000000000
--- a/openapi/ghe-2.15/operations/teams/remove-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team membership",
- "description": "To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.",
- "operationId": "teams-remove-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/members/#remove-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/remove-project.json b/openapi/ghe-2.15/operations/teams/remove-project.json
deleted file mode 100644
index 210f74b7dc..0000000000
--- a/openapi/ghe-2.15/operations/teams/remove-project.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team project",
- "description": "Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it.",
- "operationId": "teams-remove-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#remove-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/remove-repo.json b/openapi/ghe-2.15/operations/teams/remove-repo.json
deleted file mode 100644
index f19416009d..0000000000
--- a/openapi/ghe-2.15/operations/teams/remove-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove team repository",
- "description": "If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.",
- "operationId": "teams-remove-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#remove-team-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/review-project.json b/openapi/ghe-2.15/operations/teams/review-project.json
deleted file mode 100644
index 5f6e78a7a3..0000000000
--- a/openapi/ghe-2.15/operations/teams/review-project.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Review a team project",
- "description": "Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team.",
- "operationId": "teams-review-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#review-a-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization_permission": {
- "type": "string"
- },
- "private": {
- "type": "boolean"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "read": {
- "type": "boolean"
- },
- "write": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/update-discussion-comment.json b/openapi/ghe-2.15/operations/teams/update-discussion-comment.json
deleted file mode 100644
index dd53a1f00a..0000000000
--- a/openapi/ghe-2.15/operations/teams/update-discussion-comment.json
+++ /dev/null
@@ -1,219 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-update-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussion_comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The discussion comment's body text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/update-discussion.json b/openapi/ghe-2.15/operations/teams/update-discussion.json
deleted file mode 100644
index 4a8d78dc83..0000000000
--- a/openapi/ghe-2.15/operations/teams/update-discussion.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Edit a discussion",
- "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-update-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/discussions/#edit-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The discussion post's title.",
- "type": "string"
- },
- "body": {
- "description": "The discussion post's body text.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/teams/update.json b/openapi/ghe-2.15/operations/teams/update.json
deleted file mode 100644
index 939511772e..0000000000
--- a/openapi/ghe-2.15/operations/teams/update.json
+++ /dev/null
@@ -1,236 +0,0 @@
-{
- "summary": "Edit team",
- "description": "To edit a team, the authenticated user must either be an owner of the org that the team is associated with, or a maintainer of the team.\n\n**Note:** With nested teams, the `privacy` for parent teams cannot be `secret`.",
- "operationId": "teams-update",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/teams/#edit-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the team.",
- "type": "string"
- },
- "description": {
- "description": "The description of the team.",
- "type": "string"
- },
- "privacy": {
- "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "type": "string",
- "enum": [
- "secret",
- "closed"
- ]
- },
- "permission": {
- "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- "parent_team_id": {
- "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
- "type": "integer"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/ \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/add-emails.json b/openapi/ghe-2.15/operations/users/add-emails.json
deleted file mode 100644
index c9ac6c0c65..0000000000
--- a/openapi/ghe-2.15/operations/users/add-emails.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "Add email address(es)",
- "description": "If your GitHub Enterprise instance has [LDAP Sync enabled and the option to synchronize emails enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync), this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add or delete an email address via the API with these options enabled.\n\nThis endpoint is accessible with the `user` scope.",
- "operationId": "users-add-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/emails/#add-email-addresses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "emails": {
- "description": "Adds one or more email addresses to your GitHub Enterprise account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "emails"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails \\\n -d '{\"emails\":\"emails\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n emails: 'emails'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/check-following-for-user.json b/openapi/ghe-2.15/operations/users/check-following-for-user.json
deleted file mode 100644
index 81e13f059a..0000000000
--- a/openapi/ghe-2.15/operations/users/check-following-for-user.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if one user follows another",
- "description": "",
- "operationId": "users-check-following-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/followers/#check-if-one-user-follows-another"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "target_user",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "target_user parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//following/:target_user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username',\n target_user: 'target_user'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/check-following.json b/openapi/ghe-2.15/operations/users/check-following.json
deleted file mode 100644
index 199baa1f0d..0000000000
--- a/openapi/ghe-2.15/operations/users/check-following.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Check if you are following a user",
- "description": "",
- "operationId": "users-check-following",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/followers/#check-if-you-are-following-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/create-gpg-key.json b/openapi/ghe-2.15/operations/users/create-gpg-key.json
deleted file mode 100644
index a6dd188079..0000000000
--- a/openapi/ghe-2.15/operations/users/create-gpg-key.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "summary": "Create a GPG key",
- "description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-create-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/gpg_keys/#create-a-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "armored_public_key": {
- "description": "Your GPG key, generated in ASCII-armored format. See \"[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)\" for help creating a GPG key.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "string"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- }
- }
- }
- },
- "subkeys": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "number"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {}
- },
- "subkeys": {
- "type": "array",
- "items": {}
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/create-public-key.json b/openapi/ghe-2.15/operations/users/create-public-key.json
deleted file mode 100644
index 309be52a7c..0000000000
--- a/openapi/ghe-2.15/operations/users/create-public-key.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "Create a public key",
- "description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nIf your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add an SSH key address via the API with these options enabled.",
- "operationId": "users-create-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/keys/#create-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key \"Personal MacBook Air\".",
- "type": "string"
- },
- "key": {
- "description": "The public SSH key to add to your GitHub account. See \"[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)\" for guidance on how to create a public SSH key.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/delete-emails.json b/openapi/ghe-2.15/operations/users/delete-emails.json
deleted file mode 100644
index 2aa9cc56ef..0000000000
--- a/openapi/ghe-2.15/operations/users/delete-emails.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "summary": "Delete email address(es)",
- "description": "If your GitHub Enterprise instance has [LDAP Sync enabled and the option to synchronize emails enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync), this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add or delete an email address via the API with these options enabled.\n\nThis endpoint is accessible with the `user` scope.",
- "operationId": "users-delete-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/emails/#delete-email-addresses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "emails": {
- "description": "Deletes one or more email addresses from your GitHub Enterprise account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "emails"
- ]
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails \\\n -d '{\"emails\":\"emails\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n emails: 'emails'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/delete-gpg-key.json b/openapi/ghe-2.15/operations/users/delete-gpg-key.json
deleted file mode 100644
index 54d5852822..0000000000
--- a/openapi/ghe-2.15/operations/users/delete-gpg-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a GPG key",
- "description": "Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-delete-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/gpg_keys/#delete-a-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gpg_key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "gpg_key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n gpg_key_id: 'gpg_key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/delete-public-key.json b/openapi/ghe-2.15/operations/users/delete-public-key.json
deleted file mode 100644
index 6de66d400f..0000000000
--- a/openapi/ghe-2.15/operations/users/delete-public-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a public key",
- "description": "Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nIf your GitHub Enterprise appliance has [LDAP Sync enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to remove an SSH key address via the API with these options enabled.",
- "operationId": "users-delete-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/keys/#delete-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/follow.json b/openapi/ghe-2.15/operations/users/follow.json
deleted file mode 100644
index 1c8329232e..0000000000
--- a/openapi/ghe-2.15/operations/users/follow.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Follow a user",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.15/v3/#http-verbs).\"\n\nFollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
- "operationId": "users-follow",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/followers/#follow-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/get-authenticated.json b/openapi/ghe-2.15/operations/users/get-authenticated.json
deleted file mode 100644
index 882ced8705..0000000000
--- a/openapi/ghe-2.15/operations/users/get-authenticated.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "summary": "Get the authenticated user",
- "description": "Lists public and private profile information when authenticated through basic auth or OAuth with the `user` scope.\n\nLists public profile information when authenticated through OAuth without the `user` scope.",
- "operationId": "users-get-authenticated",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/#get-the-authenticated-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/get-by-username.json b/openapi/ghe-2.15/operations/users/get-by-username.json
deleted file mode 100644
index a8c1e0caf1..0000000000
--- a/openapi/ghe-2.15/operations/users/get-by-username.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "summary": "Get a single user",
- "description": "Provides publicly available information about someone with a GitHub Enterprise account.\n\nThe `email` key in the following response is the publicly visible email address from your GitHub Enterprise [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise. For more information, see [Authentication](https://developer.github.com/enterprise/2.15/v3/#authentication).\n\nThe Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"[Emails API](https://developer.github.com/enterprise/2.15/v3/users/emails/)\".",
- "operationId": "users-get-by-username",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/#get-a-single-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "hireable": {
- "type": "boolean"
- },
- "bio": {
- "type": "string"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/get-context-for-user.json b/openapi/ghe-2.15/operations/users/get-context-for-user.json
deleted file mode 100644
index 1747d8df04..0000000000
--- a/openapi/ghe-2.15/operations/users/get-context-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Get contextual information about a user",
- "description": "Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.\n\nThe `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this:",
- "operationId": "users-get-context-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/#get-contextual-information-about-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.hagar-preview+json"
- },
- "required": true
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "subject_type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "organization",
- "repository",
- "issue",
- "pull_request"
- ]
- },
- "required": false,
- "description": "Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`."
- },
- {
- "name": "subject_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.hagar-preview+json\" \\\n https://developer.github.com/users//hovercard"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/get-gpg-key.json b/openapi/ghe-2.15/operations/users/get-gpg-key.json
deleted file mode 100644
index 20234657ea..0000000000
--- a/openapi/ghe-2.15/operations/users/get-gpg-key.json
+++ /dev/null
@@ -1,151 +0,0 @@
-{
- "summary": "Get a single GPG key",
- "description": "View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-get-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/gpg_keys/#get-a-single-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gpg_key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "gpg_key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "string"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- }
- }
- }
- },
- "subkeys": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "number"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {}
- },
- "subkeys": {
- "type": "array",
- "items": {}
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n gpg_key_id: 'gpg_key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/get-public-key.json b/openapi/ghe-2.15/operations/users/get-public-key.json
deleted file mode 100644
index 32876fc53a..0000000000
--- a/openapi/ghe-2.15/operations/users/get-public-key.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get a single public key",
- "description": "View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-get-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/keys/#get-a-single-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-emails.json b/openapi/ghe-2.15/operations/users/list-emails.json
deleted file mode 100644
index ea44533b26..0000000000
--- a/openapi/ghe-2.15/operations/users/list-emails.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List email addresses for a user",
- "description": "Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope.",
- "operationId": "users-list-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/emails/#list-email-addresses-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-followers-for-authenticated-user.json b/openapi/ghe-2.15/operations/users/list-followers-for-authenticated-user.json
deleted file mode 100644
index f74bc8714c..0000000000
--- a/openapi/ghe-2.15/operations/users/list-followers-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List the authenticated user's followers",
- "description": "",
- "operationId": "users-list-followers-for-authenticated-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/followers/#list-followers-of-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/followers"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-followers-for-user.json b/openapi/ghe-2.15/operations/users/list-followers-for-user.json
deleted file mode 100644
index f85cca4732..0000000000
--- a/openapi/ghe-2.15/operations/users/list-followers-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List a user's followers",
- "description": "",
- "operationId": "users-list-followers-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/followers/#list-followers-of-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//followers"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-following-for-authenticated-user.json b/openapi/ghe-2.15/operations/users/list-following-for-authenticated-user.json
deleted file mode 100644
index 3ede5fc55c..0000000000
--- a/openapi/ghe-2.15/operations/users/list-following-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List who the authenticated user is following",
- "description": "",
- "operationId": "users-list-following-for-authenticated-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/followers/#list-users-followed-by-another-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-following-for-user.json b/openapi/ghe-2.15/operations/users/list-following-for-user.json
deleted file mode 100644
index 66c32be02f..0000000000
--- a/openapi/ghe-2.15/operations/users/list-following-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List who a user is following",
- "description": "",
- "operationId": "users-list-following-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/followers/#list-users-followed-by-another-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//following"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-gpg-keys-for-user.json b/openapi/ghe-2.15/operations/users/list-gpg-keys-for-user.json
deleted file mode 100644
index c2e034e31b..0000000000
--- a/openapi/ghe-2.15/operations/users/list-gpg-keys-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List GPG keys for a user",
- "description": "Lists the GPG keys for a user. This information is accessible by anyone.",
- "operationId": "users-list-gpg-keys-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/gpg_keys/#list-gpg-keys-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-gpg-keys.json b/openapi/ghe-2.15/operations/users/list-gpg-keys.json
deleted file mode 100644
index 90e6be81f9..0000000000
--- a/openapi/ghe-2.15/operations/users/list-gpg-keys.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your GPG keys",
- "description": "Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-list-gpg-keys",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/gpg_keys/#list-your-gpg-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-public-emails.json b/openapi/ghe-2.15/operations/users/list-public-emails.json
deleted file mode 100644
index d043eb68c3..0000000000
--- a/openapi/ghe-2.15/operations/users/list-public-emails.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List public email addresses for a user",
- "description": "Lists your publicly visible email address. This endpoint is accessible with the `user:email` scope.",
- "operationId": "users-list-public-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/emails/#list-public-email-addresses-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/public_emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-public-keys-for-user.json b/openapi/ghe-2.15/operations/users/list-public-keys-for-user.json
deleted file mode 100644
index d6da58a97a..0000000000
--- a/openapi/ghe-2.15/operations/users/list-public-keys-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List public keys for a user",
- "description": "Lists the _verified_ public SSH keys for a user. This is accessible by anyone.",
- "operationId": "users-list-public-keys-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/keys/#list-public-keys-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list-public-keys.json b/openapi/ghe-2.15/operations/users/list-public-keys.json
deleted file mode 100644
index a24033544a..0000000000
--- a/openapi/ghe-2.15/operations/users/list-public-keys.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your public keys",
- "description": "Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/enterprise/2.15/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-list-public-keys",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/keys/#list-your-public-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/list.json b/openapi/ghe-2.15/operations/users/list.json
deleted file mode 100644
index f95c967f8a..0000000000
--- a/openapi/ghe-2.15/operations/users/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Get all users",
- "description": "Lists all users, in the order that they signed up on GitHub Enterprise. This list includes personal user accounts and organization accounts.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.15/v3/#link-header) to get the URL for the next page of users.",
- "operationId": "users-list",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/#get-all-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last User that you've seen."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/unfollow.json b/openapi/ghe-2.15/operations/users/unfollow.json
deleted file mode 100644
index 41da4e8408..0000000000
--- a/openapi/ghe-2.15/operations/users/unfollow.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Unfollow a user",
- "description": "Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
- "operationId": "users-unfollow",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/followers/#unfollow-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.15/operations/users/update-authenticated.json b/openapi/ghe-2.15/operations/users/update-authenticated.json
deleted file mode 100644
index 5bcf57748f..0000000000
--- a/openapi/ghe-2.15/operations/users/update-authenticated.json
+++ /dev/null
@@ -1,222 +0,0 @@
-{
- "summary": "Update the authenticated user",
- "description": "**Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.",
- "operationId": "users-update-authenticated",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.15/v3/users/#update-the-authenticated-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new name of the user.",
- "type": "string"
- },
- "email": {
- "description": "The publicly visible email address of the user.",
- "type": "string"
- },
- "blog": {
- "description": "The new blog URL of the user.",
- "type": "string"
- },
- "company": {
- "description": "The new company of the user.",
- "type": "string"
- },
- "location": {
- "description": "The new location of the user.",
- "type": "string"
- },
- "hireable": {
- "description": "The new hiring availability of the user.",
- "type": "boolean"
- },
- "bio": {
- "description": "The new short biography of the user.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "hireable": {
- "type": "boolean"
- },
- "bio": {
- "type": "string"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "private_gists": {
- "type": "number"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "two_factor_authentication": {
- "type": "boolean"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- }
- }
- },
- "suspended_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/index.json b/openapi/ghe-2.16/index.json
deleted file mode 100644
index 7ae8522d26..0000000000
--- a/openapi/ghe-2.16/index.json
+++ /dev/null
@@ -1,2122 +0,0 @@
-{
- "openapi": "3.0.2",
- "info": {
- "version": "3.0.0",
- "title": "GitHub Enterprise REST API v3",
- "description": "This describes the resources that make up the official GitHub Enterprise Server REST API v3. If you have any problems or requests, please contact [GitHub Enterprise Support](https://enterprise.github.com/support).",
- "license": {
- "name": "GitHub Enterprise License Agreement",
- "url": "https://enterprise.github.com/license"
- },
- "termsOfService": "https://help.github.com/en/articles/github-terms-of-service"
- },
- "servers": [
- {
- "url": "http://{hostname}",
- "variables": {
- "hostname": {
- "description": "Self-hosted Enterprise Server or Enterprise Cloud hostname",
- "default": "HOSTNAME"
- }
- }
- }
- ],
- "externalDocs": {
- "description": "GitHub Enterprise Developer Docs",
- "url": "https://developer.github.com/enterprise/2.16/v3/"
- },
- "paths": {
- "/admin/hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-global-hooks.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-global-hook.json"
- }
- },
- "/admin/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-global-hook.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-global-hook.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-global-hook.json"
- }
- },
- "/admin/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/enterprise-admin/ping-global-hook.json"
- }
- },
- "/admin/keys/{key_ids}": {
- "delete": {
- "$ref": "operations/enterprise-admin/delete-public-key.json"
- }
- },
- "/admin/ldap/teams/{team_id}/mapping": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-ldap-mapping-for-team.json"
- }
- },
- "/admin/ldap/teams/{team_id}/sync": {
- "post": {
- "$ref": "operations/enterprise-admin/sync-ldap-mapping-for-team.json"
- }
- },
- "/admin/ldap/users/{username}/mapping": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-ldap-mapping-for-user.json"
- }
- },
- "/admin/ldap/users/{username}/sync": {
- "post": {
- "$ref": "operations/enterprise-admin/sync-ldap-mapping-for-user.json"
- }
- },
- "/admin/organizations": {
- "post": {
- "$ref": "operations/enterprise-admin/create-org.json"
- }
- },
- "/admin/organizations/{org}": {
- "patch": {
- "$ref": "operations/enterprise-admin/rename-org.json"
- }
- },
- "/admin/pre-receive-environments": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-environments.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-pre-receive-environment.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-environment.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-environment.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-pre-receive-environment.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads": {
- "post": {
- "$ref": "operations/enterprise-admin/trigger-pre-receive-environment-download.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-environment-download-status.json"
- }
- },
- "/admin/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-pre-receive-hook.json"
- }
- },
- "/admin/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook.json"
- }
- },
- "/admin/pre_receive_hooks/{pre_receive_hook_id}": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-pre-receive-hook.json"
- }
- },
- "/admin/users": {
- "post": {
- "$ref": "operations/enterprise-admin/create-user.json"
- }
- },
- "/admin/users/{username}": {
- "patch": {
- "$ref": "operations/enterprise-admin/rename-user.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-user.json"
- }
- },
- "/admin/users/{username}/authorizations": {
- "post": {
- "$ref": "operations/enterprise-admin/create-impersonation-o-auth-token.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-impersonation-o-auth-token.json"
- }
- },
- "/app": {
- "get": {
- "$ref": "operations/apps/get-authenticated.json"
- }
- },
- "/app-manifests/{code}/conversions": {
- "post": {
- "$ref": "operations/apps/create-from-manifest.json"
- }
- },
- "/app/installations": {
- "get": {
- "$ref": "operations/apps/list-installations.json"
- }
- },
- "/app/installations/{installation_id}": {
- "get": {
- "$ref": "operations/apps/get-installation.json"
- }
- },
- "/app/installations/{installation_id}/access_tokens": {
- "post": {
- "$ref": "operations/apps/create-installation-token.json"
- }
- },
- "/applications/grants": {
- "get": {
- "$ref": "operations/oauth_authorizations/list-grants.json"
- }
- },
- "/applications/grants/{grant_id}": {
- "get": {
- "$ref": "operations/oauth_authorizations/get-grant.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/delete-grant.json"
- }
- },
- "/applications/{client_id}/grants/{access_token}": {
- "delete": {
- "$ref": "operations/oauth_authorizations/revoke-grant-for-application.json"
- }
- },
- "/applications/{client_id}/tokens/{access_token}": {
- "get": {
- "$ref": "operations/oauth_authorizations/check-authorization.json"
- },
- "post": {
- "$ref": "operations/oauth_authorizations/reset-authorization.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/revoke-authorization-for-application.json"
- }
- },
- "/apps/{app_slug}": {
- "get": {
- "$ref": "operations/apps/get-by-slug.json"
- }
- },
- "/authorizations": {
- "get": {
- "$ref": "operations/oauth_authorizations/list-authorizations.json"
- },
- "post": {
- "$ref": "operations/oauth_authorizations/create-authorization.json"
- }
- },
- "/authorizations/clients/{client_id}": {
- "put": {
- "$ref": "operations/oauth_authorizations/get-or-create-authorization-for-app.json"
- }
- },
- "/authorizations/clients/{client_id}/{fingerprint}": {
- "put": {
- "$ref": "operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json"
- }
- },
- "/authorizations/{authorization_id}": {
- "get": {
- "$ref": "operations/oauth_authorizations/get-authorization.json"
- },
- "patch": {
- "$ref": "operations/oauth_authorizations/update-authorization.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/delete-authorization.json"
- }
- },
- "/codes_of_conduct": {
- "get": {
- "$ref": "operations/codes_of_conduct/list-conduct-codes.json"
- }
- },
- "/codes_of_conduct/{key}": {
- "get": {
- "$ref": "operations/codes_of_conduct/get-conduct-code.json"
- }
- },
- "/content_references/{content_reference_id}/attachments": {
- "post": {
- "$ref": "operations/apps/create-content-attachment.json"
- }
- },
- "/emojis": {
- "get": {
- "$ref": "operations/emojis/get.json"
- }
- },
- "/enterprise/settings/license": {
- "get": {
- "$ref": "operations/enterprise-admin/get-license-information.json"
- }
- },
- "/enterprise/stats/{type}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-type-stats.json"
- }
- },
- "/events": {
- "get": {
- "$ref": "operations/activity/list-public-events.json"
- }
- },
- "/feeds": {
- "get": {
- "$ref": "operations/activity/list-feeds.json"
- }
- },
- "/gists": {
- "get": {
- "$ref": "operations/gists/list.json"
- },
- "post": {
- "$ref": "operations/gists/create.json"
- }
- },
- "/gists/public": {
- "get": {
- "$ref": "operations/gists/list-public.json"
- }
- },
- "/gists/starred": {
- "get": {
- "$ref": "operations/gists/list-starred.json"
- }
- },
- "/gists/{gist_id}": {
- "get": {
- "$ref": "operations/gists/get.json"
- },
- "patch": {
- "$ref": "operations/gists/update.json"
- },
- "delete": {
- "$ref": "operations/gists/delete.json"
- }
- },
- "/gists/{gist_id}/comments": {
- "get": {
- "$ref": "operations/gists/list-comments.json"
- },
- "post": {
- "$ref": "operations/gists/create-comment.json"
- }
- },
- "/gists/{gist_id}/comments/{comment_id}": {
- "get": {
- "$ref": "operations/gists/get-comment.json"
- },
- "patch": {
- "$ref": "operations/gists/update-comment.json"
- },
- "delete": {
- "$ref": "operations/gists/delete-comment.json"
- }
- },
- "/gists/{gist_id}/commits": {
- "get": {
- "$ref": "operations/gists/list-commits.json"
- }
- },
- "/gists/{gist_id}/forks": {
- "post": {
- "$ref": "operations/gists/fork.json"
- },
- "get": {
- "$ref": "operations/gists/list-forks.json"
- }
- },
- "/gists/{gist_id}/star": {
- "put": {
- "$ref": "operations/gists/star.json"
- },
- "delete": {
- "$ref": "operations/gists/unstar.json"
- },
- "get": {
- "$ref": "operations/gists/check-is-starred.json"
- }
- },
- "/gists/{gist_id}/{sha}": {
- "get": {
- "$ref": "operations/gists/get-revision.json"
- }
- },
- "/gitignore/templates": {
- "get": {
- "$ref": "operations/gitignore/list-templates.json"
- }
- },
- "/gitignore/templates/{name}": {
- "get": {
- "$ref": "operations/gitignore/get-template.json"
- }
- },
- "/installation/repositories": {
- "get": {
- "$ref": "operations/apps/list-repos.json"
- }
- },
- "/issues": {
- "get": {
- "$ref": "operations/issues/list.json"
- }
- },
- "/legacy/issues/search/{owner}/{repository}/{state}/{keyword}": {
- "get": {
- "$ref": "operations/search/issues-legacy.json"
- }
- },
- "/legacy/repos/search/{keyword}": {
- "get": {
- "$ref": "operations/search/repos-legacy.json"
- }
- },
- "/legacy/user/email/{email}": {
- "get": {
- "$ref": "operations/search/email-legacy.json"
- }
- },
- "/legacy/user/search/{keyword}": {
- "get": {
- "$ref": "operations/search/users-legacy.json"
- }
- },
- "/licenses": {
- "get": {
- "$ref": "operations/licenses/list-commonly-used.json"
- }
- },
- "/licenses/{license}": {
- "get": {
- "$ref": "operations/licenses/get.json"
- }
- },
- "/markdown": {
- "post": {
- "$ref": "operations/markdown/render.json"
- }
- },
- "/markdown/raw": {
- "post": {
- "$ref": "operations/markdown/render-raw.json"
- }
- },
- "/meta": {
- "get": {
- "$ref": "operations/meta/get.json"
- }
- },
- "/networks/{owner}/{repo}/events": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-repo-network.json"
- }
- },
- "/notifications": {
- "get": {
- "$ref": "operations/activity/list-notifications.json"
- },
- "put": {
- "$ref": "operations/activity/mark-as-read.json"
- }
- },
- "/notifications/threads/{thread_id}": {
- "get": {
- "$ref": "operations/activity/get-thread.json"
- },
- "patch": {
- "$ref": "operations/activity/mark-thread-as-read.json"
- }
- },
- "/notifications/threads/{thread_id}/subscription": {
- "get": {
- "$ref": "operations/activity/get-thread-subscription.json"
- },
- "put": {
- "$ref": "operations/activity/set-thread-subscription.json"
- },
- "delete": {
- "$ref": "operations/activity/delete-thread-subscription.json"
- }
- },
- "/organizations": {
- "get": {
- "$ref": "operations/orgs/list.json"
- }
- },
- "/orgs/{org}": {
- "get": {
- "$ref": "operations/orgs/get.json"
- },
- "patch": {
- "$ref": "operations/orgs/update.json"
- }
- },
- "/orgs/{org}/events": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-org.json"
- }
- },
- "/orgs/{org}/hooks": {
- "get": {
- "$ref": "operations/orgs/list-hooks.json"
- },
- "post": {
- "$ref": "operations/orgs/create-hook.json"
- }
- },
- "/orgs/{org}/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/orgs/get-hook.json"
- },
- "patch": {
- "$ref": "operations/orgs/update-hook.json"
- },
- "delete": {
- "$ref": "operations/orgs/delete-hook.json"
- }
- },
- "/orgs/{org}/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/orgs/ping-hook.json"
- }
- },
- "/orgs/{org}/installation": {
- "get": {
- "$ref": "operations/apps/get-org-installation.json"
- }
- },
- "/orgs/{org}/issues": {
- "get": {
- "$ref": "operations/issues/list-for-org.json"
- }
- },
- "/orgs/{org}/members": {
- "get": {
- "$ref": "operations/orgs/list-members.json"
- }
- },
- "/orgs/{org}/members/{username}": {
- "get": {
- "$ref": "operations/orgs/check-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/remove-member.json"
- }
- },
- "/orgs/{org}/memberships/{username}": {
- "get": {
- "$ref": "operations/orgs/get-membership.json"
- },
- "put": {
- "$ref": "operations/orgs/add-or-update-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/remove-membership.json"
- }
- },
- "/orgs/{org}/outside_collaborators": {
- "get": {
- "$ref": "operations/orgs/list-outside-collaborators.json"
- }
- },
- "/orgs/{org}/outside_collaborators/{username}": {
- "delete": {
- "$ref": "operations/orgs/remove-outside-collaborator.json"
- },
- "put": {
- "$ref": "operations/orgs/convert-member-to-outside-collaborator.json"
- }
- },
- "/orgs/{org}/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks-for-org.json"
- }
- },
- "/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook-for-org.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json"
- }
- },
- "/orgs/{org}/projects": {
- "get": {
- "$ref": "operations/projects/list-for-org.json"
- },
- "post": {
- "$ref": "operations/projects/create-for-org.json"
- }
- },
- "/orgs/{org}/public_members": {
- "get": {
- "$ref": "operations/orgs/list-public-members.json"
- }
- },
- "/orgs/{org}/public_members/{username}": {
- "get": {
- "$ref": "operations/orgs/check-public-membership.json"
- },
- "put": {
- "$ref": "operations/orgs/publicize-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/conceal-membership.json"
- }
- },
- "/orgs/{org}/repos": {
- "get": {
- "$ref": "operations/repos/list-for-org.json"
- },
- "post": {
- "$ref": "operations/repos/create-in-org.json"
- }
- },
- "/orgs/{org}/teams": {
- "get": {
- "$ref": "operations/teams/list.json"
- },
- "post": {
- "$ref": "operations/teams/create.json"
- }
- },
- "/projects/columns/cards/{card_id}": {
- "get": {
- "$ref": "operations/projects/get-card.json"
- },
- "patch": {
- "$ref": "operations/projects/update-card.json"
- },
- "delete": {
- "$ref": "operations/projects/delete-card.json"
- }
- },
- "/projects/columns/cards/{card_id}/moves": {
- "post": {
- "$ref": "operations/projects/move-card.json"
- }
- },
- "/projects/columns/{column_id}": {
- "get": {
- "$ref": "operations/projects/get-column.json"
- },
- "patch": {
- "$ref": "operations/projects/update-column.json"
- },
- "delete": {
- "$ref": "operations/projects/delete-column.json"
- }
- },
- "/projects/columns/{column_id}/cards": {
- "get": {
- "$ref": "operations/projects/list-cards.json"
- },
- "post": {
- "$ref": "operations/projects/create-card.json"
- }
- },
- "/projects/columns/{column_id}/moves": {
- "post": {
- "$ref": "operations/projects/move-column.json"
- }
- },
- "/projects/{project_id}": {
- "get": {
- "$ref": "operations/projects/get.json"
- },
- "patch": {
- "$ref": "operations/projects/update.json"
- },
- "delete": {
- "$ref": "operations/projects/delete.json"
- }
- },
- "/projects/{project_id}/collaborators": {
- "get": {
- "$ref": "operations/projects/list-collaborators.json"
- }
- },
- "/projects/{project_id}/collaborators/{username}": {
- "put": {
- "$ref": "operations/projects/add-collaborator.json"
- },
- "delete": {
- "$ref": "operations/projects/remove-collaborator.json"
- }
- },
- "/projects/{project_id}/collaborators/{username}/permission": {
- "get": {
- "$ref": "operations/projects/review-user-permission-level.json"
- }
- },
- "/projects/{project_id}/columns": {
- "get": {
- "$ref": "operations/projects/list-columns.json"
- },
- "post": {
- "$ref": "operations/projects/create-column.json"
- }
- },
- "/rate_limit": {
- "get": {
- "$ref": "operations/rate_limit/get.json"
- }
- },
- "/reactions/{reaction_id}": {
- "delete": {
- "$ref": "operations/reactions/delete.json"
- }
- },
- "/repos/{owner}/{repo}": {
- "get": {
- "$ref": "operations/repos/get.json"
- },
- "patch": {
- "$ref": "operations/repos/update.json"
- },
- "delete": {
- "$ref": "operations/repos/delete.json"
- }
- },
- "/repos/{owner}/{repo}/assignees": {
- "get": {
- "$ref": "operations/issues/list-assignees.json"
- }
- },
- "/repos/{owner}/{repo}/assignees/{assignee}": {
- "get": {
- "$ref": "operations/issues/check-assignee.json"
- }
- },
- "/repos/{owner}/{repo}/branches": {
- "get": {
- "$ref": "operations/repos/list-branches.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}": {
- "get": {
- "$ref": "operations/repos/get-branch.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection": {
- "get": {
- "$ref": "operations/repos/get-branch-protection.json"
- },
- "put": {
- "$ref": "operations/repos/update-branch-protection.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-branch-protection.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-admin-enforcement.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-admin-enforcement.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-admin-enforcement.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-pull-request-review-enforcement.json"
- },
- "patch": {
- "$ref": "operations/repos/update-protected-branch-pull-request-review-enforcement.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-pull-request-review-enforcement.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-required-signatures.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-required-signatures.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-signatures.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-required-status-checks.json"
- },
- "patch": {
- "$ref": "operations/repos/update-protected-branch-required-status-checks.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-status-checks.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-required-status-checks-contexts.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-required-status-checks-contexts.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-required-status-checks-contexts.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-status-checks-contexts.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-team-restrictions.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-team-restrictions.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-team-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-team-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-user-restrictions.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-user-restrictions.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-user-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-user-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs": {
- "post": {
- "$ref": "operations/checks/create.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs/{check_run_id}": {
- "patch": {
- "$ref": "operations/checks/update.json"
- },
- "get": {
- "$ref": "operations/checks/get.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": {
- "get": {
- "$ref": "operations/checks/list-annotations.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites": {
- "post": {
- "$ref": "operations/checks/create-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/preferences": {
- "patch": {
- "$ref": "operations/checks/set-suites-preferences.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}": {
- "get": {
- "$ref": "operations/checks/get-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": {
- "get": {
- "$ref": "operations/checks/list-for-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": {
- "post": {
- "$ref": "operations/checks/rerequest-suite.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators": {
- "get": {
- "$ref": "operations/repos/list-collaborators.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators/{username}": {
- "get": {
- "$ref": "operations/repos/check-collaborator.json"
- },
- "put": {
- "$ref": "operations/repos/add-collaborator.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-collaborator.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators/{username}/permission": {
- "get": {
- "$ref": "operations/repos/get-collaborator-permission-level.json"
- }
- },
- "/repos/{owner}/{repo}/comments": {
- "get": {
- "$ref": "operations/repos/list-commit-comments.json"
- }
- },
- "/repos/{owner}/{repo}/comments/{comment_id}": {
- "get": {
- "$ref": "operations/repos/get-commit-comment.json"
- },
- "patch": {
- "$ref": "operations/repos/update-commit-comment.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-commit-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/commits": {
- "get": {
- "$ref": "operations/repos/list-commits.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{commit_sha}/comments": {
- "get": {
- "$ref": "operations/repos/list-comments-for-commit.json"
- },
- "post": {
- "$ref": "operations/repos/create-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}": {
- "get": {
- "$ref": "operations/repos/get-commit.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/check-runs": {
- "get": {
- "$ref": "operations/checks/list-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/check-suites": {
- "get": {
- "$ref": "operations/checks/list-suites-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/status": {
- "get": {
- "$ref": "operations/repos/get-combined-status-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/statuses": {
- "get": {
- "$ref": "operations/repos/list-statuses-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/community/code_of_conduct": {
- "get": {
- "$ref": "operations/codes_of_conduct/get-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/compare/{base}...{head}": {
- "get": {
- "$ref": "operations/repos/compare-commits.json"
- }
- },
- "/repos/{owner}/{repo}/contents/{path}": {
- "get": {
- "$ref": "operations/repos/get-contents.json"
- },
- "put": {
- "$ref": "operations/repos/create-or-update-file.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-file.json"
- }
- },
- "/repos/{owner}/{repo}/contributors": {
- "get": {
- "$ref": "operations/repos/list-contributors.json"
- }
- },
- "/repos/{owner}/{repo}/deployments": {
- "get": {
- "$ref": "operations/repos/list-deployments.json"
- },
- "post": {
- "$ref": "operations/repos/create-deployment.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}": {
- "get": {
- "$ref": "operations/repos/get-deployment.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses": {
- "get": {
- "$ref": "operations/repos/list-deployment-statuses.json"
- },
- "post": {
- "$ref": "operations/repos/create-deployment-status.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": {
- "get": {
- "$ref": "operations/repos/get-deployment-status.json"
- }
- },
- "/repos/{owner}/{repo}/downloads": {
- "get": {
- "$ref": "operations/repos/list-downloads.json"
- }
- },
- "/repos/{owner}/{repo}/downloads/{download_id}": {
- "get": {
- "$ref": "operations/repos/get-download.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-download.json"
- }
- },
- "/repos/{owner}/{repo}/events": {
- "get": {
- "$ref": "operations/activity/list-repo-events.json"
- }
- },
- "/repos/{owner}/{repo}/forks": {
- "get": {
- "$ref": "operations/repos/list-forks.json"
- },
- "post": {
- "$ref": "operations/repos/create-fork.json"
- }
- },
- "/repos/{owner}/{repo}/git/blobs": {
- "post": {
- "$ref": "operations/git/create-blob.json"
- }
- },
- "/repos/{owner}/{repo}/git/blobs/{file_sha}": {
- "get": {
- "$ref": "operations/git/get-blob.json"
- }
- },
- "/repos/{owner}/{repo}/git/commits": {
- "post": {
- "$ref": "operations/git/create-commit.json"
- }
- },
- "/repos/{owner}/{repo}/git/commits/{commit_sha}": {
- "get": {
- "$ref": "operations/git/get-commit.json"
- }
- },
- "/repos/{owner}/{repo}/git/refs": {
- "post": {
- "$ref": "operations/git/create-ref.json"
- }
- },
- "/repos/{owner}/{repo}/git/refs/{ref}": {
- "get": {
- "$ref": "operations/git/get-ref.json"
- },
- "patch": {
- "$ref": "operations/git/update-ref.json"
- },
- "delete": {
- "$ref": "operations/git/delete-ref.json"
- }
- },
- "/repos/{owner}/{repo}/git/tags": {
- "post": {
- "$ref": "operations/git/create-tag.json"
- }
- },
- "/repos/{owner}/{repo}/git/tags/{tag_sha}": {
- "get": {
- "$ref": "operations/git/get-tag.json"
- }
- },
- "/repos/{owner}/{repo}/git/trees": {
- "post": {
- "$ref": "operations/git/create-tree.json"
- }
- },
- "/repos/{owner}/{repo}/git/trees/{tree_sha}": {
- "get": {
- "$ref": "operations/git/get-tree.json"
- }
- },
- "/repos/{owner}/{repo}/hooks": {
- "get": {
- "$ref": "operations/repos/list-hooks.json"
- },
- "post": {
- "$ref": "operations/repos/create-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/repos/get-hook.json"
- },
- "patch": {
- "$ref": "operations/repos/update-hook.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/repos/ping-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}/tests": {
- "post": {
- "$ref": "operations/repos/test-push-hook.json"
- }
- },
- "/repos/{owner}/{repo}/installation": {
- "get": {
- "$ref": "operations/apps/get-repo-installation.json"
- }
- },
- "/repos/{owner}/{repo}/invitations": {
- "get": {
- "$ref": "operations/repos/list-invitations.json"
- }
- },
- "/repos/{owner}/{repo}/invitations/{invitation_id}": {
- "delete": {
- "$ref": "operations/repos/delete-invitation.json"
- },
- "patch": {
- "$ref": "operations/repos/update-invitation.json"
- }
- },
- "/repos/{owner}/{repo}/issues": {
- "get": {
- "$ref": "operations/issues/list-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments": {
- "get": {
- "$ref": "operations/issues/list-comments-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{comment_id}": {
- "get": {
- "$ref": "operations/issues/get-comment.json"
- },
- "patch": {
- "$ref": "operations/issues/update-comment.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-issue-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-issue-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/events": {
- "get": {
- "$ref": "operations/issues/list-events-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/issues/events/{event_id}": {
- "get": {
- "$ref": "operations/issues/get-event.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}": {
- "get": {
- "$ref": "operations/issues/get.json"
- },
- "patch": {
- "$ref": "operations/issues/update.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/assignees": {
- "post": {
- "$ref": "operations/issues/add-assignees.json"
- },
- "delete": {
- "$ref": "operations/issues/remove-assignees.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/comments": {
- "get": {
- "$ref": "operations/issues/list-comments.json"
- },
- "post": {
- "$ref": "operations/issues/create-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/events": {
- "get": {
- "$ref": "operations/issues/list-events.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-on-issue.json"
- },
- "post": {
- "$ref": "operations/issues/add-labels.json"
- },
- "put": {
- "$ref": "operations/issues/replace-labels.json"
- },
- "delete": {
- "$ref": "operations/issues/remove-labels.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": {
- "delete": {
- "$ref": "operations/issues/remove-label.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/lock": {
- "put": {
- "$ref": "operations/issues/lock.json"
- },
- "delete": {
- "$ref": "operations/issues/unlock.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-issue.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-issue.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/timeline": {
- "get": {
- "$ref": "operations/issues/list-events-for-timeline.json"
- }
- },
- "/repos/{owner}/{repo}/keys": {
- "get": {
- "$ref": "operations/repos/list-deploy-keys.json"
- },
- "post": {
- "$ref": "operations/repos/add-deploy-key.json"
- }
- },
- "/repos/{owner}/{repo}/keys/{key_id}": {
- "get": {
- "$ref": "operations/repos/get-deploy-key.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-deploy-key.json"
- }
- },
- "/repos/{owner}/{repo}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create-label.json"
- }
- },
- "/repos/{owner}/{repo}/labels/{name}": {
- "get": {
- "$ref": "operations/issues/get-label.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-label.json"
- }
- },
- "/repos/{owner}/{repo}/languages": {
- "get": {
- "$ref": "operations/repos/list-languages.json"
- }
- },
- "/repos/{owner}/{repo}/license": {
- "get": {
- "$ref": "operations/licenses/get-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/merges": {
- "post": {
- "$ref": "operations/repos/merge.json"
- }
- },
- "/repos/{owner}/{repo}/milestones": {
- "get": {
- "$ref": "operations/issues/list-milestones-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/milestones/{milestone_number}": {
- "get": {
- "$ref": "operations/issues/get-milestone.json"
- },
- "patch": {
- "$ref": "operations/issues/update-milestone.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/milestones/{milestone_number}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-for-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/notifications": {
- "get": {
- "$ref": "operations/activity/list-notifications-for-repo.json"
- },
- "put": {
- "$ref": "operations/activity/mark-notifications-as-read-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pages": {
- "get": {
- "$ref": "operations/repos/get-pages.json"
- },
- "put": {
- "$ref": "operations/repos/update-information-about-pages-site.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds": {
- "post": {
- "$ref": "operations/repos/request-page-build.json"
- },
- "get": {
- "$ref": "operations/repos/list-pages-builds.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds/latest": {
- "get": {
- "$ref": "operations/repos/get-latest-pages-build.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds/{build_id}": {
- "get": {
- "$ref": "operations/repos/get-pages-build.json"
- }
- },
- "/repos/{owner}/{repo}/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook-for-repo.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/projects": {
- "get": {
- "$ref": "operations/projects/list-for-repo.json"
- },
- "post": {
- "$ref": "operations/projects/create-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pulls": {
- "get": {
- "$ref": "operations/pulls/list.json"
- },
- "post": {
- "$ref": "operations/pulls/create-from-issue.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments": {
- "get": {
- "$ref": "operations/pulls/list-comments-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments/{comment_id}": {
- "get": {
- "$ref": "operations/pulls/get-comment.json"
- },
- "patch": {
- "$ref": "operations/pulls/update-comment.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-comment.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-pull-request-review-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-pull-request-review-comment.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}": {
- "get": {
- "$ref": "operations/pulls/get.json"
- },
- "patch": {
- "$ref": "operations/pulls/update.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/comments": {
- "get": {
- "$ref": "operations/pulls/list-comments.json"
- },
- "post": {
- "$ref": "operations/pulls/create-comment-reply.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/commits": {
- "get": {
- "$ref": "operations/pulls/list-commits.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/files": {
- "get": {
- "$ref": "operations/pulls/list-files.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/merge": {
- "get": {
- "$ref": "operations/pulls/check-if-merged.json"
- },
- "put": {
- "$ref": "operations/pulls/merge.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
- "get": {
- "$ref": "operations/pulls/list-review-requests.json"
- },
- "post": {
- "$ref": "operations/pulls/create-review-request.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-review-request.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews": {
- "get": {
- "$ref": "operations/pulls/list-reviews.json"
- },
- "post": {
- "$ref": "operations/pulls/create-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": {
- "get": {
- "$ref": "operations/pulls/get-review.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-pending-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": {
- "get": {
- "$ref": "operations/pulls/get-comments-for-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": {
- "put": {
- "$ref": "operations/pulls/dismiss-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
- "post": {
- "$ref": "operations/pulls/submit-review.json"
- }
- },
- "/repos/{owner}/{repo}/readme": {
- "get": {
- "$ref": "operations/repos/get-readme.json"
- }
- },
- "/repos/{owner}/{repo}/releases": {
- "get": {
- "$ref": "operations/repos/list-releases.json"
- },
- "post": {
- "$ref": "operations/repos/create-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/assets/{asset_id}": {
- "get": {
- "$ref": "operations/repos/get-release-asset.json"
- },
- "patch": {
- "$ref": "operations/repos/update-release-asset.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-release-asset.json"
- }
- },
- "/repos/{owner}/{repo}/releases/latest": {
- "get": {
- "$ref": "operations/repos/get-latest-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/tags/{tag}": {
- "get": {
- "$ref": "operations/repos/get-release-by-tag.json"
- }
- },
- "/repos/{owner}/{repo}/releases/{release_id}": {
- "get": {
- "$ref": "operations/repos/get-release.json"
- },
- "patch": {
- "$ref": "operations/repos/update-release.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/{release_id}/assets": {
- "get": {
- "$ref": "operations/repos/list-assets-for-release.json"
- }
- },
- "/repos/{owner}/{repo}/stargazers": {
- "get": {
- "$ref": "operations/activity/list-stargazers-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/stats/code_frequency": {
- "get": {
- "$ref": "operations/repos/get-code-frequency-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/commit_activity": {
- "get": {
- "$ref": "operations/repos/get-commit-activity-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/contributors": {
- "get": {
- "$ref": "operations/repos/get-contributors-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/participation": {
- "get": {
- "$ref": "operations/repos/get-participation-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/punch_card": {
- "get": {
- "$ref": "operations/repos/get-punch-card-stats.json"
- }
- },
- "/repos/{owner}/{repo}/statuses/{sha}": {
- "post": {
- "$ref": "operations/repos/create-status.json"
- }
- },
- "/repos/{owner}/{repo}/subscribers": {
- "get": {
- "$ref": "operations/activity/list-watchers-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/subscription": {
- "get": {
- "$ref": "operations/activity/get-repo-subscription.json"
- },
- "put": {
- "$ref": "operations/activity/set-repo-subscription.json"
- },
- "delete": {
- "$ref": "operations/activity/delete-repo-subscription.json"
- }
- },
- "/repos/{owner}/{repo}/tags": {
- "get": {
- "$ref": "operations/repos/list-tags.json"
- }
- },
- "/repos/{owner}/{repo}/teams": {
- "get": {
- "$ref": "operations/repos/list-teams.json"
- }
- },
- "/repos/{owner}/{repo}/topics": {
- "get": {
- "$ref": "operations/repos/list-topics.json"
- },
- "put": {
- "$ref": "operations/repos/replace-topics.json"
- }
- },
- "/repos/{owner}/{repo}/transfer": {
- "post": {
- "$ref": "operations/repos/transfer.json"
- }
- },
- "/repos/{owner}/{repo}/{archive_format}/{ref}": {
- "get": {
- "$ref": "operations/repos/get-archive-link.json"
- }
- },
- "/repositories": {
- "get": {
- "$ref": "operations/repos/list-public.json"
- }
- },
- "/search/code": {
- "get": {
- "$ref": "operations/search/code.json"
- }
- },
- "/search/commits": {
- "get": {
- "$ref": "operations/search/commits.json"
- }
- },
- "/search/issues": {
- "get": {
- "$ref": "operations/search/issues-and-pull-requests.json"
- }
- },
- "/search/labels": {
- "get": {
- "$ref": "operations/search/labels.json"
- }
- },
- "/search/repositories": {
- "get": {
- "$ref": "operations/search/repos.json"
- }
- },
- "/search/topics": {
- "get": {
- "$ref": "operations/search/topics.json"
- }
- },
- "/search/users": {
- "get": {
- "$ref": "operations/search/users.json"
- }
- },
- "/setup/api/configcheck": {
- "get": {
- "$ref": "operations/enterprise-admin/check-configuration-status.json"
- }
- },
- "/setup/api/configure": {
- "post": {
- "$ref": "operations/enterprise-admin/start-configuration-process.json"
- }
- },
- "/setup/api/maintenance": {
- "get": {
- "$ref": "operations/enterprise-admin/check-maintenance-status.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/enable-or-disable-maintenance-mode.json"
- }
- },
- "/setup/api/settings": {
- "get": {
- "$ref": "operations/enterprise-admin/retrieve-settings.json"
- },
- "put": {
- "$ref": "operations/enterprise-admin/modify-settings.json"
- }
- },
- "/setup/api/settings/authorized-keys": {
- "get": {
- "$ref": "operations/enterprise-admin/retrieve-authorized-ssh-keys.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/add-authorized-ssh-key.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-authorized-ssh-key.json"
- }
- },
- "/setup/api/start": {
- "post": {
- "$ref": "operations/enterprise-admin/upload-license-for-first-time.json"
- }
- },
- "/setup/api/upgrade": {
- "post": {
- "$ref": "operations/enterprise-admin/upgrade-license.json"
- }
- },
- "/staff/indexing_jobs": {
- "post": {
- "$ref": "operations/enterprise-admin/queue-indexing-job.json"
- }
- },
- "/teams/{team_id}": {
- "get": {
- "$ref": "operations/teams/get.json"
- },
- "patch": {
- "$ref": "operations/teams/update.json"
- },
- "delete": {
- "$ref": "operations/teams/delete.json"
- }
- },
- "/teams/{team_id}/discussions": {
- "get": {
- "$ref": "operations/teams/list-discussions.json"
- },
- "post": {
- "$ref": "operations/teams/create-discussion.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}": {
- "get": {
- "$ref": "operations/teams/get-discussion.json"
- },
- "patch": {
- "$ref": "operations/teams/update-discussion.json"
- },
- "delete": {
- "$ref": "operations/teams/delete-discussion.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments": {
- "get": {
- "$ref": "operations/teams/list-discussion-comments.json"
- },
- "post": {
- "$ref": "operations/teams/create-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": {
- "get": {
- "$ref": "operations/teams/get-discussion-comment.json"
- },
- "patch": {
- "$ref": "operations/teams/update-discussion-comment.json"
- },
- "delete": {
- "$ref": "operations/teams/delete-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-team-discussion-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-team-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-team-discussion.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-team-discussion.json"
- }
- },
- "/teams/{team_id}/members": {
- "get": {
- "$ref": "operations/teams/list-members.json"
- }
- },
- "/teams/{team_id}/members/{username}": {
- "get": {
- "$ref": "operations/teams/get-member.json"
- },
- "put": {
- "$ref": "operations/teams/add-member.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-member.json"
- }
- },
- "/teams/{team_id}/memberships/{username}": {
- "get": {
- "$ref": "operations/teams/get-membership.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-membership.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-membership.json"
- }
- },
- "/teams/{team_id}/projects": {
- "get": {
- "$ref": "operations/teams/list-projects.json"
- }
- },
- "/teams/{team_id}/projects/{project_id}": {
- "get": {
- "$ref": "operations/teams/review-project.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-project.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-project.json"
- }
- },
- "/teams/{team_id}/repos": {
- "get": {
- "$ref": "operations/teams/list-repos.json"
- }
- },
- "/teams/{team_id}/repos/{owner}/{repo}": {
- "get": {
- "$ref": "operations/teams/check-manages-repo.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-repo.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-repo.json"
- }
- },
- "/teams/{team_id}/teams": {
- "get": {
- "$ref": "operations/teams/list-child.json"
- }
- },
- "/user": {
- "get": {
- "$ref": "operations/users/get-authenticated.json"
- },
- "patch": {
- "$ref": "operations/users/update-authenticated.json"
- }
- },
- "/user/emails": {
- "get": {
- "$ref": "operations/users/list-emails.json"
- },
- "post": {
- "$ref": "operations/users/add-emails.json"
- },
- "delete": {
- "$ref": "operations/users/delete-emails.json"
- }
- },
- "/user/followers": {
- "get": {
- "$ref": "operations/users/list-followers-for-authenticated-user.json"
- }
- },
- "/user/following": {
- "get": {
- "$ref": "operations/users/list-following-for-authenticated-user.json"
- }
- },
- "/user/following/{username}": {
- "get": {
- "$ref": "operations/users/check-following.json"
- },
- "put": {
- "$ref": "operations/users/follow.json"
- },
- "delete": {
- "$ref": "operations/users/unfollow.json"
- }
- },
- "/user/gpg_keys": {
- "get": {
- "$ref": "operations/users/list-gpg-keys.json"
- },
- "post": {
- "$ref": "operations/users/create-gpg-key.json"
- }
- },
- "/user/gpg_keys/{gpg_key_id}": {
- "get": {
- "$ref": "operations/users/get-gpg-key.json"
- },
- "delete": {
- "$ref": "operations/users/delete-gpg-key.json"
- }
- },
- "/user/installations": {
- "get": {
- "$ref": "operations/apps/list-installations-for-authenticated-user.json"
- }
- },
- "/user/installations/{installation_id}/repositories": {
- "get": {
- "$ref": "operations/apps/list-installation-repos-for-authenticated-user.json"
- }
- },
- "/user/installations/{installation_id}/repositories/{repository_id}": {
- "put": {
- "$ref": "operations/apps/add-repo-to-installation.json"
- },
- "delete": {
- "$ref": "operations/apps/remove-repo-from-installation.json"
- }
- },
- "/user/issues": {
- "get": {
- "$ref": "operations/issues/list-for-authenticated-user.json"
- }
- },
- "/user/keys": {
- "get": {
- "$ref": "operations/users/list-public-keys.json"
- },
- "post": {
- "$ref": "operations/users/create-public-key.json"
- }
- },
- "/user/keys/{key_id}": {
- "get": {
- "$ref": "operations/users/get-public-key.json"
- },
- "delete": {
- "$ref": "operations/users/delete-public-key.json"
- }
- },
- "/user/memberships/orgs": {
- "get": {
- "$ref": "operations/orgs/list-memberships.json"
- }
- },
- "/user/memberships/orgs/{org}": {
- "get": {
- "$ref": "operations/orgs/get-membership-for-authenticated-user.json"
- },
- "patch": {
- "$ref": "operations/orgs/update-membership.json"
- }
- },
- "/user/orgs": {
- "get": {
- "$ref": "operations/orgs/list-for-authenticated-user.json"
- }
- },
- "/user/public_emails": {
- "get": {
- "$ref": "operations/users/list-public-emails.json"
- }
- },
- "/user/repos": {
- "get": {
- "$ref": "operations/repos/list.json"
- },
- "post": {
- "$ref": "operations/repos/create-for-authenticated-user.json"
- }
- },
- "/user/repository_invitations": {
- "get": {
- "$ref": "operations/repos/list-invitations-for-authenticated-user.json"
- }
- },
- "/user/repository_invitations/{invitation_id}": {
- "patch": {
- "$ref": "operations/repos/accept-invitation.json"
- },
- "delete": {
- "$ref": "operations/repos/decline-invitation.json"
- }
- },
- "/user/starred": {
- "get": {
- "$ref": "operations/activity/list-repos-starred-by-authenticated-user.json"
- }
- },
- "/user/starred/{owner}/{repo}": {
- "get": {
- "$ref": "operations/activity/check-starring-repo.json"
- },
- "put": {
- "$ref": "operations/activity/star-repo.json"
- },
- "delete": {
- "$ref": "operations/activity/unstar-repo.json"
- }
- },
- "/user/subscriptions": {
- "get": {
- "$ref": "operations/activity/list-watched-repos-for-authenticated-user.json"
- }
- },
- "/user/subscriptions/{owner}/{repo}": {
- "get": {
- "$ref": "operations/activity/check-watching-repo-legacy.json"
- },
- "put": {
- "$ref": "operations/activity/watch-repo-legacy.json"
- },
- "delete": {
- "$ref": "operations/activity/stop-watching-repo-legacy.json"
- }
- },
- "/user/teams": {
- "get": {
- "$ref": "operations/teams/list-for-authenticated-user.json"
- }
- },
- "/users": {
- "get": {
- "$ref": "operations/users/list.json"
- }
- },
- "/users/{username}": {
- "get": {
- "$ref": "operations/users/get-by-username.json"
- }
- },
- "/users/{username}/events": {
- "get": {
- "$ref": "operations/activity/list-events-for-user.json"
- }
- },
- "/users/{username}/events/orgs/{org}": {
- "get": {
- "$ref": "operations/activity/list-events-for-org.json"
- }
- },
- "/users/{username}/events/public": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-user.json"
- }
- },
- "/users/{username}/followers": {
- "get": {
- "$ref": "operations/users/list-followers-for-user.json"
- }
- },
- "/users/{username}/following": {
- "get": {
- "$ref": "operations/users/list-following-for-user.json"
- }
- },
- "/users/{username}/following/{target_user}": {
- "get": {
- "$ref": "operations/users/check-following-for-user.json"
- }
- },
- "/users/{username}/gists": {
- "get": {
- "$ref": "operations/gists/list-public-for-user.json"
- }
- },
- "/users/{username}/gpg_keys": {
- "get": {
- "$ref": "operations/users/list-gpg-keys-for-user.json"
- }
- },
- "/users/{username}/hovercard": {
- "get": {
- "$ref": "operations/users/get-context-for-user.json"
- }
- },
- "/users/{username}/installation": {
- "get": {
- "$ref": "operations/apps/get-user-installation.json"
- }
- },
- "/users/{username}/keys": {
- "get": {
- "$ref": "operations/users/list-public-keys-for-user.json"
- }
- },
- "/users/{username}/orgs": {
- "get": {
- "$ref": "operations/orgs/list-for-user.json"
- }
- },
- "/users/{username}/received_events": {
- "get": {
- "$ref": "operations/activity/list-received-events-for-user.json"
- }
- },
- "/users/{username}/received_events/public": {
- "get": {
- "$ref": "operations/activity/list-received-public-events-for-user.json"
- }
- },
- "/users/{username}/repos": {
- "get": {
- "$ref": "operations/repos/list-for-user.json"
- }
- },
- "/users/{username}/site_admin": {
- "put": {
- "$ref": "operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json"
- }
- },
- "/users/{username}/starred": {
- "get": {
- "$ref": "operations/activity/list-repos-starred-by-user.json"
- }
- },
- "/users/{username}/subscriptions": {
- "get": {
- "$ref": "operations/activity/list-repos-watched-by-user.json"
- }
- },
- "/users/{username}/suspended": {
- "put": {
- "$ref": "operations/enterprise-admin/suspend-user.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/unsuspend-user.json"
- }
- }
- }
-}
diff --git a/openapi/ghe-2.16/operations/activity/check-starring-repo.json b/openapi/ghe-2.16/operations/activity/check-starring-repo.json
deleted file mode 100644
index 3600ec6686..0000000000
--- a/openapi/ghe-2.16/operations/activity/check-starring-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if you are starring a repository",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-check-starring-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/starring/#check-if-you-are-starring-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/check-watching-repo-legacy.json b/openapi/ghe-2.16/operations/activity/check-watching-repo-legacy.json
deleted file mode 100644
index dd94e5519d..0000000000
--- a/openapi/ghe-2.16/operations/activity/check-watching-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if you are watching a repository (LEGACY)",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-check-watching-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/delete-repo-subscription.json b/openapi/ghe-2.16/operations/activity/delete-repo-subscription.json
deleted file mode 100644
index 907b678e55..0000000000
--- a/openapi/ghe-2.16/operations/activity/delete-repo-subscription.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a Repository Subscription",
- "description": "This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://developer.github.com/enterprise/2.16/v3/activity/watching/#set-a-repository-subscription).",
- "operationId": "activity-delete-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/watching/#delete-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/delete-thread-subscription.json b/openapi/ghe-2.16/operations/activity/delete-thread-subscription.json
deleted file mode 100644
index 93e994ff72..0000000000
--- a/openapi/ghe-2.16/operations/activity/delete-thread-subscription.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a thread subscription",
- "description": "Mutes all future notifications for a conversation until you comment on the thread or get **@mention**ed.",
- "operationId": "activity-delete-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/notifications/#delete-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/get-repo-subscription.json b/openapi/ghe-2.16/operations/activity/get-repo-subscription.json
deleted file mode 100644
index e87101afb3..0000000000
--- a/openapi/ghe-2.16/operations/activity/get-repo-subscription.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get a Repository Subscription",
- "description": "",
- "operationId": "activity-get-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/watching/#get-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/get-thread-subscription.json b/openapi/ghe-2.16/operations/activity/get-thread-subscription.json
deleted file mode 100644
index b5738d4e2b..0000000000
--- a/openapi/ghe-2.16/operations/activity/get-thread-subscription.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "Get a thread subscription",
- "description": "This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://developer.github.com/enterprise/2.16/v3/activity/watching/#get-a-repository-subscription).\n\nNote that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread.",
- "operationId": "activity-get-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/notifications/#get-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "thread_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/get-thread.json b/openapi/ghe-2.16/operations/activity/get-thread.json
deleted file mode 100644
index e0cd6440b3..0000000000
--- a/openapi/ghe-2.16/operations/activity/get-thread.json
+++ /dev/null
@@ -1,298 +0,0 @@
-{
- "summary": "View a single thread",
- "description": "",
- "operationId": "activity-get-thread",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/notifications/#view-a-single-thread"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "string"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "subject": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "latest_comment_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "reason": {
- "type": "string"
- },
- "unread": {
- "type": "boolean"
- },
- "updated_at": {
- "type": "string"
- },
- "last_read_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads/"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-events-for-org.json b/openapi/ghe-2.16/operations/activity/list-events-for-org.json
deleted file mode 100644
index 54656adf1e..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-events-for-org.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List events for an organization",
- "description": "This is the user's organization dashboard. You must be authenticated as the user to view this.",
- "operationId": "activity-list-events-for-org",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/events/#list-events-for-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events/orgs/:org"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username',\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-events-for-user.json b/openapi/ghe-2.16/operations/activity/list-events-for-user.json
deleted file mode 100644
index f9f303dd49..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List events performed by a user",
- "description": "If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.",
- "operationId": "activity-list-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/events/#list-events-performed-by-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-feeds.json b/openapi/ghe-2.16/operations/activity/list-feeds.json
deleted file mode 100644
index 1326998bcf..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-feeds.json
+++ /dev/null
@@ -1,161 +0,0 @@
-{
- "summary": "List feeds",
- "description": "GitHub Enterprise Server provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:\n\n* **Timeline**: The GitHub Enterprise Server global public timeline\n* **User**: The public timeline for any user, using [URI template](https://developer.github.com/enterprise/2.16/v3/#hypermedia)\n* **Current user public**: The public timeline for the authenticated user\n* **Current user**: The private timeline for the authenticated user\n* **Current user actor**: The private timeline for activity created by the authenticated user\n* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.\n\n**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://developer.github.com/enterprise/2.16/v3/#basic-authentication) since current feed URIs use the older, non revocable auth tokens.",
- "operationId": "activity-list-feeds",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/feeds/#list-feeds"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "timeline_url": {
- "type": "string"
- },
- "user_url": {
- "type": "string"
- },
- "current_user_public_url": {
- "type": "string"
- },
- "current_user_url": {
- "type": "string"
- },
- "current_user_actor_url": {
- "type": "string"
- },
- "current_user_organization_url": {
- "type": "string"
- },
- "current_user_organization_urls": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "timeline": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_public": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_actor": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_organization": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_organizations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/feeds"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-notifications-for-repo.json b/openapi/ghe-2.16/operations/activity/list-notifications-for-repo.json
deleted file mode 100644
index 7788d84654..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-notifications-for-repo.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "summary": "List your notifications in a repository",
- "description": "List all notifications for the current user.",
- "operationId": "activity-list-notifications-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/notifications/#list-your-notifications-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "all",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, show notifications marked as read."
- },
- {
- "name": "participating",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, only shows notifications in which the user is directly participating or mentioned."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "before",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-notifications.json b/openapi/ghe-2.16/operations/activity/list-notifications.json
deleted file mode 100644
index 0643e5e6c6..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-notifications.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List your notifications",
- "description": "List all notifications for the current user, sorted by most recently updated.\n\nThe following example uses the `since` parameter to list notifications that have been updated after the specified time.",
- "operationId": "activity-list-notifications",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/notifications/#list-your-notifications"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "all",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, show notifications marked as read."
- },
- {
- "name": "participating",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, only shows notifications in which the user is directly participating or mentioned."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "before",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-public-events-for-org.json b/openapi/ghe-2.16/operations/activity/list-public-events-for-org.json
deleted file mode 100644
index e29e0045b3..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-public-events-for-org.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events for an organization",
- "description": "",
- "operationId": "activity-list-public-events-for-org",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/events/#list-public-events-for-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-public-events-for-repo-network.json b/openapi/ghe-2.16/operations/activity/list-public-events-for-repo-network.json
deleted file mode 100644
index bfac881125..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-public-events-for-repo-network.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List public events for a network of repositories",
- "description": "",
- "operationId": "activity-list-public-events-for-repo-network",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/events/#list-public-events-for-a-network-of-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/networks/octocat/:repo/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-public-events-for-user.json b/openapi/ghe-2.16/operations/activity/list-public-events-for-user.json
deleted file mode 100644
index 788d637ca5..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-public-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events performed by a user",
- "description": "",
- "operationId": "activity-list-public-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/events/#list-public-events-performed-by-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events/public"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-public-events.json b/openapi/ghe-2.16/operations/activity/list-public-events.json
deleted file mode 100644
index a7c17b3767..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-public-events.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List public events",
- "description": "We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.",
- "operationId": "activity-list-public-events",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/events/#list-public-events"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-received-events-for-user.json b/openapi/ghe-2.16/operations/activity/list-received-events-for-user.json
deleted file mode 100644
index e8e9a20175..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-received-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List events that a user has received",
- "description": "These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events.",
- "operationId": "activity-list-received-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/events/#list-events-that-a-user-has-received"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//received_events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-received-public-events-for-user.json b/openapi/ghe-2.16/operations/activity/list-received-public-events-for-user.json
deleted file mode 100644
index 4251f5d906..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-received-public-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events that a user has received",
- "description": "",
- "operationId": "activity-list-received-public-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/events/#list-public-events-that-a-user-has-received"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//received_events/public"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-repo-events.json b/openapi/ghe-2.16/operations/activity/list-repo-events.json
deleted file mode 100644
index 5a05efed30..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-repo-events.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List repository events",
- "description": "",
- "operationId": "activity-list-repo-events",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/events/#list-repository-events"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-repos-starred-by-authenticated-user.json b/openapi/ghe-2.16/operations/activity/list-repos-starred-by-authenticated-user.json
deleted file mode 100644
index f96535ef45..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-repos-starred-by-authenticated-user.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "List repositories being starred by the authenticated user",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.16/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-repos-starred-by-authenticated-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/starring/#list-repositories-being-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "One of `asc` (ascending) or `desc` (descending)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-repos-starred-by-user.json b/openapi/ghe-2.16/operations/activity/list-repos-starred-by-user.json
deleted file mode 100644
index 70752c2512..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-repos-starred-by-user.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List repositories being starred by a user",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.16/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-repos-starred-by-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/starring/#list-repositories-being-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "One of `asc` (ascending) or `desc` (descending)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//starred"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-repos-watched-by-user.json b/openapi/ghe-2.16/operations/activity/list-repos-watched-by-user.json
deleted file mode 100644
index e8e60e3b00..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-repos-watched-by-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List repositories being watched by a user",
- "description": "",
- "operationId": "activity-list-repos-watched-by-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/watching/#list-repositories-being-watched"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//subscriptions"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-stargazers-for-repo.json b/openapi/ghe-2.16/operations/activity/list-stargazers-for-repo.json
deleted file mode 100644
index ed3f374a22..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-stargazers-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List Stargazers",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.16/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-stargazers-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/starring/#list-stargazers"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stargazers"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-watched-repos-for-authenticated-user.json b/openapi/ghe-2.16/operations/activity/list-watched-repos-for-authenticated-user.json
deleted file mode 100644
index d1d6b02040..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-watched-repos-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List repositories being watched by the authenticated user",
- "description": "",
- "operationId": "activity-list-watched-repos-for-authenticated-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/watching/#list-repositories-being-watched"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/list-watchers-for-repo.json b/openapi/ghe-2.16/operations/activity/list-watchers-for-repo.json
deleted file mode 100644
index cc1dfec2cf..0000000000
--- a/openapi/ghe-2.16/operations/activity/list-watchers-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List watchers",
- "description": "",
- "operationId": "activity-list-watchers-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/watching/#list-watchers"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscribers"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/mark-as-read.json b/openapi/ghe-2.16/operations/activity/mark-as-read.json
deleted file mode 100644
index 1e07f16f25..0000000000
--- a/openapi/ghe-2.16/operations/activity/mark-as-read.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Mark as read",
- "description": "Marking a notification as \"read\" removes it from the [default view on GitHub Enterprise Server](https://github.com/notifications).",
- "operationId": "activity-mark-as-read",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/notifications/#mark-as-read"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "last_read_at": {
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/mark-notifications-as-read-for-repo.json b/openapi/ghe-2.16/operations/activity/mark-notifications-as-read-for-repo.json
deleted file mode 100644
index b575c1ffbc..0000000000
--- a/openapi/ghe-2.16/operations/activity/mark-notifications-as-read-for-repo.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Mark notifications as read in a repository",
- "description": "Marking all notifications in a repository as \"read\" removes them from the [default view on GitHub Enterprise Server](https://github.com/notifications).",
- "operationId": "activity-mark-notifications-as-read-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/notifications/#mark-notifications-as-read-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "last_read_at": {
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/mark-thread-as-read.json b/openapi/ghe-2.16/operations/activity/mark-thread-as-read.json
deleted file mode 100644
index 977ec077fc..0000000000
--- a/openapi/ghe-2.16/operations/activity/mark-thread-as-read.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "summary": "Mark a thread as read",
- "description": "",
- "operationId": "activity-mark-thread-as-read",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/notifications/#mark-a-thread-as-read"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads/"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/set-repo-subscription.json b/openapi/ghe-2.16/operations/activity/set-repo-subscription.json
deleted file mode 100644
index 2765b67332..0000000000
--- a/openapi/ghe-2.16/operations/activity/set-repo-subscription.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Set a Repository Subscription",
- "description": "If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://developer.github.com/enterprise/2.16/v3/activity/watching/#delete-a-repository-subscription) completely.",
- "operationId": "activity-set-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/watching/#set-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "subscribed": {
- "description": "Determines if notifications should be received from this repository.",
- "type": "boolean"
- },
- "ignored": {
- "description": "Determines if all notifications should be blocked from this repository.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/set-thread-subscription.json b/openapi/ghe-2.16/operations/activity/set-thread-subscription.json
deleted file mode 100644
index 0df8bac6bf..0000000000
--- a/openapi/ghe-2.16/operations/activity/set-thread-subscription.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "summary": "Set a thread subscription",
- "description": "This lets you subscribe or unsubscribe from a conversation.",
- "operationId": "activity-set-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/notifications/#set-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ignored": {
- "description": "Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread.",
- "type": "boolean",
- "default": false
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "thread_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/star-repo.json b/openapi/ghe-2.16/operations/activity/star-repo.json
deleted file mode 100644
index 5a3819afaa..0000000000
--- a/openapi/ghe-2.16/operations/activity/star-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Star a repository",
- "description": "Requires for the user to be authenticated.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "activity-star-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/starring/#star-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/stop-watching-repo-legacy.json b/openapi/ghe-2.16/operations/activity/stop-watching-repo-legacy.json
deleted file mode 100644
index c810ea08c8..0000000000
--- a/openapi/ghe-2.16/operations/activity/stop-watching-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Stop watching a repository (LEGACY)",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-stop-watching-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/watching/#stop-watching-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/unstar-repo.json b/openapi/ghe-2.16/operations/activity/unstar-repo.json
deleted file mode 100644
index 23a70f8017..0000000000
--- a/openapi/ghe-2.16/operations/activity/unstar-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Unstar a repository",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-unstar-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/starring/#unstar-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/activity/watch-repo-legacy.json b/openapi/ghe-2.16/operations/activity/watch-repo-legacy.json
deleted file mode 100644
index 0dd777317d..0000000000
--- a/openapi/ghe-2.16/operations/activity/watch-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Watch a repository (LEGACY)",
- "description": "Requires the user to be authenticated.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "activity-watch-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/activity/watching/#watch-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/add-repo-to-installation.json b/openapi/ghe-2.16/operations/apps/add-repo-to-installation.json
deleted file mode 100644
index e63363dc2a..0000000000
--- a/openapi/ghe-2.16/operations/apps/add-repo-to-installation.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Add repository to installation",
- "description": "Add a single repository to an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/enterprise/2.16/v3/auth/#basic-authentication) to access this endpoint.",
- "operationId": "apps-add-repo-to-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/installations/#add-repository-to-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "repository_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "repository_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories/:repository_id"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id',\n repository_id: 'repository_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/create-content-attachment.json b/openapi/ghe-2.16/operations/apps/create-content-attachment.json
deleted file mode 100644
index 9f34c084e6..0000000000
--- a/openapi/ghe-2.16/operations/apps/create-content-attachment.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Create a content attachment",
- "description": "Creates an attachment under a content reference URL in the body or comment of an issue or pull request. Use the `id` of the content reference from the [`content_reference` event](https://developer.github.com/enterprise/2.16/v3/activity/events/types/#contentreferenceevent) to create an attachment.\n\nThe app must create a content attachment within six hours of the content reference URL being posted. See \"[Using content attachments](https://developer.github.com/enterprise/2.16/apps/using-content-attachments/)\" for details about content attachments.\n\nYou must use an [installation access token](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.\n\nThis example creates a content attachment for the domain `https://errors.ai/`.",
- "operationId": "apps-create-content-attachment",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/installations/#create-a-content-attachment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.corsair-preview+json"
- },
- "required": true
- },
- {
- "name": "content_reference_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "content_reference_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the content attachment displayed in the body or comment of an issue or pull request.",
- "type": "string"
- },
- "body": {
- "description": "The body text of the content attachment displayed in the body or comment of an issue or pull request. This parameter supports markdown.",
- "type": "string"
- }
- },
- "required": [
- "title",
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.corsair-preview+json\" \\\n https://developer.github.com/content_references//attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n content_reference_id: 'content_reference_id',\n title: 'title',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/create-from-manifest.json b/openapi/ghe-2.16/operations/apps/create-from-manifest.json
deleted file mode 100644
index a15400061c..0000000000
--- a/openapi/ghe-2.16/operations/apps/create-from-manifest.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "summary": "Create a GitHub App from a manifest",
- "description": "Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://developer.github.com/enterprise/2.16/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`.",
- "operationId": "apps-create-from-manifest",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/#create-a-github-app-from-a-manifest"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "code",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "code parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- },
- "client_secret": {
- "type": "string"
- },
- "webhook_secret": {
- "type": "string"
- },
- "pem": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/app-manifests//conversions"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n code: 'code'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/create-installation-token.json b/openapi/ghe-2.16/operations/apps/create-installation-token.json
deleted file mode 100644
index bf7296a97f..0000000000
--- a/openapi/ghe-2.16/operations/apps/create-installation-token.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Create a new installation token",
- "description": "Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-create-installation-token",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/#create-a-new-installation-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "token": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations//access_tokens"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/get-authenticated.json b/openapi/ghe-2.16/operations/apps/get-authenticated.json
deleted file mode 100644
index 2135728929..0000000000
--- a/openapi/ghe-2.16/operations/apps/get-authenticated.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Get the authenticated GitHub App",
- "description": "Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the \"[List installations](https://developer.github.com/enterprise/2.16/v3/apps/#list-installations)\" endpoint.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-authenticated",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/#get-the-authenticated-github-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "installations_count": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/get-by-slug.json b/openapi/ghe-2.16/operations/apps/get-by-slug.json
deleted file mode 100644
index 15930cc69f..0000000000
--- a/openapi/ghe-2.16/operations/apps/get-by-slug.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "summary": "Get a single GitHub App",
- "description": "**Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).\n\nIf the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.",
- "operationId": "apps-get-by-slug",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/#get-a-single-github-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "app_slug",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "app_slug parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/apps/"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n app_slug: 'app_slug'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/get-installation.json b/openapi/ghe-2.16/operations/apps/get-installation.json
deleted file mode 100644
index 478f2fadf1..0000000000
--- a/openapi/ghe-2.16/operations/apps/get-installation.json
+++ /dev/null
@@ -1,153 +0,0 @@
-{
- "summary": "Get an installation",
- "description": "You must use a [JWT](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/#get-an-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "issues": {
- "type": "string"
- },
- "single_file": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "single_file_name": {
- "type": "string"
- },
- "repository_selection": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations/"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/get-org-installation.json b/openapi/ghe-2.16/operations/apps/get-org-installation.json
deleted file mode 100644
index d603b2c596..0000000000
--- a/openapi/ghe-2.16/operations/apps/get-org-installation.json
+++ /dev/null
@@ -1,185 +0,0 @@
-{
- "summary": "Get an organization installation",
- "description": "Enables an authenticated GitHub App to find the organization's installation information.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-org-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/#get-an-organization-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/orgs//installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find organization installation\" renamed to \"Get an organization installation\"",
- "meta": {
- "before": {
- "idName": "find-org-installation"
- },
- "after": {
- "idName": "get-org-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/apps/get-repo-installation.json b/openapi/ghe-2.16/operations/apps/get-repo-installation.json
deleted file mode 100644
index 214b04f787..0000000000
--- a/openapi/ghe-2.16/operations/apps/get-repo-installation.json
+++ /dev/null
@@ -1,194 +0,0 @@
-{
- "summary": "Get a repository installation",
- "description": "Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-repo-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/#get-a-repository-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find repository installation\" renamed to \"Get a repository installation\"",
- "meta": {
- "before": {
- "idName": "find-repo-installation"
- },
- "after": {
- "idName": "get-repo-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/apps/get-user-installation.json b/openapi/ghe-2.16/operations/apps/get-user-installation.json
deleted file mode 100644
index bd857bdba6..0000000000
--- a/openapi/ghe-2.16/operations/apps/get-user-installation.json
+++ /dev/null
@@ -1,188 +0,0 @@
-{
- "summary": "Get a user installation",
- "description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-user-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/#get-a-user-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/users//installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find repository installation\" renamed to \"Get a repository installation\"",
- "meta": {
- "before": {
- "idName": "find-user-installation"
- },
- "after": {
- "idName": "get-user-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/apps/list-installation-repos-for-authenticated-user.json b/openapi/ghe-2.16/operations/apps/list-installation-repos-for-authenticated-user.json
deleted file mode 100644
index a763018582..0000000000
--- a/openapi/ghe-2.16/operations/apps/list-installation-repos-for-authenticated-user.json
+++ /dev/null
@@ -1,391 +0,0 @@
-{
- "summary": "List repositories accessible to the user for an installation",
- "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou must use a [user-to-server OAuth access token](https://developer.github.com/enterprise/2.16/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe access the user has to each repository is included in the hash under the `permissions` key.",
- "operationId": "apps-list-installation-repos-for-authenticated-user",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "repositories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/list-installations-for-authenticated-user.json b/openapi/ghe-2.16/operations/apps/list-installations-for-authenticated-user.json
deleted file mode 100644
index e72b4db135..0000000000
--- a/openapi/ghe-2.16/operations/apps/list-installations-for-authenticated-user.json
+++ /dev/null
@@ -1,218 +0,0 @@
-{
- "summary": "List installations for a user",
- "description": "Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nYou must use a [user-to-server OAuth access token](https://developer.github.com/enterprise/2.16/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou can find the permissions for the installation under the `permissions` key.",
- "operationId": "apps-list-installations-for-authenticated-user",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/installations/#list-installations-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "installations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "issues": {
- "type": "string"
- },
- "single_file": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "single_file_name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "account",
- "access_tokens_url",
- "repositories_url",
- "html_url",
- "app_id",
- "target_id",
- "target_type",
- "permissions",
- "events",
- "single_file_name"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/list-installations.json b/openapi/ghe-2.16/operations/apps/list-installations.json
deleted file mode 100644
index d49860832f..0000000000
--- a/openapi/ghe-2.16/operations/apps/list-installations.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "List installations",
- "description": "You must use a [JWT](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.\n\nThe permissions the installation has are included under the `permissions` key.",
- "operationId": "apps-list-installations",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/#list-installations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/list-repos.json b/openapi/ghe-2.16/operations/apps/list-repos.json
deleted file mode 100644
index e5559c1d46..0000000000
--- a/openapi/ghe-2.16/operations/apps/list-repos.json
+++ /dev/null
@@ -1,368 +0,0 @@
-{
- "summary": "List repositories",
- "description": "List repositories that an installation can access.\n\nYou must use an [installation access token](https://developer.github.com/enterprise/2.16/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.",
- "operationId": "apps-list-repos",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/installations/#list-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "repositories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/installation/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/apps/remove-repo-from-installation.json b/openapi/ghe-2.16/operations/apps/remove-repo-from-installation.json
deleted file mode 100644
index 5160e6bedd..0000000000
--- a/openapi/ghe-2.16/operations/apps/remove-repo-from-installation.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Remove repository from installation",
- "description": "Remove a single repository from an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/enterprise/2.16/v3/auth/#basic-authentication) to access this endpoint.",
- "operationId": "apps-remove-repo-from-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/apps/installations/#remove-repository-from-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "repository_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "repository_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories/:repository_id"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id',\n repository_id: 'repository_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/create-suite.json b/openapi/ghe-2.16/operations/checks/create-suite.json
deleted file mode 100644
index 917eeb216b..0000000000
--- a/openapi/ghe-2.16/operations/checks/create-suite.json
+++ /dev/null
@@ -1,493 +0,0 @@
-{
- "summary": "Create a check suite",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nBy default, check suites are automatically created when you create a [check run](https://developer.github.com/enterprise/2.16/v3/checks/runs/). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"[Set preferences for check suites on a repository](https://developer.github.com/enterprise/2.16/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository)\". Your GitHub App must have the `checks:write` permission to create check suites.",
- "operationId": "checks-create-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/suites/#create-a-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "head_sha": {
- "description": "The sha of the head commit.",
- "type": "string"
- }
- },
- "required": [
- "head_sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites \\\n -d '{\"head_sha\":\"head_sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n head_sha: 'head_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/create.json b/openapi/ghe-2.16/operations/checks/create.json
deleted file mode 100644
index 4742dd6e08..0000000000
--- a/openapi/ghe-2.16/operations/checks/create.json
+++ /dev/null
@@ -1,457 +0,0 @@
-{
- "summary": "Create a check run",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
- "operationId": "checks-create",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/runs/#create-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the check. For example, \"code-coverage\".",
- "type": "string"
- },
- "head_sha": {
- "description": "The SHA of the commit.",
- "type": "string"
- },
- "details_url": {
- "description": "The URL of the integrator's site that has the full details of the check.",
- "type": "string"
- },
- "external_id": {
- "description": "A reference for the run on the integrator's system.",
- "type": "string"
- },
- "status": {
- "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ],
- "default": "queued"
- },
- "started_at": {
- "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "conclusion": {
- "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.",
- "type": "string",
- "enum": [
- "success",
- "failure",
- "neutral",
- "cancelled",
- "timed_out",
- "action_required"
- ]
- },
- "completed_at": {
- "description": "**Required if you provide `conclusion`**. The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "output": {
- "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#output-object) description.",
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the check run.",
- "type": "string"
- },
- "summary": {
- "description": "The summary of the check run. This parameter supports Markdown.",
- "type": "string"
- },
- "text": {
- "description": "The details of the check run. This parameter supports Markdown.",
- "type": "string"
- },
- "annotations": {
- "description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/enterprise/2.16/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#annotations-object) description for details about how to use this parameter.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "type": "string"
- },
- "start_line": {
- "description": "The start line of the annotation.",
- "type": "integer"
- },
- "end_line": {
- "description": "The end line of the annotation.",
- "type": "integer"
- },
- "start_column": {
- "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "end_column": {
- "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "annotation_level": {
- "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
- "type": "string",
- "enum": [
- "notice",
- "warning",
- "failure"
- ]
- },
- "message": {
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "type": "string"
- },
- "title": {
- "description": "The title that represents the annotation. The maximum size is 255 characters.",
- "type": "string"
- },
- "raw_details": {
- "description": "Details about this annotation. The maximum size is 64 KB.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- }
- },
- "images": {
- "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#images-object) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "description": "The alternative text for the image.",
- "type": "string"
- },
- "image_url": {
- "description": "The full URL of the image.",
- "type": "string"
- },
- "caption": {
- "description": "A short image description.",
- "type": "string"
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- }
- }
- },
- "required": [
- "title",
- "summary"
- ]
- },
- "actions": {
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.16/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "type": "string"
- },
- "description": {
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "type": "string"
- },
- "identifier": {
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "type": "string"
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- }
- }
- },
- "required": [
- "name",
- "head_sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs \\\n -d '{\"name\":\"name\",\"head_sha\":\"head_sha\",\"output.title\":\"output.title\",\"output.summary\":\"output.summary\",\"output.annotations[].path\":\"output.annotations[].path\",\"output.annotations[].start_line\":\"output.annotations[].start_line\",\"output.annotations[].end_line\":\"output.annotations[].end_line\",\"output.annotations[].annotation_level\":\"output.annotations[].annotation_level\",\"output.annotations[].message\":\"output.annotations[].message\",\"output.images[].alt\":\"output.images[].alt\",\"output.images[].image_url\":\"output.images[].image_url\",\"actions[].label\":\"actions[].label\",\"actions[].description\":\"actions[].description\",\"actions[].identifier\":\"actions[].identifier\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name',\n head_sha: 'head_sha',\n 'output.title': 'output.title',\n 'output.summary': 'output.summary',\n 'output.annotations[].path': 'output.annotations[].path',\n 'output.annotations[].start_line': 'output.annotations[].start_line',\n 'output.annotations[].end_line': 'output.annotations[].end_line',\n 'output.annotations[].annotation_level': 'output.annotations[].annotation_level',\n 'output.annotations[].message': 'output.annotations[].message',\n 'output.images[].alt': 'output.images[].alt',\n 'output.images[].image_url': 'output.images[].image_url',\n 'actions[].label': 'actions[].label',\n 'actions[].description': 'actions[].description',\n 'actions[].identifier': 'actions[].identifier'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/get-suite.json b/openapi/ghe-2.16/operations/checks/get-suite.json
deleted file mode 100644
index 433b7659af..0000000000
--- a/openapi/ghe-2.16/operations/checks/get-suite.json
+++ /dev/null
@@ -1,484 +0,0 @@
-{
- "summary": "Get a single check suite",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nGets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.",
- "operationId": "checks-get-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/suites/#get-a-single-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/get.json b/openapi/ghe-2.16/operations/checks/get.json
deleted file mode 100644
index c20a5b6c39..0000000000
--- a/openapi/ghe-2.16/operations/checks/get.json
+++ /dev/null
@@ -1,281 +0,0 @@
-{
- "summary": "Get a single check run",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nGets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-get",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/runs/#get-a-single-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/list-annotations.json b/openapi/ghe-2.16/operations/checks/list-annotations.json
deleted file mode 100644
index a4b7d20d85..0000000000
--- a/openapi/ghe-2.16/operations/checks/list-annotations.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "List annotations for a check run",
- "description": "Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository.",
- "operationId": "checks-list-annotations",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/runs/#list-annotations-for-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id/annotations"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/list-for-ref.json b/openapi/ghe-2.16/operations/checks/list-for-ref.json
deleted file mode 100644
index 3d68ecd902..0000000000
--- a/openapi/ghe-2.16/operations/checks/list-for-ref.json
+++ /dev/null
@@ -1,349 +0,0 @@
-{
- "summary": "List check runs for a specific ref",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nLists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-list-for-ref",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/runs/#list-check-runs-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Returns check runs with the specified `name`."
- },
- {
- "name": "status",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "required": false,
- "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`."
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "latest",
- "all"
- ],
- "default": "latest"
- },
- "required": false,
- "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_runs": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/check-runs"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/list-for-suite.json b/openapi/ghe-2.16/operations/checks/list-for-suite.json
deleted file mode 100644
index b37d3de2c8..0000000000
--- a/openapi/ghe-2.16/operations/checks/list-for-suite.json
+++ /dev/null
@@ -1,349 +0,0 @@
-{
- "summary": "List check runs in a check suite",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nLists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-list-for-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/runs/#list-check-runs-in-a-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Returns check runs with the specified `name`."
- },
- {
- "name": "status",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "required": false,
- "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`."
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "latest",
- "all"
- ],
- "default": "latest"
- },
- "required": false,
- "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_runs": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id/check-runs"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/list-suites-for-ref.json b/openapi/ghe-2.16/operations/checks/list-suites-for-ref.json
deleted file mode 100644
index b05a57f384..0000000000
--- a/openapi/ghe-2.16/operations/checks/list-suites-for-ref.json
+++ /dev/null
@@ -1,533 +0,0 @@
-{
- "summary": "List check suites for a specific ref",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nLists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.",
- "operationId": "checks-list-suites-for-ref",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/suites/#list-check-suites-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "app_id",
- "in": "query",
- "schema": {
- "type": "integer"
- },
- "required": false,
- "description": "Filters check suites by GitHub App `id`."
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filters checks suites by the name of the [check run](https://developer.github.com/enterprise/2.16/v3/checks/runs/)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_suites": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/check-suites"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/rerequest-suite.json b/openapi/ghe-2.16/operations/checks/rerequest-suite.json
deleted file mode 100644
index d57ca41800..0000000000
--- a/openapi/ghe-2.16/operations/checks/rerequest-suite.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "summary": "Rerequest check suite",
- "description": "Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://developer.github.com/enterprise/2.16/v3/activity/events/types/#checksuiteevent) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.\n\nTo rerequest a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
- "operationId": "checks-rerequest-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/suites/#rerequest-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id/rerequest"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/set-suites-preferences.json b/openapi/ghe-2.16/operations/checks/set-suites-preferences.json
deleted file mode 100644
index d1205294c0..0000000000
--- a/openapi/ghe-2.16/operations/checks/set-suites-preferences.json
+++ /dev/null
@@ -1,430 +0,0 @@
-{
- "summary": "Set preferences for check suites on a repository",
- "description": "Changes the default automatic flow when creating check suites. By default, the CheckSuiteEvent is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://developer.github.com/enterprise/2.16/v3/checks/suites/#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites.",
- "operationId": "checks-set-suites-preferences",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "auto_trigger_checks": {
- "description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/enterprise/2.16/v3/checks/suites/#auto_trigger_checks-object) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "description": "The `id` of the GitHub App.",
- "type": "integer"
- },
- "setting": {
- "description": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "preferences": {
- "type": "object",
- "properties": {
- "auto_trigger_checks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "type": "number"
- },
- "setting": {
- "type": "boolean"
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- }
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/preferences \\\n -d '{\"auto_trigger_checks[].app_id\":\"auto_trigger_checks[].app_id\",\"auto_trigger_checks[].setting\":\"auto_trigger_checks[].setting\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n 'auto_trigger_checks[].app_id': 'auto_trigger_checks[].app_id',\n 'auto_trigger_checks[].setting': 'auto_trigger_checks[].setting'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/checks/update.json b/openapi/ghe-2.16/operations/checks/update.json
deleted file mode 100644
index c3a5d5409c..0000000000
--- a/openapi/ghe-2.16/operations/checks/update.json
+++ /dev/null
@@ -1,462 +0,0 @@
-{
- "summary": "Update a check run",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nUpdates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs.",
- "operationId": "checks-update",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/checks/runs/#update-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the check. For example, \"code-coverage\".",
- "type": "string"
- },
- "details_url": {
- "description": "The URL of the integrator's site that has the full details of the check.",
- "type": "string"
- },
- "external_id": {
- "description": "A reference for the run on the integrator's system.",
- "type": "string"
- },
- "started_at": {
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "status": {
- "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "conclusion": {
- "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.",
- "type": "string",
- "enum": [
- "success",
- "failure",
- "neutral",
- "cancelled",
- "timed_out",
- "action_required"
- ]
- },
- "completed_at": {
- "description": "**Required if you provide `conclusion`**. The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "output": {
- "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#output-object-1) description.",
- "type": "object",
- "properties": {
- "title": {
- "description": "**Required**.",
- "type": "string"
- },
- "summary": {
- "description": "Can contain Markdown.",
- "type": "string"
- },
- "text": {
- "description": "Can contain Markdown.",
- "type": "string"
- },
- "annotations": {
- "description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/enterprise/2.16/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#annotations-object-1) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "type": "string"
- },
- "start_line": {
- "description": "The start line of the annotation.",
- "type": "integer"
- },
- "end_line": {
- "description": "The end line of the annotation.",
- "type": "integer"
- },
- "start_column": {
- "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "end_column": {
- "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "annotation_level": {
- "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
- "type": "string",
- "enum": [
- "notice",
- "warning",
- "failure"
- ]
- },
- "message": {
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "type": "string"
- },
- "title": {
- "description": "The title that represents the annotation. The maximum size is 255 characters.",
- "type": "string"
- },
- "raw_details": {
- "description": "Details about this annotation. The maximum size is 64 KB.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- }
- },
- "images": {
- "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#annotations-object-1) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "description": "The alternative text for the image.",
- "type": "string"
- },
- "image_url": {
- "description": "The full URL of the image.",
- "type": "string"
- },
- "caption": {
- "description": "A short image description.",
- "type": "string"
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- }
- }
- },
- "required": [
- "summary"
- ]
- },
- "actions": {
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "type": "string"
- },
- "description": {
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "type": "string"
- },
- "identifier": {
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "type": "string"
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id \\\n -d '{\"output.summary\":\"output.summary\",\"output.annotations[].path\":\"output.annotations[].path\",\"output.annotations[].start_line\":\"output.annotations[].start_line\",\"output.annotations[].end_line\":\"output.annotations[].end_line\",\"output.annotations[].annotation_level\":\"output.annotations[].annotation_level\",\"output.annotations[].message\":\"output.annotations[].message\",\"output.images[].alt\":\"output.images[].alt\",\"output.images[].image_url\":\"output.images[].image_url\",\"actions[].label\":\"actions[].label\",\"actions[].description\":\"actions[].description\",\"actions[].identifier\":\"actions[].identifier\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id',\n 'output.summary': 'output.summary',\n 'output.annotations[].path': 'output.annotations[].path',\n 'output.annotations[].start_line': 'output.annotations[].start_line',\n 'output.annotations[].end_line': 'output.annotations[].end_line',\n 'output.annotations[].annotation_level': 'output.annotations[].annotation_level',\n 'output.annotations[].message': 'output.annotations[].message',\n 'output.images[].alt': 'output.images[].alt',\n 'output.images[].image_url': 'output.images[].image_url',\n 'actions[].label': 'actions[].label',\n 'actions[].description': 'actions[].description',\n 'actions[].identifier': 'actions[].identifier'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/codes_of_conduct/get-conduct-code.json b/openapi/ghe-2.16/operations/codes_of_conduct/get-conduct-code.json
deleted file mode 100644
index d8d5584f47..0000000000
--- a/openapi/ghe-2.16/operations/codes_of_conduct/get-conduct-code.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "summary": "Get an individual code of conduct",
- "description": "",
- "operationId": "codes_of_conduct-get-conduct-code",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/codes_of_conduct/#get-an-individual-code-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- },
- {
- "name": "key",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "key parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/codes_of_conduct/"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get({\n key: 'key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/codes_of_conduct/get-for-repo.json b/openapi/ghe-2.16/operations/codes_of_conduct/get-for-repo.json
deleted file mode 100644
index 979d58a505..0000000000
--- a/openapi/ghe-2.16/operations/codes_of_conduct/get-for-repo.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "summary": "Get the contents of a repository's code of conduct",
- "description": "This method returns the contents of the repository's code of conduct file, if one is detected.",
- "operationId": "codes_of_conduct-get-for-repo",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/community/code_of_conduct"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/codes_of_conduct/list-conduct-codes.json b/openapi/ghe-2.16/operations/codes_of_conduct/list-conduct-codes.json
deleted file mode 100644
index 3b52d8140d..0000000000
--- a/openapi/ghe-2.16/operations/codes_of_conduct/list-conduct-codes.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "summary": "List all codes of conduct",
- "description": "",
- "operationId": "codes_of_conduct-list-conduct-codes",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/codes_of_conduct/#list-all-codes-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/codes_of_conduct"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/emojis/get.json b/openapi/ghe-2.16/operations/emojis/get.json
deleted file mode 100644
index 44866d5c45..0000000000
--- a/openapi/ghe-2.16/operations/emojis/get.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Get",
- "description": "Lists all the emojis available to use on GitHub Enterprise Server.\n\n",
- "operationId": "emojis-get",
- "tags": [
- "emojis"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/emojis/#emojis"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/emojis"
- },
- {
- "lang": "JS",
- "source": "octokit.emojis.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/add-authorized-ssh-key.json b/openapi/ghe-2.16/operations/enterprise-admin/add-authorized-ssh-key.json
deleted file mode 100644
index e1e1a3378e..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/add-authorized-ssh-key.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Add a new authorized SSH key",
- "description": "",
- "operationId": "enterprise-admin-add-authorized-ssh-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#add-a-new-authorized-ssh-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "authorized_key": {
- "description": "The path to the public SSH key.",
- "type": "string"
- }
- },
- "required": [
- "authorized_key"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys \\\n -d '{\"authorized_key\":\"authorized_key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n authorized_key: 'authorized_key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/check-configuration-status.json b/openapi/ghe-2.16/operations/enterprise-admin/check-configuration-status.json
deleted file mode 100644
index 252d61e378..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/check-configuration-status.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Check configuration status",
- "description": "This endpoint allows you to check the status of the most recent configuration process:\n\nNote that you may need to wait several seconds after you start a process before you can check its status.\n\nThe different statuses are:\n\n| Status | Description |\n| ------------- | --------------------------------- |\n| `PENDING` | The job has not started yet |\n| `CONFIGURING` | The job is running |\n| `DONE` | The job has finished correctly |\n| `FAILED` | The job has finished unexpectedly |",
- "operationId": "enterprise-admin-check-configuration-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#check-configuration-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "progress": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "key"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/configcheck"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/check-maintenance-status.json b/openapi/ghe-2.16/operations/enterprise-admin/check-maintenance-status.json
deleted file mode 100644
index f1c3a8f6ab..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/check-maintenance-status.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "Check maintenance status",
- "description": "Check your installation's maintenance status:",
- "operationId": "enterprise-admin-check-maintenance-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#check-maintenance-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "scheduled_time": {
- "type": "string"
- },
- "connection_services": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "number": {
- "type": "number"
- }
- },
- "required": [
- "name",
- "number"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/maintenance"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/create-global-hook.json b/openapi/ghe-2.16/operations/enterprise-admin/create-global-hook.json
deleted file mode 100644
index 87c8086908..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/create-global-hook.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "summary": "Create a global hook",
- "description": "",
- "operationId": "enterprise-admin-create-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/global_webhooks/#create-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Must be passed as \"web\".",
- "type": "string"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.16/v3/enterprise-admin/global_webhooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.16/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name",
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "secret": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks \\\n -d '{\"name\":\"name\",\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/create-impersonation-o-auth-token.json b/openapi/ghe-2.16/operations/enterprise-admin/create-impersonation-o-auth-token.json
deleted file mode 100644
index 6d1b23773e..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/create-impersonation-o-auth-token.json
+++ /dev/null
@@ -1,129 +0,0 @@
-{
- "summary": "Create an impersonation OAuth token",
- "description": "",
- "operationId": "enterprise-admin-create-impersonation-o-auth-token",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#create-an-impersonation-oauth-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "A list of [scopes](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users//authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/create-org.json b/openapi/ghe-2.16/operations/enterprise-admin/create-org.json
deleted file mode 100644
index 8636eb566c..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/create-org.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "Create an organization",
- "description": "",
- "operationId": "enterprise-admin-create-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/orgs/#create-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The organization's username.",
- "type": "string"
- },
- "admin": {
- "description": "The login of the user who will manage this organization.",
- "type": "string"
- },
- "profile_name": {
- "description": "The organization's display name.",
- "type": "string"
- }
- },
- "required": [
- "login",
- "admin"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/organizations \\\n -d '{\"login\":\"login\",\"admin\":\"admin\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n login: 'login',\n admin: 'admin'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/create-pre-receive-environment.json b/openapi/ghe-2.16/operations/enterprise-admin/create-pre-receive-environment.json
deleted file mode 100644
index 86b065ef04..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/create-pre-receive-environment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Create a pre-receive environment",
- "description": "",
- "operationId": "enterprise-admin-create-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_environments/#create-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new pre-receive environment's name.",
- "type": "string"
- },
- "image_url": {
- "description": "URL from which to download a tarball of this environment.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "image_url"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments \\\n -d '{\"name\":\"name\",\"image_url\":\"image_url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n image_url: 'image_url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/create-pre-receive-hook.json b/openapi/ghe-2.16/operations/enterprise-admin/create-pre-receive-hook.json
deleted file mode 100644
index bc28ce7330..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/create-pre-receive-hook.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "summary": "Create a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-create-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_hooks/#create-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the hook.",
- "type": "string"
- },
- "script": {
- "description": "The script that the hook runs.",
- "type": "string"
- },
- "script_repository": {
- "description": "The GitHub repository where the script is kept.",
- "type": "object",
- "properties": {}
- },
- "environment": {
- "description": "The pre-receive environment where the script is executed.",
- "type": "object",
- "properties": {}
- },
- "enforcement": {
- "description": "The state of enforcement for this hook. default: `disabled`",
- "type": "string"
- },
- "allow_downstream_configuration": {
- "description": "Whether enforcement can be overridden at the org or repo level. default: `false`",
- "type": "boolean"
- }
- },
- "required": [
- "name",
- "script",
- "script_repository",
- "environment"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "script": {
- "type": "string"
- },
- "script_repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "full_name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks \\\n -d '{\"name\":\"name\",\"script\":\"script\",\"script_repository\":\"script_repository\",\"environment\":\"environment\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n script: 'script',\n script_repository: 'script_repository',\n environment: 'environment'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/create-user.json b/openapi/ghe-2.16/operations/enterprise-admin/create-user.json
deleted file mode 100644
index 54be1f9479..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/create-user.json
+++ /dev/null
@@ -1,128 +0,0 @@
-{
- "summary": "Create a new user",
- "description": "If an external authentication mechanism is used, the login name should match the login name in the external system. If you are using LDAP authentication, you should also [update the LDAP mapping](https://developer.github.com/enterprise/2.16/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-user) for the user.\n\nThe login name will be normalized to only contain alphanumeric characters or single hyphens. For example, if you send `\"octo_cat\"` as the login, a user named `\"octo-cat\"` will be created.\n\nIf the login name or email address is already associated with an account, the server will return a `422` response.",
- "operationId": "enterprise-admin-create-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#create-a-new-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The user's username.",
- "type": "string"
- },
- "email": {
- "description": "**Required for built-in authentication.** The user's email address. This parameter can be omitted when using CAS, LDAP, or SAML. For details on built-in and centrally-managed authentication, see the the [GitHub Enterprise Server authentication guide](https://help.github.com/enterprise/2.16/admin/guides/user-management/authenticating-users-for-your-github-enterprise-server-instance/).",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/delete-global-hook.json b/openapi/ghe-2.16/operations/enterprise-admin/delete-global-hook.json
deleted file mode 100644
index b65d397da5..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/delete-global-hook.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a global hook",
- "description": "",
- "operationId": "enterprise-admin-delete-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/global_webhooks/#delete-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/delete-impersonation-o-auth-token.json b/openapi/ghe-2.16/operations/enterprise-admin/delete-impersonation-o-auth-token.json
deleted file mode 100644
index b0c6a90f93..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/delete-impersonation-o-auth-token.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete an impersonation OAuth token",
- "description": "",
- "operationId": "enterprise-admin-delete-impersonation-o-auth-token",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#delete-an-impersonation-oauth-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users//authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/delete-pre-receive-environment.json b/openapi/ghe-2.16/operations/enterprise-admin/delete-pre-receive-environment.json
deleted file mode 100644
index d8d7a4bb28..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/delete-pre-receive-environment.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a pre-receive environment",
- "description": "If you attempt to delete an environment that cannot be deleted, you will get a response like this:\n\nThe possible error messages are:\n\n* _Cannot modify or delete the default environment_\n* _Cannot delete environment that has hooks_\n* _Cannot delete environment when download is in progress_",
- "operationId": "enterprise-admin-delete-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_environments/#delete-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/delete-pre-receive-hook.json b/openapi/ghe-2.16/operations/enterprise-admin/delete-pre-receive-hook.json
deleted file mode 100644
index ea33ad242e..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/delete-pre-receive-hook.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-delete-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_hooks/#delete-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre_receive_hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/delete-public-key.json b/openapi/ghe-2.16/operations/enterprise-admin/delete-public-key.json
deleted file mode 100644
index 5f4291676a..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/delete-public-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a public key",
- "description": "",
- "operationId": "enterprise-admin-delete-public-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#delete-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_ids",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "key_ids parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n key_ids: 'key_ids'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/delete-user.json b/openapi/ghe-2.16/operations/enterprise-admin/delete-user.json
deleted file mode 100644
index 65166a67fb..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/delete-user.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a user",
- "description": "Deleting a user will delete all their repositories, gists, applications, and personal settings. [Suspending a user](https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#suspend-a-user) is often a better option.\n\nYou can delete any user account except your own.",
- "operationId": "enterprise-admin-delete-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#delete-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json b/openapi/ghe-2.16/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json
deleted file mode 100644
index 206758f191..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Demote a site administrator to an ordinary user",
- "description": "You can demote any user account except your own.",
- "operationId": "enterprise-admin-demote-site-administrator-to-ordinary-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#demote-a-site-administrator-to-an-ordinary-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//site_admin"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/enable-or-disable-maintenance-mode.json b/openapi/ghe-2.16/operations/enterprise-admin/enable-or-disable-maintenance-mode.json
deleted file mode 100644
index da55c232b5..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/enable-or-disable-maintenance-mode.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Enable or disable maintenance mode",
- "description": "The possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.\n\nThe possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).",
- "operationId": "enterprise-admin-enable-or-disable-maintenance-mode",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#enable-or-disable-maintenance-mode"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "maintenance": {
- "description": "A JSON string with the attributes `enabled` and `when`.",
- "type": "string"
- }
- },
- "required": [
- "maintenance"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "scheduled_time": {
- "type": "string"
- },
- "connection_services": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "number": {
- "type": "number"
- }
- },
- "required": [
- "name",
- "number"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/maintenance \\\n -d '{\"maintenance\":\"maintenance\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n maintenance: 'maintenance'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/get-global-hook.json b/openapi/ghe-2.16/operations/enterprise-admin/get-global-hook.json
deleted file mode 100644
index cbce03d4b7..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/get-global-hook.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get single global hook",
- "description": "",
- "operationId": "enterprise-admin-get-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/global_webhooks/#get-single-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "secret": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/get-license-information.json b/openapi/ghe-2.16/operations/enterprise-admin/get-license-information.json
deleted file mode 100644
index 85290da80a..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/get-license-information.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "Get license information",
- "description": "",
- "operationId": "enterprise-admin-get-license-information",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/license/#get-license-information"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "seats": {
- "type": "number"
- },
- "seats_used": {
- "type": "number"
- },
- "seats_available": {
- "type": "number"
- },
- "kind": {
- "type": "string"
- },
- "days_until_expiration": {
- "type": "number"
- },
- "expire_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/enterprise/settings/license"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-environment-download-status.json b/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-environment-download-status.json
deleted file mode 100644
index 22033f5653..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-environment-download-status.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Get a pre-receive environment's download status",
- "description": "In addition to seeing the download status at the `/admin/pre-receive-environments/:pre_receive_environment_id`, there is also a separate endpoint for just the status.\n\nPossible values for `state` are `not_started`, `in_progress`, `success`, `failed`.",
- "operationId": "enterprise-admin-get-pre-receive-environment-download-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_environments/#get-a-pre-receive-environments-download-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The state of the most recent download."
- },
- {
- "name": "downloaded_at",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The time when the most recent download started."
- },
- {
- "name": "message",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "On failure, this will have any error messages produced."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments//downloads/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-environment.json b/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-environment.json
deleted file mode 100644
index ee3485f5bd..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-environment.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Get a single pre-receive environment",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_environments/#get-a-single-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-hook-for-org.json b/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-hook-for-org.json
deleted file mode 100644
index 54180156e1..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-hook-for-org.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get a single pre-receive hook for organization",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/org_pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-hook-for-repo.json b/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-hook-for-repo.json
deleted file mode 100644
index 1ef7f4eb91..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-hook-for-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get a single pre-receive hook for repository",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/repo_pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-hook.json b/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-hook.json
deleted file mode 100644
index 174912c795..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/get-pre-receive-hook.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Get a single pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/get-type-stats.json b/openapi/ghe-2.16/operations/enterprise-admin/get-type-stats.json
deleted file mode 100644
index a26ac04292..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/get-type-stats.json
+++ /dev/null
@@ -1,213 +0,0 @@
-{
- "summary": "Get statistics",
- "description": "There are a variety of types to choose from:\n\n| Type | Description |\n| ------------ | --------------------------------------------------------------------------------------------------- |\n| `issues` | The number of open and closed issues. |\n| `hooks` | The number of active and inactive hooks. |\n| `milestones` | The number of open and closed milestones. |\n| `orgs` | The number of organizations, teams, team members, and disabled organizations. |\n| `comments` | The number of comments on issues, pull requests, commits, and gists. |\n| `pages` | The number of GitHub Pages sites. |\n| `users` | The number of suspended and admin users. |\n| `gists` | The number of private and public gists. |\n| `pulls` | The number of merged, mergeable, and unmergeable pull requests. |\n| `repos` | The number of organization-owned repositories, root repositories, forks, pushed commits, and wikis. |\n| `all` | All of the statistics listed above. |\n\nThese statistics are cached and will be updated approximately every 10 minutes.",
- "operationId": "enterprise-admin-get-type-stats",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/admin_stats/#get-statistics"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "type",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "type parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "repos": {
- "type": "object",
- "properties": {
- "total_repos": {
- "type": "number"
- },
- "root_repos": {
- "type": "number"
- },
- "fork_repos": {
- "type": "number"
- },
- "org_repos": {
- "type": "number"
- },
- "total_pushes": {
- "type": "number"
- },
- "total_wikis": {
- "type": "number"
- }
- }
- },
- "hooks": {
- "type": "object",
- "properties": {
- "total_hooks": {
- "type": "number"
- },
- "active_hooks": {
- "type": "number"
- },
- "inactive_hooks": {
- "type": "number"
- }
- }
- },
- "pages": {
- "type": "object",
- "properties": {
- "total_pages": {
- "type": "number"
- }
- }
- },
- "orgs": {
- "type": "object",
- "properties": {
- "total_orgs": {
- "type": "number"
- },
- "disabled_orgs": {
- "type": "number"
- },
- "total_teams": {
- "type": "number"
- },
- "total_team_members": {
- "type": "number"
- }
- }
- },
- "users": {
- "type": "object",
- "properties": {
- "total_users": {
- "type": "number"
- },
- "admin_users": {
- "type": "number"
- },
- "suspended_users": {
- "type": "number"
- }
- }
- },
- "pulls": {
- "type": "object",
- "properties": {
- "total_pulls": {
- "type": "number"
- },
- "merged_pulls": {
- "type": "number"
- },
- "mergeable_pulls": {
- "type": "number"
- },
- "unmergeable_pulls": {
- "type": "number"
- }
- }
- },
- "issues": {
- "type": "object",
- "properties": {
- "total_issues": {
- "type": "number"
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- }
- }
- },
- "milestones": {
- "type": "object",
- "properties": {
- "total_milestones": {
- "type": "number"
- },
- "open_milestones": {
- "type": "number"
- },
- "closed_milestones": {
- "type": "number"
- }
- }
- },
- "gists": {
- "type": "object",
- "properties": {
- "total_gists": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "total_commit_comments": {
- "type": "number"
- },
- "total_gist_comments": {
- "type": "number"
- },
- "total_issue_comments": {
- "type": "number"
- },
- "total_pull_request_comments": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/enterprise/stats/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n type: 'type'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/list-global-hooks.json b/openapi/ghe-2.16/operations/enterprise-admin/list-global-hooks.json
deleted file mode 100644
index f3c88c6ec1..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/list-global-hooks.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "List global hooks",
- "description": "",
- "operationId": "enterprise-admin-list-global-hooks",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/global_webhooks/#list-global-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-environments.json b/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-environments.json
deleted file mode 100644
index 748b6e0fd6..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-environments.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List pre-receive environments",
- "description": "",
- "operationId": "enterprise-admin-list-pre-receive-environments",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_environments/#list-pre-receive-environments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-hooks-for-org.json b/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-hooks-for-org.json
deleted file mode 100644
index ea4fbe7ee0..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-hooks-for-org.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List pre-receive hooks for organization",
- "description": "List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.",
- "operationId": "enterprise-admin-list-pre-receive-hooks-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/org_pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json b/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json
deleted file mode 100644
index 717776f713..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List pre-receive hooks for repository",
- "description": "List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.",
- "operationId": "enterprise-admin-list-pre-receive-hooks-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/repo_pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-hooks.json b/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-hooks.json
deleted file mode 100644
index 108b600ac3..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/list-pre-receive-hooks.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List pre-receive hooks",
- "description": "",
- "operationId": "enterprise-admin-list-pre-receive-hooks",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/modify-settings.json b/openapi/ghe-2.16/operations/enterprise-admin/modify-settings.json
deleted file mode 100644
index 99aa22ec4c..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/modify-settings.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Modify settings",
- "description": "For a list of the available settings, see the [Retrieve settings endpoint](https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#retrieve-settings).",
- "operationId": "enterprise-admin-modify-settings",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#modify-settings"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "settings": {
- "description": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify.",
- "type": "string"
- }
- },
- "required": [
- "settings"
- ]
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings \\\n -d '{\"settings\":\"settings\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n settings: 'settings'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/ping-global-hook.json b/openapi/ghe-2.16/operations/enterprise-admin/ping-global-hook.json
deleted file mode 100644
index 74da972654..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/ping-global-hook.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Ping a global hook",
- "description": "This will trigger a [ping event](https://developer.github.com/enterprise/2.16/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "enterprise-admin-ping-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/global_webhooks/#ping-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks//pings"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json b/openapi/ghe-2.16/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json
deleted file mode 100644
index a8de11b04e..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Promote an ordinary user to a site administrator",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "enterprise-admin-promote-ordinary-user-to-site-administrator",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#promote-an-ordinary-user-to-a-site-administrator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//site_admin"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/queue-indexing-job.json b/openapi/ghe-2.16/operations/enterprise-admin/queue-indexing-job.json
deleted file mode 100644
index 62c11f1062..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/queue-indexing-job.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Queue an indexing job",
- "description": "You can index the following targets (replace `:owner` with the name of a user or organization account and `:repository` with the name of a repository):\n\n| Target | Description |\n| --------------------------- | -------------------------------------------------------------------- |\n| `:owner` | A user or organization account. |\n| `:owner/:repository` | A repository. |\n| `:owner/*` | All of a user or organization's repositories. |\n| `:owner/:repository/issues` | All the issues in a repository. |\n| `:owner/*/issues` | All the issues in all of a user or organization's repositories. |\n| `:owner/:repository/code` | All the source code in a repository. |\n| `:owner/*/code` | All the source code in all of a user or organization's repositories. |",
- "operationId": "enterprise-admin-queue-indexing-job",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/search_indexing/#queue-an-indexing-job"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "target": {
- "description": "A string representing the item to index.",
- "type": "string"
- }
- },
- "required": [
- "target"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/staff/indexing_jobs \\\n -d '{\"target\":\"target\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n target: 'target'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/remove-authorized-ssh-key.json b/openapi/ghe-2.16/operations/enterprise-admin/remove-authorized-ssh-key.json
deleted file mode 100644
index 1a64d09977..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/remove-authorized-ssh-key.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Remove an authorized SSH key",
- "description": "",
- "operationId": "enterprise-admin-remove-authorized-ssh-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#remove-an-authorized-ssh-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "authorized_key": {
- "description": "The path to the public SSH key.",
- "type": "string"
- }
- },
- "required": [
- "authorized_key"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys \\\n -d '{\"authorized_key\":\"authorized_key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n authorized_key: 'authorized_key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json b/openapi/ghe-2.16/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json
deleted file mode 100644
index 002e9454c5..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove enforcement overrides for a pre-receive hook for organization",
- "description": "Removes any overrides for this hook at the org level for this org.",
- "operationId": "enterprise-admin-remove-enforcement-overrides-for-pre-receive-hook-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/org_pre_receive_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json b/openapi/ghe-2.16/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json
deleted file mode 100644
index cab4275a60..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Remove enforcement overrides for a pre-receive hook for repository",
- "description": "Deletes any overridden enforcement on this repository for the specified hook.\n\nResponds with effective values inherited from owner and/or global level.",
- "operationId": "enterprise-admin-remove-enforcement-overrides-for-pre-receive-hook-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/repo_pre_receive_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/rename-org.json b/openapi/ghe-2.16/operations/enterprise-admin/rename-org.json
deleted file mode 100644
index edcabf597c..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/rename-org.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Rename an organization",
- "description": "",
- "operationId": "enterprise-admin-rename-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/orgs/#rename-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The organization's new name.",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/organizations/ \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/rename-user.json b/openapi/ghe-2.16/operations/enterprise-admin/rename-user.json
deleted file mode 100644
index 04c8085596..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/rename-user.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Rename an existing user",
- "description": "",
- "operationId": "enterprise-admin-rename-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#rename-an-existing-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The user's new username.",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users/ \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username',\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/retrieve-authorized-ssh-keys.json b/openapi/ghe-2.16/operations/enterprise-admin/retrieve-authorized-ssh-keys.json
deleted file mode 100644
index 004bd06525..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/retrieve-authorized-ssh-keys.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Retrieve authorized SSH keys",
- "description": "",
- "operationId": "enterprise-admin-retrieve-authorized-ssh-keys",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#retrieve-authorized-ssh-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/retrieve-settings.json b/openapi/ghe-2.16/operations/enterprise-admin/retrieve-settings.json
deleted file mode 100644
index 8e4ca326af..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/retrieve-settings.json
+++ /dev/null
@@ -1,452 +0,0 @@
-{
- "summary": "Retrieve settings",
- "description": "",
- "operationId": "enterprise-admin-retrieve-settings",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#retrieve-settings"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "enterprise": {
- "type": "object",
- "properties": {
- "private_mode": {
- "type": "boolean"
- },
- "public_pages": {
- "type": "boolean"
- },
- "subdomain_isolation": {
- "type": "boolean"
- },
- "signup_enabled": {
- "type": "boolean"
- },
- "github_hostname": {
- "type": "string"
- },
- "identicons_host": {
- "type": "string"
- },
- "http_proxy": {
- "type": "string"
- },
- "auth_mode": {
- "type": "string"
- },
- "expire_sessions": {
- "type": "boolean"
- },
- "admin_password": {
- "type": "string"
- },
- "configuration_id": {
- "type": "number"
- },
- "configuration_run_count": {
- "type": "number"
- },
- "avatar": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "uri": {
- "type": "string"
- }
- }
- },
- "customer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "uuid": {
- "type": "string"
- },
- "secret_key_data": {
- "type": "string"
- },
- "public_key_data": {
- "type": "string"
- }
- }
- },
- "license": {
- "type": "object",
- "properties": {
- "seats": {
- "type": "number"
- },
- "evaluation": {
- "type": "boolean"
- },
- "perpetual": {
- "type": "boolean"
- },
- "unlimited_seating": {
- "type": "boolean"
- },
- "support_key": {
- "type": "string"
- },
- "ssh_allowed": {
- "type": "boolean"
- },
- "cluster_support": {
- "type": "boolean"
- },
- "expire_at": {
- "type": "string"
- }
- }
- },
- "github_ssl": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "cert": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- }
- },
- "ldap": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string"
- },
- "port": {
- "type": "number"
- },
- "base": {
- "type": "array",
- "items": {}
- },
- "uid": {
- "type": "string"
- },
- "bind_dn": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "method": {
- "type": "string"
- },
- "search_strategy": {
- "type": "string"
- },
- "user_groups": {
- "type": "array",
- "items": {}
- },
- "admin_group": {
- "type": "string"
- },
- "virtual_attribute_enabled": {
- "type": "boolean"
- },
- "recursive_group_search": {
- "type": "boolean"
- },
- "posix_support": {
- "type": "boolean"
- },
- "user_sync_emails": {
- "type": "boolean"
- },
- "user_sync_keys": {
- "type": "boolean"
- },
- "user_sync_interval": {
- "type": "number"
- },
- "team_sync_interval": {
- "type": "number"
- },
- "sync_enabled": {
- "type": "boolean"
- },
- "reconciliation": {
- "type": "object",
- "properties": {
- "user": {
- "type": "string"
- },
- "org": {
- "type": "string"
- }
- }
- },
- "profile": {
- "type": "object",
- "properties": {
- "uid": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "mail": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- }
- }
- }
- },
- "cas": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- }
- }
- },
- "saml": {
- "type": "object",
- "properties": {
- "sso_url": {
- "type": "string"
- },
- "certificate": {
- "type": "string"
- },
- "certificate_path": {
- "type": "string"
- },
- "issuer": {
- "type": "string"
- },
- "idp_initiated_sso": {
- "type": "boolean"
- },
- "disable_admin_demote": {
- "type": "boolean"
- }
- }
- },
- "github_oauth": {
- "type": "object",
- "properties": {
- "client_id": {
- "type": "string"
- },
- "client_secret": {
- "type": "string"
- },
- "organization_name": {
- "type": "string"
- },
- "organization_team": {
- "type": "string"
- }
- }
- },
- "smtp": {
- "type": "object",
- "properties": {
- "smtp": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "address": {
- "type": "string"
- },
- "authentication": {
- "type": "string"
- },
- "port": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "user_name": {
- "type": "string"
- },
- "enable_starttls_auto": {
- "type": "boolean"
- },
- "password": {
- "type": "string"
- },
- "smtp.discard-to-noreply-address": {
- "type": "boolean"
- },
- "support_address": {
- "type": "string"
- },
- "support_address_type": {
- "type": "string"
- },
- "noreply_address": {
- "type": "string"
- }
- }
- }
- }
- },
- "ntp": {
- "type": "object",
- "properties": {
- "primary_server": {
- "type": "string"
- },
- "secondary_server": {
- "type": "string"
- }
- }
- },
- "timezone": {
- "type": "string"
- },
- "snmp": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "community": {
- "type": "string"
- }
- }
- },
- "syslog": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "server": {
- "type": "string"
- },
- "protocol_name": {
- "type": "string"
- }
- }
- },
- "assets": {
- "type": "string"
- },
- "pages": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "collectd": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "server": {
- "type": "string"
- },
- "port": {
- "type": "number"
- },
- "encryption": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "password": {
- "type": "string"
- }
- }
- },
- "mapping": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "tileserver": {
- "type": "string"
- },
- "basemap": {
- "type": "string"
- },
- "token": {
- "type": "string"
- }
- }
- },
- "load_balancer": {
- "type": "string"
- }
- }
- },
- "run_list": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/start-configuration-process.json b/openapi/ghe-2.16/operations/enterprise-admin/start-configuration-process.json
deleted file mode 100644
index 18654df825..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/start-configuration-process.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Start a configuration process",
- "description": "This endpoint allows you to start a configuration process at any time for your updated settings to take effect:",
- "operationId": "enterprise-admin-start-configuration-process",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#start-a-configuration-process"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/configure"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/suspend-user.json b/openapi/ghe-2.16/operations/enterprise-admin/suspend-user.json
deleted file mode 100644
index 9d3b89f997..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/suspend-user.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Suspend a user",
- "description": "If your GitHub Enterprise Server instance uses [LDAP Sync with Active Directory LDAP servers](https://help.github.com/enterprise/admin/guides/user-management/using-ldap), Active Directory LDAP-authenticated users cannot be suspended through this API. If you attempt to suspend an Active Directory LDAP-authenticated user through this API, it will return a `403` response.\n\nYou can suspend any user account except your own.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "enterprise-admin-suspend-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#suspend-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reason": {
- "description": "The reason the user is being suspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//suspended"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/sync-ldap-mapping-for-team.json b/openapi/ghe-2.16/operations/enterprise-admin/sync-ldap-mapping-for-team.json
deleted file mode 100644
index 840d72eea8..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/sync-ldap-mapping-for-team.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Sync LDAP mapping for a team",
- "description": "Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.",
- "operationId": "enterprise-admin-sync-ldap-mapping-for-team",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/ldap/#sync-ldap-mapping-for-a-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/teams//sync"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/sync-ldap-mapping-for-user.json b/openapi/ghe-2.16/operations/enterprise-admin/sync-ldap-mapping-for-user.json
deleted file mode 100644
index 626784dd3f..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/sync-ldap-mapping-for-user.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Sync LDAP mapping for a user",
- "description": "Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.",
- "operationId": "enterprise-admin-sync-ldap-mapping-for-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/ldap/#sync-ldap-mapping-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/users//sync"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/trigger-pre-receive-environment-download.json b/openapi/ghe-2.16/operations/enterprise-admin/trigger-pre-receive-environment-download.json
deleted file mode 100644
index 8682400e5e..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/trigger-pre-receive-environment-download.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Trigger a pre-receive environment download",
- "description": "Triggers a new download of the environment tarball from the environment's `image_url`. When the download is finished, the newly downloaded tarball will overwrite the existing environment.\n\nIf a download cannot be triggered, you will get a reponse like this:\n\nThe possible error messages are:\n\n* _Cannot modify or delete the default environment_\n* _Can not start a new download when a download is in progress_",
- "operationId": "enterprise-admin-trigger-pre-receive-environment-download",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_environments/#trigger-a-pre-receive-environment-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments//downloads"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/unsuspend-user.json b/openapi/ghe-2.16/operations/enterprise-admin/unsuspend-user.json
deleted file mode 100644
index 4bceb5fde9..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/unsuspend-user.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Unsuspend a user",
- "description": "If your GitHub Enterprise Server instance uses [LDAP Sync with Active Directory LDAP servers](https://help.github.com/enterprise/admin/guides/user-management/using-ldap), this API is disabled and will return a `403` response. Active Directory LDAP-authenticated users cannot be unsuspended using the API.",
- "operationId": "enterprise-admin-unsuspend-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/users/#unsuspend-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reason": {
- "description": "The reason the user is being unsuspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//suspended"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/update-global-hook.json b/openapi/ghe-2.16/operations/enterprise-admin/update-global-hook.json
deleted file mode 100644
index f9085b2ab0..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/update-global-hook.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "summary": "Edit a global hook",
- "description": "Parameters that are not provided will be overwritten with the default value or removed if no default exists.",
- "operationId": "enterprise-admin-update-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/global_webhooks/#edit-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.16/v3/enterprise-admin/global_webhooks/#update-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.16/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/ \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/update-ldap-mapping-for-team.json b/openapi/ghe-2.16/operations/enterprise-admin/update-ldap-mapping-for-team.json
deleted file mode 100644
index faaf61ee2b..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/update-ldap-mapping-for-team.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "summary": "Update LDAP mapping for a team",
- "description": "Updates the [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Create team](https://developer.github.com/enterprise/2.16/v3/teams/#create-team) endpoint to create a team with LDAP mapping.\n\nIf you pass the `hellcat-preview` media type, you can also update the LDAP mapping of a child team.",
- "operationId": "enterprise-admin-update-ldap-mapping-for-team",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ldap_dn": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/teams//mapping"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/update-ldap-mapping-for-user.json b/openapi/ghe-2.16/operations/enterprise-admin/update-ldap-mapping-for-user.json
deleted file mode 100644
index 39a68c5d34..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/update-ldap-mapping-for-user.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "summary": "Update LDAP mapping for a user",
- "description": "",
- "operationId": "enterprise-admin-update-ldap-mapping-for-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ldap_dn": {
- "type": "string"
- },
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/users//mapping"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-environment.json b/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-environment.json
deleted file mode 100644
index 2b596049d0..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-environment.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Edit a pre-receive environment",
- "description": "If you attempt to modify the default environment, you will get a response like this:",
- "operationId": "enterprise-admin-update-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_environments/#edit-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "This pre-receive environment's new name.",
- "type": "string"
- },
- "image_url": {
- "description": "URL from which to download a tarball of this environment.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json b/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json
deleted file mode 100644
index fcab09512e..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Update pre-receive hook enforcement for organization",
- "description": "For pre-receive hooks which are allowed to be configured at the org level, you can set `enforcement` and `allow_downstream_configuration`",
- "operationId": "enterprise-admin-update-pre-receive-hook-enforcement-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/org_pre_receive_hooks/#update-pre-receive-hook-enforcement"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json b/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json
deleted file mode 100644
index 16e2e72bf3..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Update pre-receive hook enforcement for repository",
- "description": "For pre-receive hooks which are allowed to be configured at the repo level, you can set `enforcement`",
- "operationId": "enterprise-admin-update-pre-receive-hook-enforcement-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/repo_pre_receive_hooks/#update-pre-receive-hook-enforcement"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-hook.json b/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-hook.json
deleted file mode 100644
index 20d1d32d8d..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/update-pre-receive-hook.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "summary": "Edit a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-update-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/pre_receive_hooks/#edit-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "script": {
- "type": "string"
- },
- "script_repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "full_name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre_receive_hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/upgrade-license.json b/openapi/ghe-2.16/operations/enterprise-admin/upgrade-license.json
deleted file mode 100644
index 36d7497b13..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/upgrade-license.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Upgrade a license",
- "description": "This API upgrades your license and also triggers the configuration process:",
- "operationId": "enterprise-admin-upgrade-license",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#upgrade-a-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "license": {
- "description": "The content of your new _.ghl_ license file.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/upgrade"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/enterprise-admin/upload-license-for-first-time.json b/openapi/ghe-2.16/operations/enterprise-admin/upload-license-for-first-time.json
deleted file mode 100644
index 664f31392e..0000000000
--- a/openapi/ghe-2.16/operations/enterprise-admin/upload-license-for-first-time.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "summary": "Upload a license for the first time",
- "description": "When you boot a GitHub Enterprise Server instance for the first time, you can use the following endpoint to upload a license:\n\nNote that you need to POST to [`/setup/api/configure`](https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#start-a-configuration-process) to start the actual configuration process.\n\nWhen using this endpoint, your GitHub Enterprise Server instance must have a password set. This can be accomplished two ways:\n\n1. If you're working directly with the API before accessing the web interface, you must pass in the password parameter to set your password.\n2. If you set up your instance via the web interface before accessing the API, your calls to this endpoint do not need the password parameter.\n\nFor a list of the available settings, see the [Retrieve settings endpoint](https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#retrieve-settings).",
- "operationId": "enterprise-admin-upload-license-for-first-time",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/enterprise-admin/management_console/#upload-a-license-for-the-first-time"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "license": {
- "description": "The content of your _.ghl_ license file.",
- "type": "string"
- },
- "password": {
- "description": "You **must** provide a password _only if_ you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.",
- "type": "string"
- },
- "settings": {
- "description": "An optional JSON string containing the installation settings.",
- "type": "string"
- }
- },
- "required": [
- "license"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/start \\\n -d '{\"license\":\"license\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n license: 'license'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/check-is-starred.json b/openapi/ghe-2.16/operations/gists/check-is-starred.json
deleted file mode 100644
index e1ab45a211..0000000000
--- a/openapi/ghe-2.16/operations/gists/check-is-starred.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Check if a gist is starred",
- "description": "",
- "operationId": "gists-check-is-starred",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#check-if-a-gist-is-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/create-comment.json b/openapi/ghe-2.16/operations/gists/create-comment.json
deleted file mode 100644
index cfe4fe8e61..0000000000
--- a/openapi/ghe-2.16/operations/gists/create-comment.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "",
- "operationId": "gists-create-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The comment text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/create.json b/openapi/ghe-2.16/operations/gists/create.json
deleted file mode 100644
index d0a974b517..0000000000
--- a/openapi/ghe-2.16/operations/gists/create.json
+++ /dev/null
@@ -1,470 +0,0 @@
-{
- "summary": "Create a gist",
- "description": "Allows you to add a new gist with one or more files.\n\n**Note:** Don't name your files \"gistfile\" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.",
- "operationId": "gists-create",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#create-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "files": {
- "description": "The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`.",
- "type": "object",
- "properties": {
- "content": {
- "description": "The content of the file.",
- "type": "string"
- }
- }
- },
- "description": {
- "description": "A descriptive name for this gist.",
- "type": "string"
- },
- "public": {
- "description": "When `true`, the gist will be public and available for anyone to see.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "files"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists \\\n -d '{\"files\":\"files\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n files: 'files'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/delete-comment.json b/openapi/ghe-2.16/operations/gists/delete-comment.json
deleted file mode 100644
index b67fa964dc..0000000000
--- a/openapi/ghe-2.16/operations/gists/delete-comment.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "gists-delete-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/delete.json b/openapi/ghe-2.16/operations/gists/delete.json
deleted file mode 100644
index 92bf270a4d..0000000000
--- a/openapi/ghe-2.16/operations/gists/delete.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a gist",
- "description": "",
- "operationId": "gists-delete",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#delete-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/fork.json b/openapi/ghe-2.16/operations/gists/fork.json
deleted file mode 100644
index 0bfaa8e96c..0000000000
--- a/openapi/ghe-2.16/operations/gists/fork.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Fork a gist",
- "description": "**Note**: This was previously `/gists/:gist_id/fork`.",
- "operationId": "gists-fork",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#fork-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//forks"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/get-comment.json b/openapi/ghe-2.16/operations/gists/get-comment.json
deleted file mode 100644
index 6f2dc65288..0000000000
--- a/openapi/ghe-2.16/operations/gists/get-comment.json
+++ /dev/null
@@ -1,147 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "gists-get-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/get-revision.json b/openapi/ghe-2.16/operations/gists/get-revision.json
deleted file mode 100644
index 24f85a0f18..0000000000
--- a/openapi/ghe-2.16/operations/gists/get-revision.json
+++ /dev/null
@@ -1,455 +0,0 @@
-{
- "summary": "Get a specific revision of a gist",
- "description": "",
- "operationId": "gists-get-revision",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#get-a-specific-revision-of-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//:sha"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/get.json b/openapi/ghe-2.16/operations/gists/get.json
deleted file mode 100644
index 255b614a0d..0000000000
--- a/openapi/ghe-2.16/operations/gists/get.json
+++ /dev/null
@@ -1,446 +0,0 @@
-{
- "summary": "Get a single gist",
- "description": "",
- "operationId": "gists-get",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#get-a-single-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/list-comments.json b/openapi/ghe-2.16/operations/gists/list-comments.json
deleted file mode 100644
index 814df78024..0000000000
--- a/openapi/ghe-2.16/operations/gists/list-comments.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List comments on a gist",
- "description": "",
- "operationId": "gists-list-comments",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/comments/#list-comments-on-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/list-commits.json b/openapi/ghe-2.16/operations/gists/list-commits.json
deleted file mode 100644
index 877bcda767..0000000000
--- a/openapi/ghe-2.16/operations/gists/list-commits.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List gist commits",
- "description": "",
- "operationId": "gists-list-commits",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#list-gist-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//commits"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/list-forks.json b/openapi/ghe-2.16/operations/gists/list-forks.json
deleted file mode 100644
index b286a11e5d..0000000000
--- a/openapi/ghe-2.16/operations/gists/list-forks.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List gist forks",
- "description": "",
- "operationId": "gists-list-forks",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#list-gist-forks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//forks"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/list-public-for-user.json b/openapi/ghe-2.16/operations/gists/list-public-for-user.json
deleted file mode 100644
index 58424d6ae7..0000000000
--- a/openapi/ghe-2.16/operations/gists/list-public-for-user.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List public gists for the specified user",
- "description": "",
- "operationId": "gists-list-public-for-user",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#list-a-users-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//gists"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/list-public.json b/openapi/ghe-2.16/operations/gists/list-public.json
deleted file mode 100644
index 6d18f6f6c1..0000000000
--- a/openapi/ghe-2.16/operations/gists/list-public.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List all public gists",
- "description": "List all public gists sorted by most recently updated to least recently updated.\n\nNote: With [pagination](https://developer.github.com/enterprise/2.16/v3/#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.",
- "operationId": "gists-list-public",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#list-all-public-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/public"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/list-starred.json b/openapi/ghe-2.16/operations/gists/list-starred.json
deleted file mode 100644
index f41997ad8e..0000000000
--- a/openapi/ghe-2.16/operations/gists/list-starred.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List starred gists",
- "description": "List the authenticated user's starred gists:",
- "operationId": "gists-list-starred",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#list-starred-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/starred"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/list.json b/openapi/ghe-2.16/operations/gists/list.json
deleted file mode 100644
index b809b3ea2a..0000000000
--- a/openapi/ghe-2.16/operations/gists/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List the authenticated user's gists or if called anonymously, this will return all public gists",
- "description": "",
- "operationId": "gists-list",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#list-a-users-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/star.json b/openapi/ghe-2.16/operations/gists/star.json
deleted file mode 100644
index 729566af07..0000000000
--- a/openapi/ghe-2.16/operations/gists/star.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Star a gist",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "gists-star",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#star-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/unstar.json b/openapi/ghe-2.16/operations/gists/unstar.json
deleted file mode 100644
index 81584643ef..0000000000
--- a/openapi/ghe-2.16/operations/gists/unstar.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Unstar a gist",
- "description": "",
- "operationId": "gists-unstar",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#unstar-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/update-comment.json b/openapi/ghe-2.16/operations/gists/update-comment.json
deleted file mode 100644
index 6b869fb8e8..0000000000
--- a/openapi/ghe-2.16/operations/gists/update-comment.json
+++ /dev/null
@@ -1,165 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "gists-update-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The comment text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gists/update.json b/openapi/ghe-2.16/operations/gists/update.json
deleted file mode 100644
index f16c1c580b..0000000000
--- a/openapi/ghe-2.16/operations/gists/update.json
+++ /dev/null
@@ -1,475 +0,0 @@
-{
- "summary": "Edit a gist",
- "description": "Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged.",
- "operationId": "gists-update",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gists/#edit-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "description": {
- "description": "A descriptive name for this gist.",
- "type": "string"
- },
- "files": {
- "description": "The filenames and content that make up this gist.",
- "type": "object",
- "properties": {
- "content": {
- "description": "The updated content of the file.",
- "type": "string"
- },
- "filename": {
- "description": "The new name for this file. To delete a file, set the value of the filename to `null`.",
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.md": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "new_file.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/create-blob.json b/openapi/ghe-2.16/operations/git/create-blob.json
deleted file mode 100644
index c29de5f40a..0000000000
--- a/openapi/ghe-2.16/operations/git/create-blob.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "summary": "Create a blob",
- "description": "",
- "operationId": "git-create-blob",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/blobs/#create-a-blob"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The new blob's content.",
- "type": "string"
- },
- "encoding": {
- "description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "type": "string",
- "default": "utf-8"
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/blobs \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/create-commit.json b/openapi/ghe-2.16/operations/git/create-commit.json
deleted file mode 100644
index aacf8a6e8e..0000000000
--- a/openapi/ghe-2.16/operations/git/create-commit.json
+++ /dev/null
@@ -1,223 +0,0 @@
-{
- "summary": "Create a commit",
- "description": "Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\nIn this example, the payload of the signature would be:\n\n\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-create-commit",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/commits/#create-a-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message",
- "type": "string"
- },
- "tree": {
- "description": "The SHA of the tree object this commit points to",
- "type": "string"
- },
- "parents": {
- "description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "author": {
- "description": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- },
- "date": {
- "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- },
- "committer": {
- "description": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- },
- "date": {
- "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- },
- "signature": {
- "description": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.",
- "type": "string"
- }
- },
- "required": [
- "message",
- "tree",
- "parents"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/commits \\\n -d '{\"message\":\"message\",\"tree\":\"tree\",\"parents\":\"parents\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n message: 'message',\n tree: 'tree',\n parents: 'parents'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/create-ref.json b/openapi/ghe-2.16/operations/git/create-ref.json
deleted file mode 100644
index a4e78167c5..0000000000
--- a/openapi/ghe-2.16/operations/git/create-ref.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Create a reference",
- "description": "Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches.",
- "operationId": "git-create-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/refs/#create-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ref": {
- "description": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
- "type": "string"
- },
- "sha": {
- "description": "The SHA1 value for this reference.",
- "type": "string"
- }
- },
- "required": [
- "ref",
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ref": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs \\\n -d '{\"ref\":\"ref\",\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/create-tag.json b/openapi/ghe-2.16/operations/git/create-tag.json
deleted file mode 100644
index b7a6682f2a..0000000000
--- a/openapi/ghe-2.16/operations/git/create-tag.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Create a tag object",
- "description": "Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://developer.github.com/enterprise/2.16/v3/git/refs/#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://developer.github.com/enterprise/2.16/v3/git/refs/#create-a-reference) the tag reference - this call would be unnecessary.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-create-tag",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/tags/#create-a-tag-object"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag": {
- "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
- "type": "string"
- },
- "message": {
- "description": "The tag message.",
- "type": "string"
- },
- "object": {
- "description": "The SHA of the git object this is tagging.",
- "type": "string"
- },
- "type": {
- "description": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
- "type": "string",
- "enum": [
- "commit",
- "tree",
- "blob"
- ]
- },
- "tagger": {
- "description": "An object with information about the individual creating the tag.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author of the tag",
- "type": "string"
- },
- "email": {
- "description": "The email of the author of the tag",
- "type": "string"
- },
- "date": {
- "description": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- }
- },
- "required": [
- "tag",
- "message",
- "object",
- "type"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "node_id": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tagger": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/tags \\\n -d '{\"tag\":\"tag\",\"message\":\"message\",\"object\":\"object\",\"type\":\"type\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag: 'tag',\n message: 'message',\n object: 'object',\n type: 'type'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/create-tree.json b/openapi/ghe-2.16/operations/git/create-tree.json
deleted file mode 100644
index ea1484c192..0000000000
--- a/openapi/ghe-2.16/operations/git/create-tree.json
+++ /dev/null
@@ -1,161 +0,0 @@
-{
- "summary": "Create a tree",
- "description": "The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out.",
- "operationId": "git-create-tree",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/trees/#create-a-tree"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tree": {
- "description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The file referenced in the tree.",
- "type": "string"
- },
- "mode": {
- "description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "type": "string",
- "enum": [
- "100644",
- "100755",
- "040000",
- "160000",
- "120000"
- ]
- },
- "type": {
- "description": "Either `blob`, `tree`, or `commit`.",
- "type": "string",
- "enum": [
- "blob",
- "tree",
- "commit"
- ]
- },
- "sha": {
- "description": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "type": "string"
- },
- "content": {
- "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "type": "string"
- }
- }
- }
- },
- "base_tree": {
- "description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.",
- "type": "string"
- }
- },
- "required": [
- "tree"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "tree": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- },
- "mode": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/trees \\\n -d '{\"tree\":\"tree\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tree: 'tree'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/delete-ref.json b/openapi/ghe-2.16/operations/git/delete-ref.json
deleted file mode 100644
index 00aa0ac3ed..0000000000
--- a/openapi/ghe-2.16/operations/git/delete-ref.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a reference",
- "description": "```\nDELETE /repos/octocat/Hello-World/git/refs/heads/feature-a\n```\n\n```\nDELETE /repos/octocat/Hello-World/git/refs/tags/v1.0\n```",
- "operationId": "git-delete-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/refs/#delete-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/get-blob.json b/openapi/ghe-2.16/operations/git/get-blob.json
deleted file mode 100644
index ca88acd84b..0000000000
--- a/openapi/ghe-2.16/operations/git/get-blob.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Get a blob",
- "description": "The `content` in the response will always be Base64 encoded.\n\n_Note_: This API supports blobs up to 100 megabytes in size.",
- "operationId": "git-get-blob",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/blobs/#get-a-blob"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "file_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "file_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/blobs/:file_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n file_sha: 'file_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/get-commit.json b/openapi/ghe-2.16/operations/git/get-commit.json
deleted file mode 100644
index db31cd0cdf..0000000000
--- a/openapi/ghe-2.16/operations/git/get-commit.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "summary": "Get a commit",
- "description": "Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-get-commit",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/commits/#get-a-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/commits/:commit_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/get-ref.json b/openapi/ghe-2.16/operations/git/get-ref.json
deleted file mode 100644
index 9f670e4b81..0000000000
--- a/openapi/ghe-2.16/operations/git/get-ref.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get a reference",
- "description": "Returns a branch or tag reference. Other than the [REST API](https://developer.github.com/v3/git/refs/#get-a-reference) it always returns a single reference. If the REST API returns with an array then the method responds with an error.",
- "operationId": "git-get-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/refs/#get-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "Must be formatted as `heads/branch`, not just `branch`"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/get-tag.json b/openapi/ghe-2.16/operations/git/get-tag.json
deleted file mode 100644
index be448a4887..0000000000
--- a/openapi/ghe-2.16/operations/git/get-tag.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "summary": "Get a tag",
- "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-get-tag",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/tags/#get-a-tag"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tag_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tag_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "node_id": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tagger": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/tags/:tag_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag_sha: 'tag_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/get-tree.json b/openapi/ghe-2.16/operations/git/get-tree.json
deleted file mode 100644
index 9d6ea8f4b8..0000000000
--- a/openapi/ghe-2.16/operations/git/get-tree.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get a tree",
- "description": "If `truncated` in the response is `true`, the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, omit the `recursive` parameter, and fetch one sub-tree at a time. If you need to fetch even more items, you can clone the repository and iterate over the Git data locally.",
- "operationId": "git-get-tree",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/trees/#get-a-tree"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tree_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tree_sha parameter"
- },
- {
- "name": "recursive",
- "in": "query",
- "schema": {
- "type": "integer",
- "enum": [
- 1
- ]
- },
- "description": "recursive parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/trees/:tree_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tree_sha: 'tree_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/git/update-ref.json b/openapi/ghe-2.16/operations/git/update-ref.json
deleted file mode 100644
index d195fd3b28..0000000000
--- a/openapi/ghe-2.16/operations/git/update-ref.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "summary": "Update a reference",
- "description": "",
- "operationId": "git-update-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/git/refs/#update-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "sha": {
- "description": "The SHA1 value to set this reference to",
- "type": "string"
- },
- "force": {
- "description": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ref": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref \\\n -d '{\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gitignore/get-template.json b/openapi/ghe-2.16/operations/gitignore/get-template.json
deleted file mode 100644
index 574fe48c6d..0000000000
--- a/openapi/ghe-2.16/operations/gitignore/get-template.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get a single template",
- "description": "The API also allows fetching the source of a single template.\n\nUse the raw [media type](https://developer.github.com/enterprise/2.16/v3/media/) to get the raw contents.\n\n",
- "operationId": "gitignore-get-template",
- "tags": [
- "gitignore"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gitignore/#get-a-single-template"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "source": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gitignore/templates/"
- },
- {
- "lang": "JS",
- "source": "octokit.gitignore.get({\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/gitignore/list-templates.json b/openapi/ghe-2.16/operations/gitignore/list-templates.json
deleted file mode 100644
index 4196bb6d26..0000000000
--- a/openapi/ghe-2.16/operations/gitignore/list-templates.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Listing available templates",
- "description": "List all templates available to pass as an option when [creating a repository](https://developer.github.com/enterprise/2.16/v3/repos/#create).",
- "operationId": "gitignore-list-templates",
- "tags": [
- "gitignore"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/gitignore/#listing-available-templates"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gitignore/templates"
- },
- {
- "lang": "JS",
- "source": "octokit.gitignore.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/add-assignees.json b/openapi/ghe-2.16/operations/issues/add-assignees.json
deleted file mode 100644
index 75a61710eb..0000000000
--- a/openapi/ghe-2.16/operations/issues/add-assignees.json
+++ /dev/null
@@ -1,516 +0,0 @@
-{
- "summary": "Add assignees to an issue",
- "description": "Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.\n\nThis example adds two assignees to the existing `octocat` assignee.",
- "operationId": "issues-add-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/assignees/#add-assignees-to-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "assignees": {
- "description": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/add-labels.json b/openapi/ghe-2.16/operations/issues/add-labels.json
deleted file mode 100644
index 3c609dbcf5..0000000000
--- a/openapi/ghe-2.16/operations/issues/add-labels.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Add labels to an issue",
- "description": "",
- "operationId": "issues-add-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#add-labels-to-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "labels": {
- "description": "The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "labels"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels \\\n -d '{\"labels\":\"labels\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n labels: 'labels'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/check-assignee.json b/openapi/ghe-2.16/operations/issues/check-assignee.json
deleted file mode 100644
index 70ebc38393..0000000000
--- a/openapi/ghe-2.16/operations/issues/check-assignee.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check assignee",
- "description": "Checks if a user has permission to be assigned to an issue in this repository.\n\nIf the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.\n\nOtherwise a `404` status code is returned.",
- "operationId": "issues-check-assignee",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/assignees/#check-assignee"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "assignee",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "assignee parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/assignees/:assignee"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n assignee: 'assignee'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/create-comment.json b/openapi/ghe-2.16/operations/issues/create-comment.json
deleted file mode 100644
index f6338bdeca..0000000000
--- a/openapi/ghe-2.16/operations/issues/create-comment.json
+++ /dev/null
@@ -1,187 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "issues-create-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/create-label.json b/openapi/ghe-2.16/operations/issues/create-label.json
deleted file mode 100644
index 2d23086118..0000000000
--- a/openapi/ghe-2.16/operations/issues/create-label.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "summary": "Create a label",
- "description": "",
- "operationId": "issues-create-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#create-a-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).",
- "type": "string"
- },
- "color": {
- "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the label.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "color"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels \\\n -d '{\"name\":\"name\",\"color\":\"color\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name',\n color: 'color'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/create-milestone.json b/openapi/ghe-2.16/operations/issues/create-milestone.json
deleted file mode 100644
index 9b467b5228..0000000000
--- a/openapi/ghe-2.16/operations/issues/create-milestone.json
+++ /dev/null
@@ -1,209 +0,0 @@
-{
- "summary": "Create a milestone",
- "description": "",
- "operationId": "issues-create-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/milestones/#create-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the milestone.",
- "type": "string"
- },
- "state": {
- "description": "The state of the milestone. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open"
- },
- "description": {
- "description": "A description of the milestone.",
- "type": "string"
- },
- "due_on": {
- "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- },
- "required": [
- "title"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones \\\n -d '{\"title\":\"title\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/create.json b/openapi/ghe-2.16/operations/issues/create.json
deleted file mode 100644
index b83535995d..0000000000
--- a/openapi/ghe-2.16/operations/issues/create.json
+++ /dev/null
@@ -1,562 +0,0 @@
-{
- "summary": "Create an issue",
- "description": "Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` status.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "issues-create",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/#create-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the issue.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the issue.",
- "type": "string"
- },
- "assignee": {
- "description": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
- "type": "string"
- },
- "milestone": {
- "description": "The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._",
- "type": "integer"
- },
- "labels": {
- "description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "assignees": {
- "description": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "title"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues \\\n -d '{\"title\":\"title\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/delete-comment.json b/openapi/ghe-2.16/operations/issues/delete-comment.json
deleted file mode 100644
index 0a05b01288..0000000000
--- a/openapi/ghe-2.16/operations/issues/delete-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "issues-delete-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/delete-label.json b/openapi/ghe-2.16/operations/issues/delete-label.json
deleted file mode 100644
index ed1bbe151d..0000000000
--- a/openapi/ghe-2.16/operations/issues/delete-label.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a label",
- "description": "",
- "operationId": "issues-delete-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#delete-a-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/delete-milestone.json b/openapi/ghe-2.16/operations/issues/delete-milestone.json
deleted file mode 100644
index 229d632766..0000000000
--- a/openapi/ghe-2.16/operations/issues/delete-milestone.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Delete a milestone",
- "description": "",
- "operationId": "issues-delete-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/milestones/#delete-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/get-comment.json b/openapi/ghe-2.16/operations/issues/get-comment.json
deleted file mode 100644
index 2c65351fe5..0000000000
--- a/openapi/ghe-2.16/operations/issues/get-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "issues-get-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/get-event.json b/openapi/ghe-2.16/operations/issues/get-event.json
deleted file mode 100644
index ed6ddc527c..0000000000
--- a/openapi/ghe-2.16/operations/issues/get-event.json
+++ /dev/null
@@ -1,553 +0,0 @@
-{
- "summary": "Get a single event",
- "description": "",
- "operationId": "issues-get-event",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/events/#get-a-single-event"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "event_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "event_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "actor": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "event": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "commit_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "issue": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/events/:event_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n event_id: 'event_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/get-label.json b/openapi/ghe-2.16/operations/issues/get-label.json
deleted file mode 100644
index c72fcdf36c..0000000000
--- a/openapi/ghe-2.16/operations/issues/get-label.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "summary": "Get a single label",
- "description": "",
- "operationId": "issues-get-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#get-a-single-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/get-milestone.json b/openapi/ghe-2.16/operations/issues/get-milestone.json
deleted file mode 100644
index 2e15856ebf..0000000000
--- a/openapi/ghe-2.16/operations/issues/get-milestone.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Get a single milestone",
- "description": "",
- "operationId": "issues-get-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/milestones/#get-a-single-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/get.json b/openapi/ghe-2.16/operations/issues/get.json
deleted file mode 100644
index 6a634e1384..0000000000
--- a/openapi/ghe-2.16/operations/issues/get.json
+++ /dev/null
@@ -1,537 +0,0 @@
-{
- "summary": "Get a single issue",
- "description": "The API returns a [`301 Moved Permanently` status](https://developer.github.com/enterprise/2.16/v3/#http-redirects) if the issue was [transferred](https://help.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API returns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe to the [`issues`](https://developer.github.com/enterprise/2.16/v3/activity/events/types/#issuesevent) webhook.\n\n**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.16/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-get",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/#get-a-single-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-assignees.json b/openapi/ghe-2.16/operations/issues/list-assignees.json
deleted file mode 100644
index e520af3513..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-assignees.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List assignees",
- "description": "Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository.",
- "operationId": "issues-list-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/assignees/#list-assignees"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-comments-for-repo.json b/openapi/ghe-2.16/operations/issues/list-comments-for-repo.json
deleted file mode 100644
index f4325751c3..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-comments-for-repo.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "List comments in a repository",
- "description": "By default, Issue Comments are ordered by ascending ID.",
- "operationId": "issues-list-comments-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/comments/#list-comments-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Either `created` or `updated`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Either `asc` or `desc`. Ignored without the `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-comments.json b/openapi/ghe-2.16/operations/issues/list-comments.json
deleted file mode 100644
index c370343d27..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-comments.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "List comments on an issue",
- "description": "Issue Comments are ordered by ascending ID.",
- "operationId": "issues-list-comments",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/comments/#list-comments-on-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-events-for-repo.json b/openapi/ghe-2.16/operations/issues/list-events-for-repo.json
deleted file mode 100644
index 9b4865851e..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-events-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List events for a repository",
- "description": "",
- "operationId": "issues-list-events-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/events/#list-events-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/events"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-events-for-timeline.json b/openapi/ghe-2.16/operations/issues/list-events-for-timeline.json
deleted file mode 100644
index b7dbd2e245..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-events-for-timeline.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List events for an issue",
- "description": "",
- "operationId": "issues-list-events-for-timeline",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/timeline/#list-events-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.mockingbird-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.mockingbird-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/timeline"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-events.json b/openapi/ghe-2.16/operations/issues/list-events.json
deleted file mode 100644
index 3b4d303559..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-events.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List events for an issue",
- "description": "",
- "operationId": "issues-list-events",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/events/#list-events-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/events"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-for-authenticated-user.json b/openapi/ghe-2.16/operations/issues/list-for-authenticated-user.json
deleted file mode 100644
index cd11a54a76..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-for-authenticated-user.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "summary": "List all issues across owned and member repositories assigned to the authenticated user",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.16/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-authenticated-user",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-for-org.json b/openapi/ghe-2.16/operations/issues/list-for-org.json
deleted file mode 100644
index 6b21aae804..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-for-org.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "summary": "List all issues for a given organization assigned to the authenticated user",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.16/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-org",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-for-repo.json b/openapi/ghe-2.16/operations/issues/list-for-repo.json
deleted file mode 100644
index 56bdb0eab2..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-for-repo.json
+++ /dev/null
@@ -1,185 +0,0 @@
-{
- "summary": "List issues for a repository",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.16/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/#list-issues-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned."
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "assignee",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user."
- },
- {
- "name": "creator",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The user that created the issue."
- },
- {
- "name": "mentioned",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A user that's mentioned in the issue."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-labels-for-milestone.json b/openapi/ghe-2.16/operations/issues/list-labels-for-milestone.json
deleted file mode 100644
index 642a0bf72d..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-labels-for-milestone.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "Get labels for every issue in a milestone",
- "description": "",
- "operationId": "issues-list-labels-for-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-labels-for-repo.json b/openapi/ghe-2.16/operations/issues/list-labels-for-repo.json
deleted file mode 100644
index 1e52093df3..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-labels-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List all labels for this repository",
- "description": "",
- "operationId": "issues-list-labels-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#list-all-labels-for-this-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-labels-on-issue.json b/openapi/ghe-2.16/operations/issues/list-labels-on-issue.json
deleted file mode 100644
index a32dcaf70c..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-labels-on-issue.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List labels on an issue",
- "description": "",
- "operationId": "issues-list-labels-on-issue",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#list-labels-on-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/list-milestones-for-repo.json b/openapi/ghe-2.16/operations/issues/list-milestones-for-repo.json
deleted file mode 100644
index cd957e2e66..0000000000
--- a/openapi/ghe-2.16/operations/issues/list-milestones-for-repo.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "summary": "List milestones for a repository",
- "description": "",
- "operationId": "issues-list-milestones-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/milestones/#list-milestones-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "The state of the milestone. Either `open`, `closed`, or `all`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "due_on",
- "completeness"
- ],
- "default": "due_on"
- },
- "required": false,
- "description": "What to sort results by. Either `due_on` or `completeness`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "asc"
- },
- "required": false,
- "description": "The direction of the sort. Either `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/list.json b/openapi/ghe-2.16/operations/issues/list.json
deleted file mode 100644
index 129d95550d..0000000000
--- a/openapi/ghe-2.16/operations/issues/list.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "summary": "List all issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.16/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/lock.json b/openapi/ghe-2.16/operations/issues/lock.json
deleted file mode 100644
index cc4a54d06f..0000000000
--- a/openapi/ghe-2.16/operations/issues/lock.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "Lock an issue",
- "description": "Users with push access can lock an issue or pull request's conversation.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "issues-lock",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/#lock-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "lock_reason": {
- "description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
- "type": "string",
- "enum": [
- "off-topic",
- "too heated",
- "resolved",
- "spam"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/lock"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/remove-assignees.json b/openapi/ghe-2.16/operations/issues/remove-assignees.json
deleted file mode 100644
index 64d331b357..0000000000
--- a/openapi/ghe-2.16/operations/issues/remove-assignees.json
+++ /dev/null
@@ -1,496 +0,0 @@
-{
- "summary": "Remove assignees from an issue",
- "description": "Removes one or more assignees from an issue.\n\nThis example removes two of three assignees, leaving the `octocat` assignee.",
- "operationId": "issues-remove-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/assignees/#remove-assignees-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "assignees": {
- "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/remove-label.json b/openapi/ghe-2.16/operations/issues/remove-label.json
deleted file mode 100644
index 94aa82b813..0000000000
--- a/openapi/ghe-2.16/operations/issues/remove-label.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "summary": "Remove a label from an issue",
- "description": "Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist.",
- "operationId": "issues-remove-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#remove-a-label-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/remove-labels.json b/openapi/ghe-2.16/operations/issues/remove-labels.json
deleted file mode 100644
index bffe02cd90..0000000000
--- a/openapi/ghe-2.16/operations/issues/remove-labels.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Remove all labels from an issue",
- "description": "",
- "operationId": "issues-remove-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#remove-all-labels-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/replace-labels.json b/openapi/ghe-2.16/operations/issues/replace-labels.json
deleted file mode 100644
index 0a373cdc6d..0000000000
--- a/openapi/ghe-2.16/operations/issues/replace-labels.json
+++ /dev/null
@@ -1,104 +0,0 @@
-{
- "summary": "Replace all labels for an issue",
- "description": "",
- "operationId": "issues-replace-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/labels/#replace-all-labels-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "labels": {
- "description": "The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/unlock.json b/openapi/ghe-2.16/operations/issues/unlock.json
deleted file mode 100644
index 1daac91495..0000000000
--- a/openapi/ghe-2.16/operations/issues/unlock.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Unlock an issue",
- "description": "Users with push access can unlock an issue's conversation.",
- "operationId": "issues-unlock",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/#unlock-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/lock"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/update-comment.json b/openapi/ghe-2.16/operations/issues/update-comment.json
deleted file mode 100644
index 369334c1e8..0000000000
--- a/openapi/ghe-2.16/operations/issues/update-comment.json
+++ /dev/null
@@ -1,177 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "issues-update-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/issues/update-milestone.json b/openapi/ghe-2.16/operations/issues/update-milestone.json
deleted file mode 100644
index 0d97297d55..0000000000
--- a/openapi/ghe-2.16/operations/issues/update-milestone.json
+++ /dev/null
@@ -1,225 +0,0 @@
-{
- "summary": "Update a milestone",
- "description": "",
- "operationId": "issues-update-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/milestones/#update-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the milestone.",
- "type": "string"
- },
- "state": {
- "description": "The state of the milestone. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open"
- },
- "description": {
- "description": "A description of the milestone.",
- "type": "string"
- },
- "due_on": {
- "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/issues/update.json b/openapi/ghe-2.16/operations/issues/update.json
deleted file mode 100644
index 9e9a5a7c57..0000000000
--- a/openapi/ghe-2.16/operations/issues/update.json
+++ /dev/null
@@ -1,587 +0,0 @@
-{
- "summary": "Edit an issue",
- "description": "Issue owners and users with push access can edit an issue.",
- "operationId": "issues-update",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/issues/#edit-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the issue.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the issue.",
- "type": "string"
- },
- "assignee": {
- "description": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
- "type": "string"
- },
- "state": {
- "description": "State of the issue. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "milestone": {
- "description": "The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._",
- "type": "integer",
- "nullable": true
- },
- "labels": {
- "description": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "assignees": {
- "description": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/licenses/get-for-repo.json b/openapi/ghe-2.16/operations/licenses/get-for-repo.json
deleted file mode 100644
index 53bb9d95e6..0000000000
--- a/openapi/ghe-2.16/operations/licenses/get-for-repo.json
+++ /dev/null
@@ -1,137 +0,0 @@
-{
- "summary": "Get the contents of a repository's license",
- "description": "This method returns the contents of the repository's license file, if one is detected.\n\nSimilar to [the repository contents API](https://developer.github.com/enterprise/2.16/v3/repos/contents/#get-contents), this method also supports [custom media types](https://developer.github.com/enterprise/2.16/v3/repos/contents/#custom-media-types) for retrieving the raw license content or rendered license HTML.",
- "operationId": "licenses-get-for-repo",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/licenses/#get-the-contents-of-a-repositorys-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- },
- "license": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/license"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/licenses/get.json b/openapi/ghe-2.16/operations/licenses/get.json
deleted file mode 100644
index 954ce02a7a..0000000000
--- a/openapi/ghe-2.16/operations/licenses/get.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get an individual license",
- "description": "",
- "operationId": "licenses-get",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/licenses/#get-an-individual-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "license",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "license parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "permissions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "conditions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "limitations": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "body": {
- "type": "string"
- },
- "featured": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/licenses/"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get({\n license: 'license'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/licenses/list-commonly-used.json b/openapi/ghe-2.16/operations/licenses/list-commonly-used.json
deleted file mode 100644
index 563c3f455d..0000000000
--- a/openapi/ghe-2.16/operations/licenses/list-commonly-used.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "List commonly used licenses",
- "description": "",
- "operationId": "licenses-list-commonly-used",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/licenses/#list-commonly-used-licenses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/licenses"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-03-05",
- "note": "\"List all licenses\" renamed to \"List commonly used licenses\"",
- "meta": {
- "before": {
- "idName": "list"
- },
- "after": {
- "idName": "list-commonly-used"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/markdown/render-raw.json b/openapi/ghe-2.16/operations/markdown/render-raw.json
deleted file mode 100644
index 32221d707a..0000000000
--- a/openapi/ghe-2.16/operations/markdown/render-raw.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Render a Markdown document in raw mode",
- "description": "You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.\n\n",
- "operationId": "markdown-render-raw",
- "tags": [
- "markdown"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/markdown/#render-a-markdown-document-in-raw-mode"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "content-type",
- "description": "Setting content-type header is required for this endpoint",
- "in": "header",
- "schema": {
- "type": "string",
- "enum": [
- "text/plain; charset=utf-8"
- ]
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string",
- "description": "data parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/markdown/raw \\\n -d '{\"data\":\"data\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.markdown.get({\n data: 'data'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "data"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/markdown/render.json b/openapi/ghe-2.16/operations/markdown/render.json
deleted file mode 100644
index 5fb39642a8..0000000000
--- a/openapi/ghe-2.16/operations/markdown/render.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Render an arbitrary Markdown document",
- "description": "",
- "operationId": "markdown-render",
- "tags": [
- "markdown"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/markdown/#render-an-arbitrary-markdown-document"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "text": {
- "description": "The Markdown text to render in HTML. Markdown content must be 400 KB or less.",
- "type": "string"
- },
- "mode": {
- "description": "The rendering mode. Can be either: \n\\* `markdown` to render a document in plain Markdown, just like README.md files are rendered. \n\\* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests.",
- "type": "string",
- "enum": [
- "markdown",
- "gfm"
- ],
- "default": "markdown"
- },
- "context": {
- "description": "The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode.",
- "type": "string"
- }
- },
- "required": [
- "text"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/markdown \\\n -d '{\"text\":\"text\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.markdown.get({\n text: 'text'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/meta/get.json b/openapi/ghe-2.16/operations/meta/get.json
deleted file mode 100644
index 32793c21df..0000000000
--- a/openapi/ghe-2.16/operations/meta/get.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "summary": "Get",
- "description": "If you access this endpoint on your organization's [GitHub Enterprise Server](https://enterprise.github.com/) installation, this endpoint provides information about that installation.\n\n**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.16/v3/guides/replacing-github-services) to help you update your services to webhooks.",
- "operationId": "meta-get",
- "tags": [
- "meta"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/meta/#meta"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "verifiable_password_authentication": {
- "type": "boolean"
- },
- "installed_version": {
- "type": "string"
- },
- "github_services_sha": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/meta"
- },
- {
- "lang": "JS",
- "source": "octokit.meta.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/check-authorization.json b/openapi/ghe-2.16/operations/oauth_authorizations/check-authorization.json
deleted file mode 100644
index 4f5b28f738..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/check-authorization.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Check an authorization",
- "description": "OAuth applications can use a special API method for checking OAuth token validity without running afoul of normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/enterprise/2.16/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
- "operationId": "oauth_authorizations-check-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#check-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/create-authorization.json b/openapi/ghe-2.16/operations/oauth_authorizations/create-authorization.json
deleted file mode 100644
index 83e84f8de4..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/create-authorization.json
+++ /dev/null
@@ -1,143 +0,0 @@
-{
- "summary": "Create a new authorization",
- "description": "Creates OAuth tokens using [Basic Authentication](https://developer.github.com/enterprise/2.16/v3/auth#basic-authentication). If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.16/v3/auth/#working-with-two-factor-authentication).\"\n\nYou can use this endpoint to create multiple OAuth tokens instead of implementing the [web flow](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/authorizing-oauth-apps/).\n\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them.\n\nYou can also create tokens on GitHub from the [personal access tokens settings](https://github.com/settings/tokens) page. Read more about these tokens in [the GitHub Help documentation](https://help.github.com/articles/creating-an-access-token-for-command-line-use).",
- "operationId": "oauth_authorizations-create-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#create-a-new-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "client_id": {
- "description": "The 20 character OAuth app client key for which to create the token.",
- "type": "string"
- },
- "client_secret": {
- "description": "The 40 character OAuth app client secret for which to create the token.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "type": "string"
- }
- },
- "required": [
- "note"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations \\\n -d '{\"note\":\"note\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n note: 'note'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/delete-authorization.json b/openapi/ghe-2.16/operations/oauth_authorizations/delete-authorization.json
deleted file mode 100644
index e4d502130e..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/delete-authorization.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete an authorization",
- "description": "",
- "operationId": "oauth_authorizations-delete-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#delete-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/delete-grant.json b/openapi/ghe-2.16/operations/oauth_authorizations/delete-grant.json
deleted file mode 100644
index 3c4caf4362..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/delete-grant.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a grant",
- "description": "Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
- "operationId": "oauth_authorizations-delete-grant",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#delete-a-grant"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "grant_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "grant_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n grant_id: 'grant_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/get-authorization.json b/openapi/ghe-2.16/operations/oauth_authorizations/get-authorization.json
deleted file mode 100644
index 83135c5d83..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/get-authorization.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "summary": "Get a single authorization",
- "description": "",
- "operationId": "oauth_authorizations-get-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#get-a-single-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/get-grant.json b/openapi/ghe-2.16/operations/oauth_authorizations/get-grant.json
deleted file mode 100644
index 8748409604..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/get-grant.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "Get a single grant",
- "description": "",
- "operationId": "oauth_authorizations-get-grant",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#get-a-single-grant"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "grant_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "grant_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n grant_id: 'grant_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json b/openapi/ghe-2.16/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json
deleted file mode 100644
index dc708b4d80..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get-or-create an authorization for a specific app and fingerprint",
- "description": "This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.16/v3/auth/#working-with-two-factor-authentication).\"",
- "operationId": "oauth_authorizations-get-or-create-authorization-for-app-and-fingerprint",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "fingerprint",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "fingerprint parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "client_secret": {
- "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
- "type": "string"
- },
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- }
- },
- "required": [
- "client_secret"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/clients//:fingerprint \\\n -d '{\"client_secret\":\"client_secret\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n fingerprint: 'fingerprint',\n client_secret: 'client_secret'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2018-12-27",
- "note": "`idName` changed for \"Get-or-create an authorization for a specific app and fingerprint\". It now includes `-and-`",
- "meta": {
- "before": {
- "idName": "get-or-create-authorization-for-app-fingerprint"
- },
- "after": {
- "idName": "get-or-create-authorization-for-app-and-fingerprint"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/get-or-create-authorization-for-app.json b/openapi/ghe-2.16/operations/oauth_authorizations/get-or-create-authorization-for-app.json
deleted file mode 100644
index a70406df98..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/get-or-create-authorization-for-app.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Get-or-create an authorization for a specific app",
- "description": "Creates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.16/v3/auth/#working-with-two-factor-authentication).\"",
- "operationId": "oauth_authorizations-get-or-create-authorization-for-app",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "client_secret": {
- "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
- "type": "string"
- },
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint).",
- "type": "string"
- }
- },
- "required": [
- "client_secret"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/clients/ \\\n -d '{\"client_secret\":\"client_secret\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n client_secret: 'client_secret'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/list-authorizations.json b/openapi/ghe-2.16/operations/oauth_authorizations/list-authorizations.json
deleted file mode 100644
index 109aed4e1f..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/list-authorizations.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your authorizations",
- "description": "",
- "operationId": "oauth_authorizations-list-authorizations",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#list-your-authorizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/list-grants.json b/openapi/ghe-2.16/operations/oauth_authorizations/list-grants.json
deleted file mode 100644
index 1b2501bf26..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/list-grants.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your grants",
- "description": "You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `[\"repo\", \"user\"]`.",
- "operationId": "oauth_authorizations-list-grants",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#list-your-grants"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/reset-authorization.json b/openapi/ghe-2.16/operations/oauth_authorizations/reset-authorization.json
deleted file mode 100644
index 83628e23c3..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/reset-authorization.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Reset an authorization",
- "description": "OAuth applications can use this API method to reset a valid OAuth token without end user involvement. Applications must save the \"token\" property in the response, because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/enterprise/2.16/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
- "operationId": "oauth_authorizations-reset-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#reset-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/revoke-authorization-for-application.json b/openapi/ghe-2.16/operations/oauth_authorizations/revoke-authorization-for-application.json
deleted file mode 100644
index 027f1430f0..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/revoke-authorization-for-application.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Revoke an authorization for an application",
- "description": "OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/enterprise/2.16/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`.",
- "operationId": "oauth_authorizations-revoke-authorization-for-application",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#revoke-an-authorization-for-an-application"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/revoke-grant-for-application.json b/openapi/ghe-2.16/operations/oauth_authorizations/revoke-grant-for-application.json
deleted file mode 100644
index 6aa7d22852..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/revoke-grant-for-application.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Revoke a grant for an application",
- "description": "OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/enterprise/2.16/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted.\n\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
- "operationId": "oauth_authorizations-revoke-grant-for-application",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#revoke-a-grant-for-an-application"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//grants/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/oauth_authorizations/update-authorization.json b/openapi/ghe-2.16/operations/oauth_authorizations/update-authorization.json
deleted file mode 100644
index 20856bb13d..0000000000
--- a/openapi/ghe-2.16/operations/oauth_authorizations/update-authorization.json
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "summary": "Update an existing authorization",
- "description": "If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.16/v3/auth/#working-with-two-factor-authentication).\"\n\nYou can only send one of these scope keys at a time.",
- "operationId": "oauth_authorizations-update-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/oauth_authorizations/#update-an-existing-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "Replaces the authorization scopes with these.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "add_scopes": {
- "description": "A list of scopes to add to this authorization.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "remove_scopes": {
- "description": "A list of scopes to remove from this authorization.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/add-or-update-membership.json b/openapi/ghe-2.16/operations/orgs/add-or-update-membership.json
deleted file mode 100644
index da9bb20ebd..0000000000
--- a/openapi/ghe-2.16/operations/orgs/add-or-update-membership.json
+++ /dev/null
@@ -1,202 +0,0 @@
-{
- "summary": "Add or update organization membership",
- "description": "Only authenticated organization owners can add a member to the organization or update the member's role.",
- "operationId": "orgs-add-or-update-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#add-or-update-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "role": {
- "description": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.",
- "type": "string",
- "enum": [
- "admin",
- "member"
- ],
- "default": "member"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/check-membership.json b/openapi/ghe-2.16/operations/orgs/check-membership.json
deleted file mode 100644
index fe3e6e1490..0000000000
--- a/openapi/ghe-2.16/operations/orgs/check-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check membership",
- "description": "Check if a user is, publicly or privately, a member of the organization.",
- "operationId": "orgs-check-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#check-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/check-public-membership.json b/openapi/ghe-2.16/operations/orgs/check-public-membership.json
deleted file mode 100644
index 990bff95e4..0000000000
--- a/openapi/ghe-2.16/operations/orgs/check-public-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check public membership",
- "description": "",
- "operationId": "orgs-check-public-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#check-public-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/conceal-membership.json b/openapi/ghe-2.16/operations/orgs/conceal-membership.json
deleted file mode 100644
index ae98f0bba5..0000000000
--- a/openapi/ghe-2.16/operations/orgs/conceal-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Conceal a user's membership",
- "description": "",
- "operationId": "orgs-conceal-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#conceal-a-users-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/convert-member-to-outside-collaborator.json b/openapi/ghe-2.16/operations/orgs/convert-member-to-outside-collaborator.json
deleted file mode 100644
index 7ce9c61635..0000000000
--- a/openapi/ghe-2.16/operations/orgs/convert-member-to-outside-collaborator.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Convert member to outside collaborator",
- "description": "When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see \"[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\".",
- "operationId": "orgs-convert-member-to-outside-collaborator",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/create-hook.json b/openapi/ghe-2.16/operations/orgs/create-hook.json
deleted file mode 100644
index e5a287eb31..0000000000
--- a/openapi/ghe-2.16/operations/orgs/create-hook.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "summary": "Create a hook",
- "description": "Here's how you can create a hook that posts payloads in JSON format:",
- "operationId": "orgs-create-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/hooks/#create-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Must be passed as \"web\".",
- "type": "string"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.16/v3/orgs/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.16/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name",
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks \\\n -d '{\"name\":\"name\",\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n name: 'name',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/delete-hook.json b/openapi/ghe-2.16/operations/orgs/delete-hook.json
deleted file mode 100644
index ea03ac07a1..0000000000
--- a/openapi/ghe-2.16/operations/orgs/delete-hook.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a hook",
- "description": "",
- "operationId": "orgs-delete-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/hooks/#delete-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/get-hook.json b/openapi/ghe-2.16/operations/orgs/get-hook.json
deleted file mode 100644
index aaf9fc8063..0000000000
--- a/openapi/ghe-2.16/operations/orgs/get-hook.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
- "summary": "Get single hook",
- "description": "",
- "operationId": "orgs-get-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/hooks/#get-single-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/get-membership-for-authenticated-user.json b/openapi/ghe-2.16/operations/orgs/get-membership-for-authenticated-user.json
deleted file mode 100644
index 0f750bbf97..0000000000
--- a/openapi/ghe-2.16/operations/orgs/get-membership-for-authenticated-user.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "summary": "Get your organization membership",
- "description": "",
- "operationId": "orgs-get-membership-for-authenticated-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#get-your-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/get-membership.json b/openapi/ghe-2.16/operations/orgs/get-membership.json
deleted file mode 100644
index 5b3152eca4..0000000000
--- a/openapi/ghe-2.16/operations/orgs/get-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get organization membership",
- "description": "In order to get a user's membership with an organization, the authenticated user must be an organization member.",
- "operationId": "orgs-get-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#get-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/get.json b/openapi/ghe-2.16/operations/orgs/get.json
deleted file mode 100644
index 02b672d90b..0000000000
--- a/openapi/ghe-2.16/operations/orgs/get.json
+++ /dev/null
@@ -1,180 +0,0 @@
-{
- "summary": "Get an organization",
- "description": "To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/).",
- "operationId": "orgs-get",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/#get-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "billing_email": {
- "type": "string"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- }
- }
- },
- "default_repository_settings": {
- "type": "string"
- },
- "members_can_create_repositories": {
- "type": "boolean"
- },
- "two_factor_requirement_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/list-for-authenticated-user.json b/openapi/ghe-2.16/operations/orgs/list-for-authenticated-user.json
deleted file mode 100644
index e80ef857c2..0000000000
--- a/openapi/ghe-2.16/operations/orgs/list-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your organizations",
- "description": "List organizations for the authenticated user.\n\n**OAuth scope requirements**\n\nThis only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response.",
- "operationId": "orgs-list-for-authenticated-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/#list-your-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/list-for-user.json b/openapi/ghe-2.16/operations/orgs/list-for-user.json
deleted file mode 100644
index 39ae3dd8b0..0000000000
--- a/openapi/ghe-2.16/operations/orgs/list-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List user organizations",
- "description": "List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user.\n\nThis method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List your organizations](https://developer.github.com/enterprise/2.16/v3/orgs/#list-your-organizations) API instead.",
- "operationId": "orgs-list-for-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/#list-user-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/list-hooks.json b/openapi/ghe-2.16/operations/orgs/list-hooks.json
deleted file mode 100644
index 2912ff3559..0000000000
--- a/openapi/ghe-2.16/operations/orgs/list-hooks.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List hooks",
- "description": "",
- "operationId": "orgs-list-hooks",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/hooks/#list-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/list-members.json b/openapi/ghe-2.16/operations/orgs/list-members.json
deleted file mode 100644
index 25d00f88d4..0000000000
--- a/openapi/ghe-2.16/operations/orgs/list-members.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Members list",
- "description": "List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned.\n\n",
- "operationId": "orgs-list-members",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#members-list"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "2fa_disabled",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter members returned in the list. Can be one of: \n\\* `2fa_disabled` - Members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. Available for organization owners. \n\\* `all` - All members the authenticated user can see."
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "admin",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter members returned by their role. Can be one of: \n\\* `all` - All members of the organization, regardless of role. \n\\* `admin` - Organization owners. \n\\* `member` - Non-owner organization members."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/list-memberships.json b/openapi/ghe-2.16/operations/orgs/list-memberships.json
deleted file mode 100644
index ac231081c4..0000000000
--- a/openapi/ghe-2.16/operations/orgs/list-memberships.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List your organization memberships",
- "description": "",
- "operationId": "orgs-list-memberships",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#list-your-organization-memberships"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "active",
- "pending"
- ]
- },
- "required": false,
- "description": "Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/list-outside-collaborators.json b/openapi/ghe-2.16/operations/orgs/list-outside-collaborators.json
deleted file mode 100644
index 2c5d9ea341..0000000000
--- a/openapi/ghe-2.16/operations/orgs/list-outside-collaborators.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "List outside collaborators",
- "description": "List all users who are outside collaborators of an organization.\n\n",
- "operationId": "orgs-list-outside-collaborators",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/outside_collaborators/#list-outside-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "2fa_disabled",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter the list of outside collaborators. Can be one of: \n\\* `2fa_disabled`: Outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. \n\\* `all`: All outside collaborators."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/list-public-members.json b/openapi/ghe-2.16/operations/orgs/list-public-members.json
deleted file mode 100644
index 48565f3934..0000000000
--- a/openapi/ghe-2.16/operations/orgs/list-public-members.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Public members list",
- "description": "Members of an organization can choose to have their membership publicized or not.",
- "operationId": "orgs-list-public-members",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#public-members-list"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/list.json b/openapi/ghe-2.16/operations/orgs/list.json
deleted file mode 100644
index eef216528f..0000000000
--- a/openapi/ghe-2.16/operations/orgs/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List all organizations",
- "description": "Lists all organizations, in the order that they were created on GitHub Enterprise Server.\n\n**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.16/v3/#link-header) to get the URL for the next page of organizations.",
- "operationId": "orgs-list",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/#list-all-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last Organization that you've seen."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/organizations"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/ping-hook.json b/openapi/ghe-2.16/operations/orgs/ping-hook.json
deleted file mode 100644
index 0ac33dcbc1..0000000000
--- a/openapi/ghe-2.16/operations/orgs/ping-hook.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Ping a hook",
- "description": "This will trigger a [ping event](https://developer.github.com/enterprise/2.16/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "orgs-ping-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/hooks/#ping-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id/pings"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/publicize-membership.json b/openapi/ghe-2.16/operations/orgs/publicize-membership.json
deleted file mode 100644
index 42d88c68dd..0000000000
--- a/openapi/ghe-2.16/operations/orgs/publicize-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Publicize a user's membership",
- "description": "The user can publicize their own membership. (A user cannot publicize the membership for another user.)\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "orgs-publicize-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#publicize-a-users-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/remove-member.json b/openapi/ghe-2.16/operations/orgs/remove-member.json
deleted file mode 100644
index 89fc3d2b90..0000000000
--- a/openapi/ghe-2.16/operations/orgs/remove-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove a member",
- "description": "Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.",
- "operationId": "orgs-remove-member",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#remove-a-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/remove-membership.json b/openapi/ghe-2.16/operations/orgs/remove-membership.json
deleted file mode 100644
index 19c7432df3..0000000000
--- a/openapi/ghe-2.16/operations/orgs/remove-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove organization membership",
- "description": "In order to remove a user's membership with an organization, the authenticated user must be an organization owner.\n\nIf the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases.",
- "operationId": "orgs-remove-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#remove-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/remove-outside-collaborator.json b/openapi/ghe-2.16/operations/orgs/remove-outside-collaborator.json
deleted file mode 100644
index bccb07d454..0000000000
--- a/openapi/ghe-2.16/operations/orgs/remove-outside-collaborator.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove outside collaborator",
- "description": "Removing a user from this list will remove them from all the organization's repositories.",
- "operationId": "orgs-remove-outside-collaborator",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/outside_collaborators/#remove-outside-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/update-hook.json b/openapi/ghe-2.16/operations/orgs/update-hook.json
deleted file mode 100644
index af74bb46e5..0000000000
--- a/openapi/ghe-2.16/operations/orgs/update-hook.json
+++ /dev/null
@@ -1,159 +0,0 @@
-{
- "summary": "Edit a hook",
- "description": "",
- "operationId": "orgs-update-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/hooks/#edit-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.16/v3/orgs/hooks/#update-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.16/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/update-membership.json b/openapi/ghe-2.16/operations/orgs/update-membership.json
deleted file mode 100644
index 86ccbac361..0000000000
--- a/openapi/ghe-2.16/operations/orgs/update-membership.json
+++ /dev/null
@@ -1,194 +0,0 @@
-{
- "summary": "Edit your organization membership",
- "description": "",
- "operationId": "orgs-update-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/members/#edit-your-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state that the membership should be in. Only `\"active\"` will be accepted.",
- "type": "string",
- "enum": [
- "active"
- ]
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs/ \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/orgs/update.json b/openapi/ghe-2.16/operations/orgs/update.json
deleted file mode 100644
index 37a49ab015..0000000000
--- a/openapi/ghe-2.16/operations/orgs/update.json
+++ /dev/null
@@ -1,248 +0,0 @@
-{
- "summary": "Edit an organization",
- "description": "**Note:** The new `members_allowed_repository_creation_type` replaces the functionality of `members_can_create_repositories`.\n\nSetting `members_allowed_repository_creation_type` will override the value of `members_can_create_repositories` in the following ways:\n\n* Setting `members_allowed_repository_creation_type` to `all` or `private` sets `members_can_create_repositories` to `true`.\n* Setting `members_allowed_repository_creation_type` to `none` sets `members_can_create_repositories` to `false`.\n* If you omit `members_allowed_repository_creation_type`, `members_can_create_repositories` is not modified.",
- "operationId": "orgs-update",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/orgs/#edit-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "billing_email": {
- "description": "Billing email address. This address is not publicized.",
- "type": "string"
- },
- "company": {
- "description": "The company name.",
- "type": "string"
- },
- "email": {
- "description": "The publicly visible email address.",
- "type": "string"
- },
- "location": {
- "description": "The location.",
- "type": "string"
- },
- "name": {
- "description": "The shorthand name of the company.",
- "type": "string"
- },
- "description": {
- "description": "The description of the company.",
- "type": "string"
- },
- "has_organization_projects": {
- "description": "Toggles whether organization projects are enabled for the organization.",
- "type": "boolean"
- },
- "has_repository_projects": {
- "description": "Toggles whether repository projects are enabled for repositories that belong to the organization.",
- "type": "boolean"
- },
- "default_repository_permission": {
- "description": "Default permission level members have for organization repositories: \n\\* `read` - can pull, but not push to or administer this repository. \n\\* `write` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push, and administer this repository. \n\\* `none` - no permissions granted by default.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin",
- "none"
- ],
- "default": "read"
- },
- "members_can_create_repositories": {
- "description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only admin members can create repositories. \nDefault: `true` \n**Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/enterprise/2.16/v3/orgs/#members_can_create_repositories) for details. **Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/enterprise/2.16/v3/orgs/#members_can_create_repositories) for details.",
- "type": "boolean",
- "default": true
- },
- "members_allowed_repository_creation_type": {
- "description": "Specifies which types of repositories non-admin organization members can create. Can be one of: \n\\* `all` - all organization members can create public and private repositories. \n\\* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on [GitHub Business Cloud](https://github.com/pricing/business-cloud). \n\\* `none` - only admin members can create repositories. \n**Note:** Using this parameter will override values set in `members_can_create_repositories`. See [this note](https://developer.github.com/enterprise/2.16/v3/orgs/#members_can_create_repositories) for details.",
- "type": "string",
- "enum": [
- "all",
- "private",
- "none"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "billing_email": {
- "type": "string"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- }
- }
- },
- "default_repository_settings": {
- "type": "string"
- },
- "members_can_create_repositories": {
- "type": "boolean"
- },
- "two_factor_requirement_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/add-collaborator.json b/openapi/ghe-2.16/operations/projects/add-collaborator.json
deleted file mode 100644
index d46d00c0f1..0000000000
--- a/openapi/ghe-2.16/operations/projects/add-collaborator.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "summary": "Add user as a collaborator",
- "description": "Adds a collaborator to a an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator.",
- "operationId": "projects-add-collaborator",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/collaborators/#add-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\" Can be one of: \n\\* `read` - can read, but not write to or administer this project. \n\\* `write` - can read and write, but not administer this project. \n\\* `admin` - can read, write and administer this project.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ],
- "default": "write"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/create-card.json b/openapi/ghe-2.16/operations/projects/create-card.json
deleted file mode 100644
index 28b24f8aa1..0000000000
--- a/openapi/ghe-2.16/operations/projects/create-card.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "summary": "Create a project card",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.16/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "projects-create-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/cards/#create-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "note": {
- "description": "The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`.",
- "type": "string"
- },
- "content_id": {
- "description": "The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/enterprise/2.16/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/enterprise/2.16/v3/pulls/#list-pull-requests) endpoints to find this id. \n**Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`.",
- "type": "integer"
- },
- "content_type": {
- "description": "**Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "archived": {
- "type": "boolean"
- },
- "column_url": {
- "type": "string"
- },
- "content_url": {
- "type": "string"
- },
- "project_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//cards"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/create-column.json b/openapi/ghe-2.16/operations/projects/create-column.json
deleted file mode 100644
index faa60c1825..0000000000
--- a/openapi/ghe-2.16/operations/projects/create-column.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Create a project column",
- "description": "",
- "operationId": "projects-create-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/columns/#create-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the column.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//columns \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/create-for-org.json b/openapi/ghe-2.16/operations/projects/create-for-org.json
deleted file mode 100644
index 42572d8f9c..0000000000
--- a/openapi/ghe-2.16/operations/projects/create-for-org.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Create an organization project",
- "description": "Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-create-for-org",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/#create-an-organization-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/orgs//projects \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/create-for-repo.json b/openapi/ghe-2.16/operations/projects/create-for-repo.json
deleted file mode 100644
index 46a0c2e0f3..0000000000
--- a/openapi/ghe-2.16/operations/projects/create-for-repo.json
+++ /dev/null
@@ -1,208 +0,0 @@
-{
- "summary": "Create a repository project",
- "description": "Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-create-for-repo",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/#create-a-repository-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/projects \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/delete-card.json b/openapi/ghe-2.16/operations/projects/delete-card.json
deleted file mode 100644
index cad4a687d8..0000000000
--- a/openapi/ghe-2.16/operations/projects/delete-card.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project card",
- "description": "",
- "operationId": "projects-delete-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/cards/#delete-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/delete-column.json b/openapi/ghe-2.16/operations/projects/delete-column.json
deleted file mode 100644
index f8880a8396..0000000000
--- a/openapi/ghe-2.16/operations/projects/delete-column.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project column",
- "description": "",
- "operationId": "projects-delete-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/columns/#delete-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/delete.json b/openapi/ghe-2.16/operations/projects/delete.json
deleted file mode 100644
index 4a0cb33757..0000000000
--- a/openapi/ghe-2.16/operations/projects/delete.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project",
- "description": "Deletes a project board. Returns a `404 Not Found` status if projects are disabled.",
- "operationId": "projects-delete",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/#delete-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/get-card.json b/openapi/ghe-2.16/operations/projects/get-card.json
deleted file mode 100644
index 944337c1c2..0000000000
--- a/openapi/ghe-2.16/operations/projects/get-card.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Get a project card",
- "description": "",
- "operationId": "projects-get-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/cards/#get-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/get-column.json b/openapi/ghe-2.16/operations/projects/get-column.json
deleted file mode 100644
index 3771db3adf..0000000000
--- a/openapi/ghe-2.16/operations/projects/get-column.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Get a project column",
- "description": "",
- "operationId": "projects-get-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/columns/#get-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/get.json b/openapi/ghe-2.16/operations/projects/get.json
deleted file mode 100644
index a3cf2e719f..0000000000
--- a/openapi/ghe-2.16/operations/projects/get.json
+++ /dev/null
@@ -1,177 +0,0 @@
-{
- "summary": "Get a project",
- "description": "Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-get",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/#get-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/list-cards.json b/openapi/ghe-2.16/operations/projects/list-cards.json
deleted file mode 100644
index a48dfc16bc..0000000000
--- a/openapi/ghe-2.16/operations/projects/list-cards.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List project cards",
- "description": "",
- "operationId": "projects-list-cards",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/cards/#list-project-cards"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- },
- {
- "name": "archived_state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "archived",
- "not_archived"
- ],
- "default": "not_archived"
- },
- "required": false,
- "description": "Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//cards"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/list-collaborators.json b/openapi/ghe-2.16/operations/projects/list-collaborators.json
deleted file mode 100644
index 3a55efc2b9..0000000000
--- a/openapi/ghe-2.16/operations/projects/list-collaborators.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List collaborators",
- "description": "Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators.",
- "operationId": "projects-list-collaborators",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/collaborators/#list-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "outside",
- "direct",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filters the collaborators by their affiliation. Can be one of: \n\\* `outside`: Outside collaborators of a project that are not a member of the project's organization. \n\\* `direct`: Collaborators with permissions to a project, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/list-columns.json b/openapi/ghe-2.16/operations/projects/list-columns.json
deleted file mode 100644
index a072abb999..0000000000
--- a/openapi/ghe-2.16/operations/projects/list-columns.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "List project columns",
- "description": "",
- "operationId": "projects-list-columns",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/columns/#list-project-columns"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//columns"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/list-for-org.json b/openapi/ghe-2.16/operations/projects/list-for-org.json
deleted file mode 100644
index f6342d13e4..0000000000
--- a/openapi/ghe-2.16/operations/projects/list-for-org.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List organization projects",
- "description": "Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.\n\ns",
- "operationId": "projects-list-for-org",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/#list-organization-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/orgs//projects"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/list-for-repo.json b/openapi/ghe-2.16/operations/projects/list-for-repo.json
deleted file mode 100644
index 9b737dce18..0000000000
--- a/openapi/ghe-2.16/operations/projects/list-for-repo.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "List repository projects",
- "description": "Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-list-for-repo",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/#list-repository-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/projects"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/move-card.json b/openapi/ghe-2.16/operations/projects/move-card.json
deleted file mode 100644
index c69835c2a5..0000000000
--- a/openapi/ghe-2.16/operations/projects/move-card.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Move a project card",
- "description": "",
- "operationId": "projects-move-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/cards/#move-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "position": {
- "description": "Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`.",
- "type": "string",
- "pattern": "^(top|bottom|after:\\d+)$"
- },
- "column_id": {
- "description": "The `id` value of a column in the same project.",
- "type": "integer"
- }
- },
- "required": [
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards//moves \\\n -d '{\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/move-column.json b/openapi/ghe-2.16/operations/projects/move-column.json
deleted file mode 100644
index 1e8dbcff5b..0000000000
--- a/openapi/ghe-2.16/operations/projects/move-column.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Move a project column",
- "description": "",
- "operationId": "projects-move-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/columns/#move-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "position": {
- "description": "Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project.",
- "type": "string",
- "pattern": "^(first|last|after:\\d+)$"
- }
- },
- "required": [
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//moves \\\n -d '{\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/remove-collaborator.json b/openapi/ghe-2.16/operations/projects/remove-collaborator.json
deleted file mode 100644
index 2d2fca5896..0000000000
--- a/openapi/ghe-2.16/operations/projects/remove-collaborator.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Remove user as a collaborator",
- "description": "Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator.",
- "operationId": "projects-remove-collaborator",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/collaborators/#remove-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/review-user-permission-level.json b/openapi/ghe-2.16/operations/projects/review-user-permission-level.json
deleted file mode 100644
index 80f17dd891..0000000000
--- a/openapi/ghe-2.16/operations/projects/review-user-permission-level.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "summary": "Review a user's permission level",
- "description": "Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level.",
- "operationId": "projects-review-user-permission-level",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/collaborators/#review-a-users-permission-level"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "permission": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username/permission"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/update-card.json b/openapi/ghe-2.16/operations/projects/update-card.json
deleted file mode 100644
index 8e5f24771c..0000000000
--- a/openapi/ghe-2.16/operations/projects/update-card.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Update a project card",
- "description": "",
- "operationId": "projects-update-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/cards/#update-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "note": {
- "description": "The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`.",
- "type": "string"
- },
- "archived": {
- "description": "Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/update-column.json b/openapi/ghe-2.16/operations/projects/update-column.json
deleted file mode 100644
index bfd2158e65..0000000000
--- a/openapi/ghe-2.16/operations/projects/update-column.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Update a project column",
- "description": "",
- "operationId": "projects-update-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/columns/#update-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new name of the column.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/ \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/projects/update.json b/openapi/ghe-2.16/operations/projects/update.json
deleted file mode 100644
index ce212f24a5..0000000000
--- a/openapi/ghe-2.16/operations/projects/update.json
+++ /dev/null
@@ -1,212 +0,0 @@
-{
- "summary": "Update a project",
- "description": "Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-update",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/projects/#update-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- },
- "state": {
- "description": "State of the project. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "organization_permission": {
- "description": "The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/enterprise/2.16/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/enterprise/2.16/v3/projects/collaborators/#add-user-as-a-collaborator). \n \n**Note:** Updating a project's `organization_permission` requires `admin` access to the project. \n \nCan be one of: \n\\* `read` - Organization members can read, but not write to or administer this project. \n\\* `write` - Organization members can read and write, but not administer this project. \n\\* `admin` - Organization members can read, write and administer this project. \n\\* `none` - Organization members can only see this project if it is public.",
- "type": "string"
- },
- "private": {
- "description": "Sets the visibility of a project board. Setting `private` is only available for organization projects. **Note:** Updating a project's visibility requires `admin` access to the project. \n \nCan be one of: \n\\* `false` - Anyone can see the project. \n\\* `true` - Organization members with the appropriate `organization_permission` can see project boards in an organization account.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/pulls/check-if-merged.json b/openapi/ghe-2.16/operations/pulls/check-if-merged.json
deleted file mode 100644
index b80adea28b..0000000000
--- a/openapi/ghe-2.16/operations/pulls/check-if-merged.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Get if a pull request has been merged",
- "description": "",
- "operationId": "pulls-check-if-merged",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/#get-if-a-pull-request-has-been-merged"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/merge"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/create-comment-reply.json b/openapi/ghe-2.16/operations/pulls/create-comment-reply.json
deleted file mode 100644
index 19cde6b7e5..0000000000
--- a/openapi/ghe-2.16/operations/pulls/create-comment-reply.json
+++ /dev/null
@@ -1,248 +0,0 @@
-{
- "summary": "Create a comment reply",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.16/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.16/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-comment-reply",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- },
- "in_reply_to": {
- "description": "The comment ID to reply to. **Note**: This must be the ID of a _top-level comment_, not a reply to that comment. Replies to replies are not supported.",
- "type": "integer"
- }
- },
- "required": [
- "body",
- "in_reply_to"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments \\\n -d '{\"body\":\"body\",\"in_reply_to\":\"in_reply_to\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n body: 'body',\n in_reply_to: 'in_reply_to'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/create-comment.json b/openapi/ghe-2.16/operations/pulls/create-comment.json
deleted file mode 100644
index 42c8d0b79f..0000000000
--- a/openapi/ghe-2.16/operations/pulls/create-comment.json
+++ /dev/null
@@ -1,258 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.16/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.16/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- },
- "commit_id": {
- "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "type": "string"
- },
- "path": {
- "description": "The relative path to the file that necessitates a comment.",
- "type": "string"
- },
- "position": {
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "type": "integer"
- }
- },
- "required": [
- "body",
- "commit_id",
- "path",
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments \\\n -d '{\"body\":\"body\",\"commit_id\":\"commit_id\",\"path\":\"path\",\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n body: 'body',\n commit_id: 'commit_id',\n path: 'path',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/create-from-issue.json b/openapi/ghe-2.16/operations/pulls/create-from-issue.json
deleted file mode 100644
index 8cc6accfd8..0000000000
--- a/openapi/ghe-2.16/operations/pulls/create-from-issue.json
+++ /dev/null
@@ -1,1528 +0,0 @@
-{
- "summary": "Create a Pull Request from an Issue",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create-from-issue",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/#create-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "issue": {
- "description": "The issue number in this repository to turn into a Pull Request.",
- "type": "integer"
- },
- "head": {
- "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "type": "string"
- },
- "base": {
- "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- },
- "required": [
- "issue",
- "head",
- "base"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls \\\n -d '{\"issue\":\"issue\",\"head\":\"head\",\"base\":\"base\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue: 'issue',\n head: 'head',\n base: 'base'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/pulls/create-review-request.json b/openapi/ghe-2.16/operations/pulls/create-review-request.json
deleted file mode 100644
index d1912219dc..0000000000
--- a/openapi/ghe-2.16/operations/pulls/create-review-request.json
+++ /dev/null
@@ -1,1468 +0,0 @@
-{
- "summary": "Create a review request",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create-review-request",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/review_requests/#create-a-review-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reviewers": {
- "description": "An array of user `login`s that will be requested.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "team_reviewers": {
- "description": "An array of team `slug`s that will be requested.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/create-review.json b/openapi/ghe-2.16/operations/pulls/create-review.json
deleted file mode 100644
index cf6cc197cf..0000000000
--- a/openapi/ghe-2.16/operations/pulls/create-review.json
+++ /dev/null
@@ -1,244 +0,0 @@
-{
- "summary": "Create a pull request review",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.16/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.16/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/reviews/#create-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "commit_id": {
- "description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "type": "string"
- },
- "body": {
- "description": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "type": "string"
- },
- "event": {
- "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/enterprise/2.16/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready.",
- "type": "string",
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- },
- "comments": {
- "description": "Use the following table to specify the location, destination, and contents of the draft review comment.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The relative path to the file that necessitates a review comment.",
- "type": "string"
- },
- "position": {
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "type": "integer"
- },
- "body": {
- "description": "Text of the review comment.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "position",
- "body"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews \\\n -d '{\"comments[].path\":\"comments[].path\",\"comments[].position\":\"comments[].position\",\"comments[].body\":\"comments[].body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n 'comments[].path': 'comments[].path',\n 'comments[].position': 'comments[].position',\n 'comments[].body': 'comments[].body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/create.json b/openapi/ghe-2.16/operations/pulls/create.json
deleted file mode 100644
index 8ea66fdadc..0000000000
--- a/openapi/ghe-2.16/operations/pulls/create.json
+++ /dev/null
@@ -1,1532 +0,0 @@
-{
- "summary": "Create a pull request",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/#create-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the pull request.",
- "type": "string"
- },
- "head": {
- "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "type": "string"
- },
- "base": {
- "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the pull request.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- },
- "required": [
- "title",
- "head",
- "base"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls \\\n -d '{\"title\":\"title\",\"head\":\"head\",\"base\":\"base\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title',\n head: 'head',\n base: 'base'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/pulls/delete-comment.json b/openapi/ghe-2.16/operations/pulls/delete-comment.json
deleted file mode 100644
index 37f54f37fe..0000000000
--- a/openapi/ghe-2.16/operations/pulls/delete-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "pulls-delete-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/pulls/delete-pending-review.json b/openapi/ghe-2.16/operations/pulls/delete-pending-review.json
deleted file mode 100644
index fbcc3aae0b..0000000000
--- a/openapi/ghe-2.16/operations/pulls/delete-pending-review.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Delete a pending review",
- "description": "",
- "operationId": "pulls-delete-pending-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/reviews/#delete-a-pending-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/delete-review-request.json b/openapi/ghe-2.16/operations/pulls/delete-review-request.json
deleted file mode 100644
index 1695aba2ad..0000000000
--- a/openapi/ghe-2.16/operations/pulls/delete-review-request.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "summary": "Delete a review request",
- "description": "",
- "operationId": "pulls-delete-review-request",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/review_requests/#delete-a-review-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reviewers": {
- "description": "An array of user `login`s that will be removed.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "team_reviewers": {
- "description": "An array of team `slug`s that will be removed.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/dismiss-review.json b/openapi/ghe-2.16/operations/pulls/dismiss-review.json
deleted file mode 100644
index f25fb35f55..0000000000
--- a/openapi/ghe-2.16/operations/pulls/dismiss-review.json
+++ /dev/null
@@ -1,217 +0,0 @@
-{
- "summary": "Dismiss a pull request review",
- "description": "**Note:** To dismiss a pull request review on a [protected branch](https://developer.github.com/enterprise/2.16/v3/repos/branches/), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.",
- "operationId": "pulls-dismiss-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/reviews/#dismiss-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The message for the pull request review dismissal",
- "type": "string"
- }
- },
- "required": [
- "message"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/dismissals \\\n -d '{\"message\":\"message\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id',\n message: 'message'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/get-comment.json b/openapi/ghe-2.16/operations/pulls/get-comment.json
deleted file mode 100644
index a3b17afed0..0000000000
--- a/openapi/ghe-2.16/operations/pulls/get-comment.json
+++ /dev/null
@@ -1,215 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "pulls-get-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/pulls/get-comments-for-review.json b/openapi/ghe-2.16/operations/pulls/get-comments-for-review.json
deleted file mode 100644
index b6614e19f2..0000000000
--- a/openapi/ghe-2.16/operations/pulls/get-comments-for-review.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "Get comments for a single review",
- "description": "",
- "operationId": "pulls-get-comments-for-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/reviews/#get-comments-for-a-single-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/get-review.json b/openapi/ghe-2.16/operations/pulls/get-review.json
deleted file mode 100644
index e581a6bf56..0000000000
--- a/openapi/ghe-2.16/operations/pulls/get-review.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Get a single review",
- "description": "",
- "operationId": "pulls-get-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/reviews/#get-a-single-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/get.json b/openapi/ghe-2.16/operations/pulls/get.json
deleted file mode 100644
index 0e4284a36b..0000000000
--- a/openapi/ghe-2.16/operations/pulls/get.json
+++ /dev/null
@@ -1,1515 +0,0 @@
-{
- "summary": "Get a single pull request",
- "description": "Lists details of a pull request by providing its number.\n\nWhen you get, [create](https://developer.github.com/enterprise/2.16/v3/pulls/#create-a-pull-request), or [edit](https://developer.github.com/enterprise/2.16/v3/pulls/#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see \"[Checking mergeability of pull requests](https://developer.github.com/enterprise/2.16/v3/git/#checking-mergeability-of-pull-requests)\".\n\nThe value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit.\n\nThe value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request:\n\n* If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit.\n* If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch.\n* If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to.\n\nPass the appropriate [media type](https://developer.github.com/enterprise/2.16/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.",
- "operationId": "pulls-get",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/#get-a-single-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/list-comments-for-repo.json b/openapi/ghe-2.16/operations/pulls/list-comments-for-repo.json
deleted file mode 100644
index c98b953ee8..0000000000
--- a/openapi/ghe-2.16/operations/pulls/list-comments-for-repo.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "summary": "List comments in a repository",
- "description": "By default, review comments are ordered by ascending ID.",
- "operationId": "pulls-list-comments-for-repo",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/comments/#list-comments-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Can be either `created` or `updated` comments."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/pulls/list-comments.json b/openapi/ghe-2.16/operations/pulls/list-comments.json
deleted file mode 100644
index fc3360bdef..0000000000
--- a/openapi/ghe-2.16/operations/pulls/list-comments.json
+++ /dev/null
@@ -1,142 +0,0 @@
-{
- "summary": "List comments on a pull request",
- "description": "By default, review comments are ordered by ascending ID.",
- "operationId": "pulls-list-comments",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/comments/#list-comments-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Can be either `created` or `updated` comments."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/list-commits.json b/openapi/ghe-2.16/operations/pulls/list-commits.json
deleted file mode 100644
index f44fc8ec8b..0000000000
--- a/openapi/ghe-2.16/operations/pulls/list-commits.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List commits on a pull request",
- "description": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [Commit List API](https://developer.github.com/enterprise/2.16/v3/repos/commits/#list-commits-on-a-repository).",
- "operationId": "pulls-list-commits",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/#list-commits-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/list-files.json b/openapi/ghe-2.16/operations/pulls/list-files.json
deleted file mode 100644
index 5a777e5d58..0000000000
--- a/openapi/ghe-2.16/operations/pulls/list-files.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List pull requests files",
- "description": "**Note:** The response includes a maximum of 300 files.",
- "operationId": "pulls-list-files",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/#list-pull-requests-files"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/files"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/list-review-requests.json b/openapi/ghe-2.16/operations/pulls/list-review-requests.json
deleted file mode 100644
index a7949e6e51..0000000000
--- a/openapi/ghe-2.16/operations/pulls/list-review-requests.json
+++ /dev/null
@@ -1,212 +0,0 @@
-{
- "summary": "List review requests",
- "description": "",
- "operationId": "pulls-list-review-requests",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/review_requests/#list-review-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/list-reviews.json b/openapi/ghe-2.16/operations/pulls/list-reviews.json
deleted file mode 100644
index 1ff1d2faca..0000000000
--- a/openapi/ghe-2.16/operations/pulls/list-reviews.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List reviews on a pull request",
- "description": "The list of reviews returns in chronological order.",
- "operationId": "pulls-list-reviews",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/reviews/#list-reviews-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/list.json b/openapi/ghe-2.16/operations/pulls/list.json
deleted file mode 100644
index 47a3e6d903..0000000000
--- a/openapi/ghe-2.16/operations/pulls/list.json
+++ /dev/null
@@ -1,149 +0,0 @@
-{
- "summary": "List pull requests",
- "description": "",
- "operationId": "pulls-list",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/#list-pull-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Either `open`, `closed`, or `all` to filter by state."
- },
- {
- "name": "head",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`."
- },
- {
- "name": "base",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter pulls by base branch name. Example: `gh-pages`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "popularity",
- "long-running"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/pulls/merge.json b/openapi/ghe-2.16/operations/pulls/merge.json
deleted file mode 100644
index 15d0bb42ae..0000000000
--- a/openapi/ghe-2.16/operations/pulls/merge.json
+++ /dev/null
@@ -1,113 +0,0 @@
-{
- "summary": "Merge a pull request (Merge Button)",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-merge",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/#merge-a-pull-request-merge-button"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "commit_title": {
- "description": "Title for the automatic commit message.",
- "type": "string"
- },
- "commit_message": {
- "description": "Extra detail to append to automatic commit message.",
- "type": "string"
- },
- "sha": {
- "description": "SHA that pull request head must match to allow merge.",
- "type": "string"
- },
- "merge_method": {
- "description": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "type": "string",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/merge"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/submit-review.json b/openapi/ghe-2.16/operations/pulls/submit-review.json
deleted file mode 100644
index c61557f1a1..0000000000
--- a/openapi/ghe-2.16/operations/pulls/submit-review.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Submit a pull request review",
- "description": "",
- "operationId": "pulls-submit-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/reviews/#submit-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The body text of the pull request review",
- "type": "string"
- },
- "event": {
- "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "type": "string",
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- }
- },
- "required": [
- "event"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/events \\\n -d '{\"event\":\"event\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id',\n event: 'event'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/pulls/update-comment.json b/openapi/ghe-2.16/operations/pulls/update-comment.json
deleted file mode 100644
index 1ffdcaa81a..0000000000
--- a/openapi/ghe-2.16/operations/pulls/update-comment.json
+++ /dev/null
@@ -1,233 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "pulls-update-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/pulls/update.json b/openapi/ghe-2.16/operations/pulls/update.json
deleted file mode 100644
index 6a917e7e7b..0000000000
--- a/openapi/ghe-2.16/operations/pulls/update.json
+++ /dev/null
@@ -1,1550 +0,0 @@
-{
- "summary": "Update a pull request",
- "description": "",
- "operationId": "pulls-update",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/pulls/#update-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the pull request.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the pull request.",
- "type": "string"
- },
- "state": {
- "description": "State of this Pull Request. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "base": {
- "description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/rate_limit/get.json b/openapi/ghe-2.16/operations/rate_limit/get.json
deleted file mode 100644
index 66c67820f7..0000000000
--- a/openapi/ghe-2.16/operations/rate_limit/get.json
+++ /dev/null
@@ -1,113 +0,0 @@
-{
- "summary": "Get your current rate limit status",
- "description": "**Note:** Accessing this endpoint does not count against your REST API rate limit.\n\n**Understanding your rate limit status**\n\nThe Search API has a [custom rate limit](https://developer.github.com/enterprise/2.16/v3/search/#rate-limit), separate from the rate limit governing the rest of the REST API. The GraphQL API also has a [custom rate limit](https://developer.github.com/enterprise/2.16/v4/guides/resource-limitations/#rate-limit) that is separate from and calculated differently than rate limits in the REST API.\n\nFor these reasons, the Rate Limit API response categorizes your rate limit. Under `resources`, you'll see three objects:\n\n* The `core` object provides your rate limit status for all non-search-related resources in the REST API.\n* The `search` object provides your rate limit status for the [Search API](https://developer.github.com/enterprise/2.16/v3/search/).\n* The `graphql` object provides your rate limit status for the [GraphQL API](https://developer.github.com/enterprise/2.16/v4/).\n\nFor more information on the headers and values in the rate limit response, see \"[Rate limiting](https://developer.github.com/enterprise/2.16/v3/#rate-limiting).\"\n\nThe `rate` object (shown at the bottom of the response above) is deprecated.\n\nIf you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object.",
- "operationId": "rate_limit-get",
- "tags": [
- "rate_limit"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/rate_limit/#get-your-current-rate-limit-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "resources": {
- "type": "object",
- "properties": {
- "core": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- },
- "search": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- },
- "graphql": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- }
- }
- },
- "rate": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/rate_limit"
- },
- {
- "lang": "JS",
- "source": "octokit.rate_limit.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/create-for-commit-comment.json b/openapi/ghe-2.16/operations/reactions/create-for-commit-comment.json
deleted file mode 100644
index bd23efd517..0000000000
--- a/openapi/ghe-2.16/operations/reactions/create-for-commit-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a commit comment",
- "description": "Create a reaction to a [commit comment](https://developer.github.com/enterprise/2.16/v3/repos/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment.",
- "operationId": "reactions-create-for-commit-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#create-reaction-for-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types) to add to the commit comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/create-for-issue-comment.json b/openapi/ghe-2.16/operations/reactions/create-for-issue-comment.json
deleted file mode 100644
index 8711a185cb..0000000000
--- a/openapi/ghe-2.16/operations/reactions/create-for-issue-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for an issue comment",
- "description": "Create a reaction to an [issue comment](https://developer.github.com/enterprise/2.16/v3/issues/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment.",
- "operationId": "reactions-create-for-issue-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#create-reaction-for-an-issue-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types) to add to the issue comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/create-for-issue.json b/openapi/ghe-2.16/operations/reactions/create-for-issue.json
deleted file mode 100644
index 8119e64bbf..0000000000
--- a/openapi/ghe-2.16/operations/reactions/create-for-issue.json
+++ /dev/null
@@ -1,189 +0,0 @@
-{
- "summary": "Create reaction for an issue",
- "description": "Create a reaction to an [issue](https://developer.github.com/enterprise/2.16/v3/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue.",
- "operationId": "reactions-create-for-issue",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#create-reaction-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types) to add to the issue.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/reactions/create-for-pull-request-review-comment.json b/openapi/ghe-2.16/operations/reactions/create-for-pull-request-review-comment.json
deleted file mode 100644
index 68705ab868..0000000000
--- a/openapi/ghe-2.16/operations/reactions/create-for-pull-request-review-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a pull request review comment",
- "description": "Create a reaction to a [pull request review comment](https://developer.github.com/enterprise/2.16/v3/pulls/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment.",
- "operationId": "reactions-create-for-pull-request-review-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#create-reaction-for-a-pull-request-review-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types) to add to the pull request review comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/create-for-team-discussion-comment.json b/openapi/ghe-2.16/operations/reactions/create-for-team-discussion-comment.json
deleted file mode 100644
index c1704994e0..0000000000
--- a/openapi/ghe-2.16/operations/reactions/create-for-team-discussion-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a team discussion comment",
- "description": "Create a reaction to a [team discussion comment](https://developer.github.com/enterprise/2.16/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment.",
- "operationId": "reactions-create-for-team-discussion-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#create-reaction-for-a-team-discussion-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types) to add to the team discussion comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/create-for-team-discussion.json b/openapi/ghe-2.16/operations/reactions/create-for-team-discussion.json
deleted file mode 100644
index 3e6c02f6ff..0000000000
--- a/openapi/ghe-2.16/operations/reactions/create-for-team-discussion.json
+++ /dev/null
@@ -1,170 +0,0 @@
-{
- "summary": "Create reaction for a team discussion",
- "description": "Create a reaction to a [team discussion](https://developer.github.com/enterprise/2.16/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion.",
- "operationId": "reactions-create-for-team-discussion",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#create-reaction-for-a-team-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types) to add to the team discussion.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/delete.json b/openapi/ghe-2.16/operations/reactions/delete.json
deleted file mode 100644
index a79aafa5cc..0000000000
--- a/openapi/ghe-2.16/operations/reactions/delete.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a reaction",
- "description": "OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/enterprise/2.16/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/enterprise/2.16/v3/teams/discussion_comments/).",
- "operationId": "reactions-delete",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#delete-a-reaction"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "reaction_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "reaction_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/reactions/"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n reaction_id: 'reaction_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/list-for-commit-comment.json b/openapi/ghe-2.16/operations/reactions/list-for-commit-comment.json
deleted file mode 100644
index 9e37c2e556..0000000000
--- a/openapi/ghe-2.16/operations/reactions/list-for-commit-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a commit comment",
- "description": "List the reactions to a [commit comment](https://developer.github.com/enterprise/2.16/v3/repos/comments/).",
- "operationId": "reactions-list-for-commit-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#list-reactions-for-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/list-for-issue-comment.json b/openapi/ghe-2.16/operations/reactions/list-for-issue-comment.json
deleted file mode 100644
index b7c2e40368..0000000000
--- a/openapi/ghe-2.16/operations/reactions/list-for-issue-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for an issue comment",
- "description": "List the reactions to an [issue comment](https://developer.github.com/enterprise/2.16/v3/issues/comments/).",
- "operationId": "reactions-list-for-issue-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#list-reactions-for-an-issue-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/list-for-issue.json b/openapi/ghe-2.16/operations/reactions/list-for-issue.json
deleted file mode 100644
index 9f5074b0e2..0000000000
--- a/openapi/ghe-2.16/operations/reactions/list-for-issue.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "summary": "List reactions for an issue",
- "description": "List the reactions to an [issue](https://developer.github.com/enterprise/2.16/v3/issues/).",
- "operationId": "reactions-list-for-issue",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#list-reactions-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/reactions/list-for-pull-request-review-comment.json b/openapi/ghe-2.16/operations/reactions/list-for-pull-request-review-comment.json
deleted file mode 100644
index cba91f4f55..0000000000
--- a/openapi/ghe-2.16/operations/reactions/list-for-pull-request-review-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a pull request review comment",
- "description": "List the reactions to a [pull request review comment](https://developer.github.com/enterprise/2.16/v3/pulls/comments/).",
- "operationId": "reactions-list-for-pull-request-review-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#list-reactions-for-a-pull-request-review-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/list-for-team-discussion-comment.json b/openapi/ghe-2.16/operations/reactions/list-for-team-discussion-comment.json
deleted file mode 100644
index f166f1dd5a..0000000000
--- a/openapi/ghe-2.16/operations/reactions/list-for-team-discussion-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a team discussion comment",
- "description": "List the reactions to a [team discussion comment](https://developer.github.com/enterprise/2.16/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "reactions-list-for-team-discussion-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#list-reactions-for-a-team-discussion-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/reactions/list-for-team-discussion.json b/openapi/ghe-2.16/operations/reactions/list-for-team-discussion.json
deleted file mode 100644
index 448887be82..0000000000
--- a/openapi/ghe-2.16/operations/reactions/list-for-team-discussion.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List reactions for a team discussion",
- "description": "List the reactions to a [team discussion](https://developer.github.com/enterprise/2.16/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "reactions-list-for-team-discussion",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/reactions/#list-reactions-for-a-team-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.16/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/accept-invitation.json b/openapi/ghe-2.16/operations/repos/accept-invitation.json
deleted file mode 100644
index fc4cea5400..0000000000
--- a/openapi/ghe-2.16/operations/repos/accept-invitation.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Accept a repository invitation",
- "description": "",
- "operationId": "repos-accept-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/invitations/#accept-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations/"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/add-collaborator.json b/openapi/ghe-2.16/operations/repos/add-collaborator.json
deleted file mode 100644
index 4316be7d16..0000000000
--- a/openapi/ghe-2.16/operations/repos/add-collaborator.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "Add user as a collaborator",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "repos-add-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/collaborators/#add-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: \n\\* `pull` - can pull, but not push to or administer this repository. \n\\* `push` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push and administer this repository.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "push"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/add-deploy-key.json b/openapi/ghe-2.16/operations/repos/add-deploy-key.json
deleted file mode 100644
index a3e8b8b0a7..0000000000
--- a/openapi/ghe-2.16/operations/repos/add-deploy-key.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "summary": "Add a new deploy key",
- "description": "Here's how you can create a read-only deploy key:\n\n",
- "operationId": "repos-add-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/keys/#add-a-new-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "A name for the key.",
- "type": "string"
- },
- "key": {
- "description": "The contents of the key.",
- "type": "string"
- },
- "read_only": {
- "description": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/).\"",
- "type": "boolean"
- }
- },
- "required": [
- "key"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys \\\n -d '{\"key\":\"key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key: 'key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/add-protected-branch-admin-enforcement.json b/openapi/ghe-2.16/operations/repos/add-protected-branch-admin-enforcement.json
deleted file mode 100644
index cf47399597..0000000000
--- a/openapi/ghe-2.16/operations/repos/add-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Add admin enforcement of protected branch",
- "description": "Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-add-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#add-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/add-protected-branch-required-signatures.json b/openapi/ghe-2.16/operations/repos/add-protected-branch-required-signatures.json
deleted file mode 100644
index 0c93b7e203..0000000000
--- a/openapi/ghe-2.16/operations/repos/add-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "summary": "Add required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits.",
- "operationId": "repos-add-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#add-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/add-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.16/operations/repos/add-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 666a1fb119..0000000000
--- a/openapi/ghe-2.16/operations/repos/add-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-add-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/add-protected-branch-team-restrictions.json b/openapi/ghe-2.16/operations/repos/add-protected-branch-team-restrictions.json
deleted file mode 100644
index fecfc2db2b..0000000000
--- a/openapi/ghe-2.16/operations/repos/add-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add team restrictions of protected branch",
- "description": "Grants the specified teams push access for this branch. If you pass the `hellcat-preview` media type, you can also give push access to child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-add-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#add-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/add-protected-branch-user-restrictions.json b/openapi/ghe-2.16/operations/repos/add-protected-branch-user-restrictions.json
deleted file mode 100644
index e2d55a24ab..0000000000
--- a/openapi/ghe-2.16/operations/repos/add-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add user restrictions of protected branch",
- "description": "Grants the specified people push access for this branch.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-add-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#add-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/check-collaborator.json b/openapi/ghe-2.16/operations/repos/check-collaborator.json
deleted file mode 100644
index e07ccc28a8..0000000000
--- a/openapi/ghe-2.16/operations/repos/check-collaborator.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check if a user is a collaborator",
- "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
- "operationId": "repos-check-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/collaborators/#check-if-a-user-is-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/compare-commits.json b/openapi/ghe-2.16/operations/repos/compare-commits.json
deleted file mode 100644
index ba9e998659..0000000000
--- a/openapi/ghe-2.16/operations/repos/compare-commits.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Compare two commits",
- "description": "Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`.\n\nThe response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://developer.github.com/enterprise/2.16/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.\n\nThe response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.\n\n**Working with large comparisons**\n\nThe response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [Commit List API](https://developer.github.com/enterprise/2.16/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the range.\n\nFor comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long to generate. You can typically resolve this error by using a smaller commit range.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "repos-compare-commits",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/commits/#compare-two-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "base",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "base parameter"
- },
- {
- "name": "head",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "head parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/compare/:base...:head"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n base: 'base',\n head: 'head'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-commit-comment.json b/openapi/ghe-2.16/operations/repos/create-commit-comment.json
deleted file mode 100644
index d8198524f9..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-commit-comment.json
+++ /dev/null
@@ -1,211 +0,0 @@
-{
- "summary": "Create a commit comment",
- "description": "Create a comment for a commit using its `:commit_sha`.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "repos-create-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/comments/#create-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- },
- "path": {
- "description": "Relative path of the file to comment on.",
- "type": "string"
- },
- "position": {
- "description": "Line index in the diff to comment on.",
- "type": "integer"
- },
- "line": {
- "description": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
- "type": "integer"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-06-07",
- "note": "\"sha\" parameter renamed to \"commit_sha\"",
- "meta": {
- "before": "sha",
- "after": "commit_sha"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-deployment-status.json b/openapi/ghe-2.16/operations/repos/create-deployment-status.json
deleted file mode 100644
index 4402495e6f..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-deployment-status.json
+++ /dev/null
@@ -1,238 +0,0 @@
-{
- "summary": "Create a deployment status",
- "description": "Users with `push` access can create deployment statuses for a given deployment.\n\nGitHub Apps require `read & write` access to \"Deployments\" and `read-only` access to \"Repo contents\" (for private repos). OAuth Apps require the `repo_deployment` scope.",
- "operationId": "repos-create-deployment-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/deployments/#create-a-deployment-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state of the status. Can be one of `error`, `failure`, `inactive`, `in_progress`, `queued` `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/enterprise/2.16/v3/previews/#enhanced-deployments) custom media type. To use the `in_progress` and `queued` states, you must provide the [`application/vnd.github.flash-preview+json`](https://developer.github.com/enterprise/2.16/v3/previews/#deployment-statuses) custom media type.",
- "type": "string",
- "enum": [
- "error",
- "failure",
- "inactive",
- "in_progress",
- "queued",
- "pending",
- "success"
- ]
- },
- "target_url": {
- "description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "type": "string",
- "default": ""
- },
- "log_url": {
- "description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "type": "string",
- "default": ""
- },
- "description": {
- "description": "A short description of the status. The maximum description length is 140 characters.",
- "type": "string",
- "default": ""
- },
- "environment": {
- "description": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. **Note:** This parameter requires you to use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/enterprise/2.16/v3/previews/#deployment-statuses) custom media type.",
- "type": "string",
- "enum": [
- "production",
- "staging",
- "qa"
- ]
- },
- "environment_url": {
- "description": "Sets the URL for accessing your environment.",
- "type": "string",
- "default": ""
- },
- "auto_inactive": {
- "description": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` \n**Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/enterprise/2.16/v3/previews/#deployment-statuses) custom media type. **Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/enterprise/2.16/v3/previews/#deployment-statuses) custom media type.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "environment": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "deployment_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "environment_url": {
- "type": "string"
- },
- "log_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-deployment.json b/openapi/ghe-2.16/operations/repos/create-deployment.json
deleted file mode 100644
index 7d5fd7a745..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-deployment.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Create a deployment",
- "description": "Deployments offer a few configurable parameters with sane defaults.\n\nThe `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them before we merge a pull request.\n\nThe `environment` parameter allows deployments to be issued to different runtime environments. Teams often have multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter makes it easier to track which environments have requested deployments. The default environment is `production`.\n\nThe `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will return a failure response.\n\nBy default, [commit statuses](https://developer.github.com/enterprise/2.16/v3/repos/statuses) for every submitted context must be in a `success` state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do not require any contexts or create any commit statuses, the deployment will always succeed.\n\nThe `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text field that will be passed on when a deployment event is dispatched.\n\nThe `task` parameter is used by the deployment system to allow different execution paths. In the web world this might be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an application with debugging enabled.\n\nUsers with `repo` or `repo_deployment` scopes can create a deployment for a given ref:\n\nA simple example putting the user and room into the payload to notify back to chat networks.\n\nA more advanced example specifying required commit statuses and bypassing auto-merging.\n\nYou will see this response when GitHub automatically merges the base branch into the topic branch instead of creating a deployment. This auto-merge happens when:\n\n* Auto-merge option is enabled in the repository\n* Topic branch does not include the latest changes on the base branch, which is `master`in the response example\n* There are no merge conflicts\n\nIf there are no new commits in the base branch, a new request to create a deployment should give a successful response.\n\nThis error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts.\n\nThis error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`.",
- "operationId": "repos-create-deployment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/deployments/#create-a-deployment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ref": {
- "description": "The ref to deploy. This can be a branch, tag, or SHA.",
- "type": "string"
- },
- "task": {
- "description": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
- "type": "string",
- "default": "deploy"
- },
- "auto_merge": {
- "description": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.",
- "type": "boolean",
- "default": true
- },
- "required_contexts": {
- "description": "The [status](https://developer.github.com/enterprise/2.16/v3/repos/statuses/) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "payload": {
- "description": "JSON payload with extra information about the deployment.",
- "type": "string",
- "default": ""
- },
- "environment": {
- "description": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
- "type": "string",
- "default": "production"
- },
- "description": {
- "description": "Short description of the deployment.",
- "type": "string",
- "default": ""
- },
- "transient_environment": {
- "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future.",
- "type": "boolean",
- "default": false
- },
- "production_environment": {
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
- "type": "boolean"
- }
- },
- "required": [
- "ref"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments \\\n -d '{\"ref\":\"ref\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-for-authenticated-user.json b/openapi/ghe-2.16/operations/repos/create-for-authenticated-user.json
deleted file mode 100644
index 2c1ccd0fe0..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-for-authenticated-user.json
+++ /dev/null
@@ -1,428 +0,0 @@
-{
- "summary": "Create a new repository for the authenticated user",
- "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/enterprise/2.16/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/enterprise/2.16/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
- "operationId": "repos-create-for-authenticated-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#create"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "team_id": {
- "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "type": "integer"
- },
- "auto_init": {
- "description": "Pass `true` to create an initial commit with empty README.",
- "type": "boolean",
- "default": false
- },
- "gitignore_template": {
- "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "type": "string"
- },
- "license_template": {
- "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repos \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-fork.json b/openapi/ghe-2.16/operations/repos/create-fork.json
deleted file mode 100644
index 50acd2402f..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-fork.json
+++ /dev/null
@@ -1,383 +0,0 @@
-{
- "summary": "Create a fork",
- "description": "Create a fork for the authenticated user.\n\n**Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Enterprise Support](https://enterprise.github.com/support).",
- "operationId": "repos-create-fork",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/forks/#create-a-fork"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "organization": {
- "description": "Optional parameter to specify the organization name if forking into an organization.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/forks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-hook.json b/openapi/ghe-2.16/operations/repos/create-hook.json
deleted file mode 100644
index 59354e7e3f..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-hook.json
+++ /dev/null
@@ -1,190 +0,0 @@
-{
- "summary": "Create a hook",
- "description": "Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can share the same `config` as long as those webhooks do not have any `events` that overlap.\n\n**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.16/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nHere's how you can create a hook that posts payloads in JSON format:",
- "operationId": "repos-create-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/hooks/#create-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Use `web` to create a webhook. To create a GitHub Service, use the name of a valid service. You can use [/hooks](https://api.github.com/hooks) for the list of valid service names. **Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install GitHub Services. Please see the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.16/v3/guides/replacing-github-services) for details.",
- "type": "string",
- "default": "web"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.16/v3/repos/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.16/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks \\\n -d '{\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-in-org.json b/openapi/ghe-2.16/operations/repos/create-in-org.json
deleted file mode 100644
index cc8d76edce..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-in-org.json
+++ /dev/null
@@ -1,437 +0,0 @@
-{
- "summary": "Create a new repository in this organization",
- "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/enterprise/2.16/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/enterprise/2.16/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
- "operationId": "repos-create-in-org",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#create"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "team_id": {
- "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "type": "integer"
- },
- "auto_init": {
- "description": "Pass `true` to create an initial commit with empty README.",
- "type": "boolean",
- "default": false
- },
- "gitignore_template": {
- "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "type": "string"
- },
- "license_template": {
- "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//repos \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-or-update-file.json b/openapi/ghe-2.16/operations/repos/create-or-update-file.json
deleted file mode 100644
index e00cd39ce9..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-or-update-file.json
+++ /dev/null
@@ -1,299 +0,0 @@
-{
- "summary": "Create or update a file",
- "description": "Creates a new file or updates an existing file in a repository.",
- "operationId": "repos-create-or-update-file",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/contents/#create-or-update-a-file"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message.",
- "type": "string"
- },
- "content": {
- "description": "The new file content, using Base64 encoding.",
- "type": "string"
- },
- "sha": {
- "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "type": "string"
- },
- "branch": {
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
- "type": "string"
- },
- "committer": {
- "description": "The person that committed the file. Default: the authenticated user.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- },
- "email": {
- "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "email"
- ]
- },
- "author": {
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- },
- "email": {
- "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "email"
- ]
- }
- },
- "required": [
- "message",
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path \\\n -d '{\"message\":\"message\",\"content\":\"content\",\"committer.name\":\"committer.name\",\"committer.email\":\"committer.email\",\"author.name\":\"author.name\",\"author.email\":\"author.email\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path',\n message: 'message',\n content: 'content',\n 'committer.name': 'committer.name',\n 'committer.email': 'committer.email',\n 'author.name': 'author.name',\n 'author.email': 'author.email'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-06-07",
- "note": "\"Create a file\" replaced by \"Create or update a file\"",
- "meta": {
- "before": {
- "idName": "create-file"
- },
- "after": {
- "idName": "create-or-update-file"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-release.json b/openapi/ghe-2.16/operations/repos/create-release.json
deleted file mode 100644
index e7702f6850..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-release.json
+++ /dev/null
@@ -1,221 +0,0 @@
-{
- "summary": "Create a release",
- "description": "Users with push access to the repository can create a release.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "repos-create-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#create-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string"
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "type": "string"
- },
- "name": {
- "description": "The name of the release.",
- "type": "string"
- },
- "body": {
- "description": "Text describing the contents of the tag.",
- "type": "string"
- },
- "draft": {
- "description": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "type": "boolean",
- "default": false
- },
- "prerelease": {
- "description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "tag_name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {}
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases \\\n -d '{\"tag_name\":\"tag_name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag_name: 'tag_name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/create-status.json b/openapi/ghe-2.16/operations/repos/create-status.json
deleted file mode 100644
index 7fd915a848..0000000000
--- a/openapi/ghe-2.16/operations/repos/create-status.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "summary": "Create a status",
- "description": "Users with push access in a repository can create commit statuses for a given SHA.\n\nNote: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error.",
- "operationId": "repos-create-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/statuses/#create-a-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "sha parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state of the status. Can be one of `error`, `failure`, `pending`, or `success`.",
- "type": "string",
- "enum": [
- "error",
- "failure",
- "pending",
- "success"
- ]
- },
- "target_url": {
- "description": "The target URL to associate with this status. This URL will be linked from the GitHub Enterprise Server UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
- "type": "string"
- },
- "description": {
- "description": "A short description of the status.",
- "type": "string"
- },
- "context": {
- "description": "A string label to differentiate this status from the status of other systems.",
- "type": "string",
- "default": "default"
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "context": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/statuses/:sha \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n sha: 'sha',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/decline-invitation.json b/openapi/ghe-2.16/operations/repos/decline-invitation.json
deleted file mode 100644
index 7d61f8f356..0000000000
--- a/openapi/ghe-2.16/operations/repos/decline-invitation.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Decline a repository invitation",
- "description": "",
- "operationId": "repos-decline-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/invitations/#decline-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations/"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/delete-commit-comment.json b/openapi/ghe-2.16/operations/repos/delete-commit-comment.json
deleted file mode 100644
index c4c2aaf9ea..0000000000
--- a/openapi/ghe-2.16/operations/repos/delete-commit-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a commit comment",
- "description": "",
- "operationId": "repos-delete-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/comments/#delete-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/delete-download.json b/openapi/ghe-2.16/operations/repos/delete-download.json
deleted file mode 100644
index f38694b796..0000000000
--- a/openapi/ghe-2.16/operations/repos/delete-download.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a download",
- "description": "",
- "operationId": "repos-delete-download",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/downloads/#delete-a-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "download_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "download_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads/:download_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 'download_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/delete-file.json b/openapi/ghe-2.16/operations/repos/delete-file.json
deleted file mode 100644
index 47223765ab..0000000000
--- a/openapi/ghe-2.16/operations/repos/delete-file.json
+++ /dev/null
@@ -1,230 +0,0 @@
-{
- "summary": "Delete a file",
- "description": "Deletes a file in a repository.\n\nYou can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.",
- "operationId": "repos-delete-file",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/contents/#delete-a-file"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message.",
- "type": "string"
- },
- "sha": {
- "description": "The blob SHA of the file being replaced.",
- "type": "string"
- },
- "branch": {
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
- "type": "string"
- },
- "committer": {
- "description": "object containing information about the committer.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- }
- }
- },
- "author": {
- "description": "object containing information about the author.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- }
- }
- }
- },
- "required": [
- "message",
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path \\\n -d '{\"message\":\"message\",\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path',\n message: 'message',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/delete-hook.json b/openapi/ghe-2.16/operations/repos/delete-hook.json
deleted file mode 100644
index 5d4d9c828c..0000000000
--- a/openapi/ghe-2.16/operations/repos/delete-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a hook",
- "description": "",
- "operationId": "repos-delete-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/hooks/#delete-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/delete-invitation.json b/openapi/ghe-2.16/operations/repos/delete-invitation.json
deleted file mode 100644
index 67ea5daa5d..0000000000
--- a/openapi/ghe-2.16/operations/repos/delete-invitation.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a repository invitation",
- "description": "",
- "operationId": "repos-delete-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/invitations/#delete-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations/:invitation_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/delete-release-asset.json b/openapi/ghe-2.16/operations/repos/delete-release-asset.json
deleted file mode 100644
index bf8ee3fdb6..0000000000
--- a/openapi/ghe-2.16/operations/repos/delete-release-asset.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a release asset",
- "description": "",
- "operationId": "repos-delete-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#delete-a-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/delete-release.json b/openapi/ghe-2.16/operations/repos/delete-release.json
deleted file mode 100644
index fef2e245bc..0000000000
--- a/openapi/ghe-2.16/operations/repos/delete-release.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a release",
- "description": "Users with push access to the repository can delete a release.",
- "operationId": "repos-delete-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#delete-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/delete.json b/openapi/ghe-2.16/operations/repos/delete.json
deleted file mode 100644
index 89c3c9d4ef..0000000000
--- a/openapi/ghe-2.16/operations/repos/delete.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a repository",
- "description": "Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.\n\nIf an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:\n\nIf a site admin has configured the enterprise appliance to prevent users from deleting organization-owned repositories, a user will get this response:",
- "operationId": "repos-delete",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#delete-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-archive-link.json b/openapi/ghe-2.16/operations/repos/get-archive-link.json
deleted file mode 100644
index 97b16127c1..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-archive-link.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Get archive link",
- "description": "Gets a redirect URL to download an archive for a repository. The `:archive_format` can be either `tarball` or `zipball`. The `:ref` must be a valid Git reference. If you omit `:ref`, the repository’s default branch (usually `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request.\n\n_Note_: For private repositories, these links are temporary and expire after five minutes.\n\nTo follow redirects with curl, use the `-L` switch:\n\n",
- "operationId": "repos-get-archive-link",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/contents/#get-archive-link"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "archive_format",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "archive_format parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "302": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/:archive_format/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n archive_format: 'archive_format',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-branch-protection.json b/openapi/ghe-2.16/operations/repos/get-branch-protection.json
deleted file mode 100644
index 81144687d1..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-branch-protection.json
+++ /dev/null
@@ -1,364 +0,0 @@
-{
- "summary": "Get branch protection",
- "description": "",
- "operationId": "repos-get-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#get-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- },
- "enforce_admins": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "required_pull_request_reviews": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- },
- "restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-branch.json b/openapi/ghe-2.16/operations/repos/get-branch.json
deleted file mode 100644
index 51df9f493f..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-branch.json
+++ /dev/null
@@ -1,260 +0,0 @@
-{
- "summary": "Get branch",
- "description": "",
- "operationId": "repos-get-branch",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#get-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- },
- "author": {
- "type": "object",
- "properties": {
- "gravatar_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "login": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "sha",
- "url"
- ]
- }
- },
- "url": {
- "type": "string"
- },
- "committer": {
- "type": "object",
- "properties": {
- "gravatar_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "login": {
- "type": "string"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "string"
- },
- "self": {
- "type": "string"
- }
- }
- },
- "protected": {
- "type": "boolean"
- },
- "protection": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "enforcement_level": {
- "type": "string"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "protection_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-code-frequency-stats.json b/openapi/ghe-2.16/operations/repos/get-code-frequency-stats.json
deleted file mode 100644
index 45aeed4d68..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-code-frequency-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the number of additions and deletions per week",
- "description": "Returns a weekly aggregate of the number of additions and deletions pushed to a repository.\n\n",
- "operationId": "repos-get-code-frequency-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/code_frequency"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-collaborator-permission-level.json b/openapi/ghe-2.16/operations/repos/get-collaborator-permission-level.json
deleted file mode 100644
index 68d7299519..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-collaborator-permission-level.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Review a user's permission level",
- "description": "Possible values for the `permission` key: `admin`, `write`, `read`, `none`.",
- "operationId": "repos-get-collaborator-permission-level",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/collaborators/#review-a-users-permission-level"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username/permission"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-combined-status-for-ref.json b/openapi/ghe-2.16/operations/repos/get-combined-status-for-ref.json
deleted file mode 100644
index 4e4b898b23..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-combined-status-for-ref.json
+++ /dev/null
@@ -1,346 +0,0 @@
-{
- "summary": "Get the combined status for a specific ref",
- "description": "Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.\n\nThe most recent status for each context is returned, up to 100. This field [paginates](https://developer.github.com/enterprise/2.16/v3/#pagination) if there are over 100 contexts.\n\nAdditionally, a combined `state` is returned. The `state` is one of:\n\n* **failure** if any of the contexts report as `error` or `failure`\n* **pending** if there are no statuses or a context is `pending`\n* **success** if the latest status for all contexts is `success`",
- "operationId": "repos-get-combined-status-for-ref",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "state": {
- "type": "string"
- },
- "statuses": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "context": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "url",
- "avatar_url",
- "id",
- "node_id",
- "state",
- "description",
- "target_url",
- "context",
- "created_at",
- "updated_at"
- ]
- }
- },
- "sha": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "commit_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/status"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-commit-activity-stats.json b/openapi/ghe-2.16/operations/repos/get-commit-activity-stats.json
deleted file mode 100644
index 05c73084f2..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-commit-activity-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the last year of commit activity data",
- "description": "Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`.\n\n",
- "operationId": "repos-get-commit-activity-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/statistics/#get-the-last-year-of-commit-activity-data"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/commit_activity"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-commit-comment.json b/openapi/ghe-2.16/operations/repos/get-commit-comment.json
deleted file mode 100644
index e73c36b799..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-commit-comment.json
+++ /dev/null
@@ -1,171 +0,0 @@
-{
- "summary": "Get a single commit comment",
- "description": "",
- "operationId": "repos-get-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/comments/#get-a-single-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-commit.json b/openapi/ghe-2.16/operations/repos/get-commit.json
deleted file mode 100644
index 3b7b12e7f5..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-commit.json
+++ /dev/null
@@ -1,361 +0,0 @@
-{
- "summary": "Get a single commit",
- "description": "Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.\n\nYou can pass the appropriate [media type](https://developer.github.com/enterprise/2.16/v3/media/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.\n\nTo return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://developer.github.com/enterprise/2.16/v3/media/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |\n\n",
- "operationId": "repos-get-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/commits/#get-a-single-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "comment_count": {
- "type": "number"
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "stats": {
- "type": "object",
- "properties": {
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "files": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changes": {
- "type": "number"
- },
- "status": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "blob_url": {
- "type": "string"
- },
- "patch": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"sha\" parameter renamed to \"ref\"",
- "meta": {
- "before": "sha",
- "after": "commit_sha"
- }
- },
- {
- "type": "parameter",
- "date": "2019-06-21",
- "note": "\"commit_sha\" parameter renamed to \"ref\"",
- "meta": {
- "before": "commit_sha",
- "after": "ref"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-contents.json b/openapi/ghe-2.16/operations/repos/get-contents.json
deleted file mode 100644
index 740598c849..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-contents.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Get contents",
- "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit `:path`, you will receive the contents of all files in the repository.\n\nFiles and symlinks support [a custom media type](https://developer.github.com/enterprise/2.16/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML (when supported). All content types support [a custom media type](https://developer.github.com/enterprise/2.16/v3/repos/contents/#custom-media-types) to ensure the content is returned in a consistent object format.\n\n**Note**:\n\n* To get a repository's contents recursively, you can [recursively get the tree](https://developer.github.com/enterprise/2.16/v3/git/trees/).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees API](https://developer.github.com/enterprise/2.16/v3/git/trees/#get-a-tree).\n* This API supports files up to 1 megabyte in size.\n\nThe response will be an array of objects, one object for each item in the directory.\n\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value _should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as \"submodule\".\n\nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](https://developer.github.com/enterprise/2.16/v3/repos/contents/#response-if-content-is-a-file)).\n\nOtherwise, the API responds with an object describing the symlink itself:\n\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the github.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
- "operationId": "repos-get-contents",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/contents/#get-contents"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-contributors-stats.json b/openapi/ghe-2.16/operations/repos/get-contributors-stats.json
deleted file mode 100644
index e37db8fa61..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-contributors-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get contributors list with additions, deletions, and commit counts",
- "description": "* `total` - The Total number of commits authored by the contributor.\n\nWeekly Hash (`weeks` array):\n\n* `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).\n* `a` - Number of additions\n* `d` - Number of deletions\n* `c` - Number of commits\n\n",
- "operationId": "repos-get-contributors-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/contributors"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-deploy-key.json b/openapi/ghe-2.16/operations/repos/get-deploy-key.json
deleted file mode 100644
index 4f0102af10..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-deploy-key.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "summary": "Get a deploy key",
- "description": "",
- "operationId": "repos-get-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/keys/#get-a-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys/:key_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-deployment-status.json b/openapi/ghe-2.16/operations/repos/get-deployment-status.json
deleted file mode 100644
index 3a8995ec9f..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-deployment-status.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Get a single deployment status",
- "description": "Users with pull access can view a deployment status for a deployment:",
- "operationId": "repos-get-deployment-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/deployments/#get-a-single-deployment-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- },
- {
- "name": "status_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "status_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "environment": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "deployment_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "environment_url": {
- "type": "string"
- },
- "log_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses/:status_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id',\n status_id: 'status_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-deployment.json b/openapi/ghe-2.16/operations/repos/get-deployment.json
deleted file mode 100644
index 7ed473a787..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-deployment.json
+++ /dev/null
@@ -1,191 +0,0 @@
-{
- "summary": "Get a single deployment",
- "description": "",
- "operationId": "repos-get-deployment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/deployments/#get-a-single-deployment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "task": {
- "type": "string"
- },
- "payload": {
- "type": "object",
- "properties": {
- "deploy": {
- "type": "string"
- }
- }
- },
- "original_environment": {
- "type": "string"
- },
- "environment": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "transient_environment": {
- "type": "boolean"
- },
- "production_environment": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-download.json b/openapi/ghe-2.16/operations/repos/get-download.json
deleted file mode 100644
index 4eba714c40..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-download.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "Get a single download",
- "description": "",
- "operationId": "repos-get-download",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/downloads/#get-a-single-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "download_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "download_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "content_type": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads/:download_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 'download_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-hook.json b/openapi/ghe-2.16/operations/repos/get-hook.json
deleted file mode 100644
index 6f3bbd0912..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-hook.json
+++ /dev/null
@@ -1,140 +0,0 @@
-{
- "summary": "Get single hook",
- "description": "",
- "operationId": "repos-get-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/hooks/#get-single-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-latest-pages-build.json b/openapi/ghe-2.16/operations/repos/get-latest-pages-build.json
deleted file mode 100644
index 96640ed3ce..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-latest-pages-build.json
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "summary": "Get latest Pages build",
- "description": "",
- "operationId": "repos-get-latest-pages-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/pages/#get-latest-pages-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "error": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- }
- }
- },
- "pusher": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "commit": {
- "type": "string"
- },
- "duration": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-latest-release.json b/openapi/ghe-2.16/operations/repos/get-latest-release.json
deleted file mode 100644
index 1ade109f6a..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-latest-release.json
+++ /dev/null
@@ -1,280 +0,0 @@
-{
- "summary": "Get the latest release",
- "description": "View the latest published full release for the repository.\n\nThe latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published.",
- "operationId": "repos-get-latest-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#get-the-latest-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-pages-build.json b/openapi/ghe-2.16/operations/repos/get-pages-build.json
deleted file mode 100644
index 2afd556adc..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-pages-build.json
+++ /dev/null
@@ -1,164 +0,0 @@
-{
- "summary": "Get a specific Pages build",
- "description": "",
- "operationId": "repos-get-pages-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/pages/#get-a-specific-pages-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "build_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "build_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "error": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- }
- }
- },
- "pusher": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "commit": {
- "type": "string"
- },
- "duration": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds/:build_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n build_id: 'build_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-pages.json b/openapi/ghe-2.16/operations/repos/get-pages.json
deleted file mode 100644
index c806c743c5..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-pages.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "Get information about a Pages site",
- "description": "",
- "operationId": "repos-get-pages",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/pages/#get-information-about-a-pages-site"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "cname": {
- "type": "string"
- },
- "custom_404": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "source": {
- "type": "object",
- "properties": {
- "branch": {
- "type": "string"
- },
- "directory": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-participation-stats.json b/openapi/ghe-2.16/operations/repos/get-participation-stats.json
deleted file mode 100644
index 5c344d817e..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-participation-stats.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get the weekly commit count for the repository owner and everyone else",
- "description": "Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`.\n\nThe array order is oldest week (index 0) to most recent week.\n\n",
- "operationId": "repos-get-participation-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "all": {
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- "owner": {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/participation"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-protected-branch-admin-enforcement.json b/openapi/ghe-2.16/operations/repos/get-protected-branch-admin-enforcement.json
deleted file mode 100644
index 4a9db1ecdb..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get admin enforcement of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#get-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.16/operations/repos/get-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index 49e6035017..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get pull request review enforcement of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-protected-branch-required-signatures.json b/openapi/ghe-2.16/operations/repos/get-protected-branch-required-signatures.json
deleted file mode 100644
index bf3b8daf59..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "summary": "Get required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help.\n\n**Note**: You must enable branch protection to require signed commits.",
- "operationId": "repos-get-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#get-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-protected-branch-required-status-checks.json b/openapi/ghe-2.16/operations/repos/get-protected-branch-required-status-checks.json
deleted file mode 100644
index db38080121..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Get required status checks of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#get-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-protected-branch-restrictions.json b/openapi/ghe-2.16/operations/repos/get-protected-branch-restrictions.json
deleted file mode 100644
index 42ca9b8f84..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-protected-branch-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get restrictions of protected branch",
- "description": "**Note**: Teams and users `restrictions` are only available for organization-owned repositories.",
- "operationId": "repos-get-protected-branch-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#get-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-punch-card-stats.json b/openapi/ghe-2.16/operations/repos/get-punch-card-stats.json
deleted file mode 100644
index e943c20141..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-punch-card-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the number of commits per hour in each day",
- "description": "Each array contains the day number, hour number, and number of commits:\n\n* `0-6`: Sunday - Saturday\n* `0-23`: Hour of day\n* Number of commits\n\nFor example, `[2, 14, 25]` indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.",
- "operationId": "repos-get-punch-card-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/punch_card"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-readme.json b/openapi/ghe-2.16/operations/repos/get-readme.json
deleted file mode 100644
index 7388943711..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-readme.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "summary": "Get the README",
- "description": "Gets the preferred README for a repository.\n\nREADMEs support [custom media types](https://developer.github.com/enterprise/2.16/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML.",
- "operationId": "repos-get-readme",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/contents/#get-the-readme"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": "string"
- },
- "self": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/readme"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-release-asset.json b/openapi/ghe-2.16/operations/repos/get-release-asset.json
deleted file mode 100644
index da63975f18..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-release-asset.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "summary": "Get a single release asset",
- "description": "To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://developer.github.com/enterprise/2.16/v3/media/#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.",
- "operationId": "repos-get-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#get-a-single-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-release-by-tag.json b/openapi/ghe-2.16/operations/repos/get-release-by-tag.json
deleted file mode 100644
index 41135b58fd..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-release-by-tag.json
+++ /dev/null
@@ -1,289 +0,0 @@
-{
- "summary": "Get a release by tag name",
- "description": "Get a published release with the specified tag.",
- "operationId": "repos-get-release-by-tag",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#get-a-release-by-tag-name"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tag",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tag parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/tags/:tag"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag: 'tag'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get-release.json b/openapi/ghe-2.16/operations/repos/get-release.json
deleted file mode 100644
index db2805a4f3..0000000000
--- a/openapi/ghe-2.16/operations/repos/get-release.json
+++ /dev/null
@@ -1,289 +0,0 @@
-{
- "summary": "Get a single release",
- "description": "**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://developer.github.com/enterprise/2.16/v3/#hypermedia).",
- "operationId": "repos-get-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#get-a-single-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/get.json b/openapi/ghe-2.16/operations/repos/get.json
deleted file mode 100644
index db1cc5706f..0000000000
--- a/openapi/ghe-2.16/operations/repos/get.json
+++ /dev/null
@@ -1,1050 +0,0 @@
-{
- "summary": "Get",
- "description": "The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.",
- "operationId": "repos-get",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#get"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- },
- "license": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parent": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- }
- }
- },
- "source": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-assets-for-release.json b/openapi/ghe-2.16/operations/repos/list-assets-for-release.json
deleted file mode 100644
index 38e58b2490..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-assets-for-release.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List assets for a release",
- "description": "",
- "operationId": "repos-list-assets-for-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#list-assets-for-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id/assets"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-branches.json b/openapi/ghe-2.16/operations/repos/list-branches.json
deleted file mode 100644
index 04633b91a2..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-branches.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List branches",
- "description": "",
- "operationId": "repos-list-branches",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#list-branches"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "protected",
- "in": "query",
- "schema": {
- "type": "boolean"
- },
- "required": false,
- "description": "Setting to `true` returns only protected branches, and each branch in the response includes the `protected` and `protection` keys. Omitting this parameter returns all branches, and protected branches do not contain the `protected` and `protection` keys."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-collaborators.json b/openapi/ghe-2.16/operations/repos/list-collaborators.json
deleted file mode 100644
index aeb0006f6d..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-collaborators.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List collaborators",
- "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
- "operationId": "repos-list-collaborators",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/collaborators/#list-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "outside",
- "direct",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter collaborators returned by their affiliation. Can be one of: \n\\* `outside`: All outside collaborators of an organization-owned repository. \n\\* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-comments-for-commit.json b/openapi/ghe-2.16/operations/repos/list-comments-for-commit.json
deleted file mode 100644
index 55b2a2c2a8..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-comments-for-commit.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List comments for a single commit",
- "description": "Use the `:commit_sha` to specify the commit that will have its comments listed.",
- "operationId": "repos-list-comments-for-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/comments/#list-comments-for-a-single-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-06-07",
- "note": "\"ref\" parameter renamed to \"commit_sha\"",
- "meta": {
- "before": "ref",
- "after": "commit_sha"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-commit-comments.json b/openapi/ghe-2.16/operations/repos/list-commit-comments.json
deleted file mode 100644
index e73f013663..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-commit-comments.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List commit comments for a repository",
- "description": "Commit Comments use [these custom media types](https://developer.github.com/enterprise/2.16/v3/repos/comments/#custom-media-types). You can read more about the use of media types in the API [here](https://developer.github.com/enterprise/2.16/v3/media/).\n\nComments are ordered by ascending ID.",
- "operationId": "repos-list-commit-comments",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/comments/#list-commit-comments-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-commits.json b/openapi/ghe-2.16/operations/repos/list-commits.json
deleted file mode 100644
index 3bc430fbbd..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-commits.json
+++ /dev/null
@@ -1,132 +0,0 @@
-{
- "summary": "List commits on a repository",
- "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "repos-list-commits",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/commits/#list-commits-on-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`)."
- },
- {
- "name": "path",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits containing this file path will be returned."
- },
- {
- "name": "author",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "GitHub login or email address by which to filter by commit author."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits after this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "until",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-contributors.json b/openapi/ghe-2.16/operations/repos/list-contributors.json
deleted file mode 100644
index f48dfb74c1..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-contributors.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "List contributors",
- "description": "Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance.\n\nGitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information.",
- "operationId": "repos-list-contributors",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#list-contributors"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "anon",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Set to `1` or `true` to include anonymous contributors in results."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contributors"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-deploy-keys.json b/openapi/ghe-2.16/operations/repos/list-deploy-keys.json
deleted file mode 100644
index df0e29b47b..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-deploy-keys.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List deploy keys",
- "description": "",
- "operationId": "repos-list-deploy-keys",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/keys/#list-deploy-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-deployment-statuses.json b/openapi/ghe-2.16/operations/repos/list-deployment-statuses.json
deleted file mode 100644
index bdfb84a1f2..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-deployment-statuses.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List deployment statuses",
- "description": "Users with pull access can view deployment statuses for a deployment:",
- "operationId": "repos-list-deployment-statuses",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/deployments/#list-deployment-statuses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-deployments.json b/openapi/ghe-2.16/operations/repos/list-deployments.json
deleted file mode 100644
index d47b714418..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-deployments.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "summary": "List deployments",
- "description": "Simple filtering of deployments is available via query parameters:",
- "operationId": "repos-list-deployments",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/deployments/#list-deployments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The SHA recorded at creation time."
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the ref. This can be a branch, tag, or SHA."
- },
- {
- "name": "task",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`)."
- },
- {
- "name": "environment",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the environment that was deployed to (e.g., `staging` or `production`)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-downloads.json b/openapi/ghe-2.16/operations/repos/list-downloads.json
deleted file mode 100644
index 81f035bc89..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-downloads.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List downloads for a repository",
- "description": "",
- "operationId": "repos-list-downloads",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/downloads/#list-downloads-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-for-org.json b/openapi/ghe-2.16/operations/repos/list-for-org.json
deleted file mode 100644
index 96de921629..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-for-org.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List organization repositories",
- "description": "List repositories for the specified org.",
- "operationId": "repos-list-for-org",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#list-organization-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "public",
- "private",
- "forks",
- "sources",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-for-user.json b/openapi/ghe-2.16/operations/repos/list-for-user.json
deleted file mode 100644
index 473855da08..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-for-user.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "summary": "List user repositories",
- "description": "List public repositories for the specified user.",
- "operationId": "repos-list-for-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#list-user-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "member"
- ],
- "default": "owner"
- },
- "required": false,
- "description": "Can be one of `all`, `owner`, `member`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- },
- "required": false,
- "description": "Can be one of `created`, `updated`, `pushed`, `full_name`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-forks.json b/openapi/ghe-2.16/operations/repos/list-forks.json
deleted file mode 100644
index 162cda21f1..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-forks.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List forks",
- "description": "",
- "operationId": "repos-list-forks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/forks/#list-forks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "newest",
- "oldest",
- "stargazers"
- ],
- "default": "newest"
- },
- "required": false,
- "description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/forks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-hooks.json b/openapi/ghe-2.16/operations/repos/list-hooks.json
deleted file mode 100644
index 90bbd2c028..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-hooks.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List hooks",
- "description": "",
- "operationId": "repos-list-hooks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/hooks/#list-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-invitations-for-authenticated-user.json b/openapi/ghe-2.16/operations/repos/list-invitations-for-authenticated-user.json
deleted file mode 100644
index 218c45dcaf..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-invitations-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List a user's repository invitations",
- "description": "When authenticating as a user, this endpoint will list all currently open repository invitations for that user.\n\n",
- "operationId": "repos-list-invitations-for-authenticated-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/invitations/#list-a-users-repository-invitations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-invitations.json b/openapi/ghe-2.16/operations/repos/list-invitations.json
deleted file mode 100644
index 2b2528592a..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-invitations.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List invitations for a repository",
- "description": "When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations.\n\n",
- "operationId": "repos-list-invitations",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/invitations/#list-invitations-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-languages.json b/openapi/ghe-2.16/operations/repos/list-languages.json
deleted file mode 100644
index 24e11f357a..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-languages.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "List languages",
- "description": "Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language.",
- "operationId": "repos-list-languages",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#list-languages"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "C": {
- "type": "number"
- },
- "Python": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/languages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-pages-builds.json b/openapi/ghe-2.16/operations/repos/list-pages-builds.json
deleted file mode 100644
index 290d74e23a..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-pages-builds.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List Pages builds",
- "description": "",
- "operationId": "repos-list-pages-builds",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/pages/#list-pages-builds"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.16/operations/repos/list-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 09553a1329..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "List required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-list-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-protected-branch-team-restrictions.json b/openapi/ghe-2.16/operations/repos/list-protected-branch-team-restrictions.json
deleted file mode 100644
index e93d533e67..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "List team restrictions of protected branch",
- "description": "Lists the teams who have push access to this branch. If you pass the `hellcat-preview` media type, the list includes child teams.",
- "operationId": "repos-list-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#list-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-protected-branch-user-restrictions.json b/openapi/ghe-2.16/operations/repos/list-protected-branch-user-restrictions.json
deleted file mode 100644
index 78b5430288..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "List user restrictions of protected branch",
- "description": "Lists the people who have push access to this branch.",
- "operationId": "repos-list-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#list-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-public.json b/openapi/ghe-2.16/operations/repos/list-public.json
deleted file mode 100644
index 3b597e8dc7..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-public.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "summary": "List all public repositories",
- "description": "This provides a dump of every public repository, in the order that they were created.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.16/v3/#link-header) to get the URL for the next page of repositories.\n\nIf you are an [authenticated](https://developer.github.com/enterprise/2.16/v3/#authentication) site administrator for your Enterprise appliance, you will be able to list all repositories including private repositories.",
- "operationId": "repos-list-public",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#list-all-public-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last Repository that you've seen."
- },
- {
- "name": "visibility",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "public"
- },
- "required": false,
- "description": "To include private repositories as well set to `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-releases.json b/openapi/ghe-2.16/operations/repos/list-releases.json
deleted file mode 100644
index 4d06afcfd0..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-releases.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List releases for a repository",
- "description": "This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://developer.github.com/enterprise/2.16/v3/repos/#list-tags).\n\nInformation about published releases are available to everyone. Only users with push access will receive listings for draft releases.",
- "operationId": "repos-list-releases",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#list-releases-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-statuses-for-ref.json b/openapi/ghe-2.16/operations/repos/list-statuses-for-ref.json
deleted file mode 100644
index a1fc4292a2..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-statuses-for-ref.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List statuses for a specific ref",
- "description": "Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.\n\nThis resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`.",
- "operationId": "repos-list-statuses-for-ref",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/statuses/#list-statuses-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/statuses"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-tags.json b/openapi/ghe-2.16/operations/repos/list-tags.json
deleted file mode 100644
index 7a9cd30146..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-tags.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List tags",
- "description": "",
- "operationId": "repos-list-tags",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#list-tags"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/tags"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-teams.json b/openapi/ghe-2.16/operations/repos/list-teams.json
deleted file mode 100644
index f418a2be78..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-teams.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List teams",
- "description": "",
- "operationId": "repos-list-teams",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#list-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list-topics.json b/openapi/ghe-2.16/operations/repos/list-topics.json
deleted file mode 100644
index 0419be1ca9..0000000000
--- a/openapi/ghe-2.16/operations/repos/list-topics.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "List all topics for a repository",
- "description": "",
- "operationId": "repos-list-topics",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#list-all-topics-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/topics"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/list.json b/openapi/ghe-2.16/operations/repos/list.json
deleted file mode 100644
index 1b5cfdaae4..0000000000
--- a/openapi/ghe-2.16/operations/repos/list.json
+++ /dev/null
@@ -1,135 +0,0 @@
-{
- "summary": "List your repositories",
- "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.",
- "operationId": "repos-list",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#list-your-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "visibility",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "public",
- "private"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `public`, or `private`."
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "owner,collaborator,organization_member"
- },
- "required": false,
- "description": "Comma-separated list of values. Can include: \n\\* `owner`: Repositories that are owned by the authenticated user. \n\\* `collaborator`: Repositories that the user has been added to as a collaborator. \n\\* `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on."
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "public",
- "private",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `owner`, `public`, `private`, `member`. Default: `all` \n \nWill cause a `422` error if used in the same request as **visibility** or **affiliation**. Will cause a `422` error if used in the same request as **visibility** or **affiliation**."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- },
- "required": false,
- "description": "Can be one of `created`, `updated`, `pushed`, `full_name`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/merge.json b/openapi/ghe-2.16/operations/repos/merge.json
deleted file mode 100644
index 1f18ab16d3..0000000000
--- a/openapi/ghe-2.16/operations/repos/merge.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Perform a merge",
- "description": "",
- "operationId": "repos-merge",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/merging/#perform-a-merge"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "base": {
- "description": "The name of the base branch that the head will be merged into.",
- "type": "string"
- },
- "head": {
- "description": "The head to merge. This can be a branch name or a commit SHA1.",
- "type": "string"
- },
- "commit_message": {
- "description": "Commit message to use for the merge commit. If omitted, a default message will be used.",
- "type": "string"
- }
- },
- "required": [
- "base",
- "head"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/merges \\\n -d '{\"base\":\"base\",\"head\":\"head\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n base: 'base',\n head: 'head'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/ping-hook.json b/openapi/ghe-2.16/operations/repos/ping-hook.json
deleted file mode 100644
index a053a98833..0000000000
--- a/openapi/ghe-2.16/operations/repos/ping-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Ping a hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.16/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nThis will trigger a [ping event](https://developer.github.com/enterprise/2.16/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "repos-ping-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/hooks/#ping-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id/pings"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-branch-protection.json b/openapi/ghe-2.16/operations/repos/remove-branch-protection.json
deleted file mode 100644
index 2e1742be47..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-branch-protection.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove branch protection",
- "description": "",
- "operationId": "repos-remove-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#remove-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-collaborator.json b/openapi/ghe-2.16/operations/repos/remove-collaborator.json
deleted file mode 100644
index f1f68eebfd..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-collaborator.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove user as a collaborator",
- "description": "",
- "operationId": "repos-remove-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/collaborators/#remove-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-deploy-key.json b/openapi/ghe-2.16/operations/repos/remove-deploy-key.json
deleted file mode 100644
index 0aac050d4c..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-deploy-key.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove a deploy key",
- "description": "",
- "operationId": "repos-remove-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/keys/#remove-a-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys/:key_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-protected-branch-admin-enforcement.json b/openapi/ghe-2.16/operations/repos/remove-protected-branch-admin-enforcement.json
deleted file mode 100644
index 65fc9e747e..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove admin enforcement of protected branch",
- "description": "Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-remove-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#remove-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.16/operations/repos/remove-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index 74a6f6b950..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove pull request review enforcement of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-protected-branch-required-signatures.json b/openapi/ghe-2.16/operations/repos/remove-protected-branch-required-signatures.json
deleted file mode 100644
index d4451e877e..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Remove required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits.",
- "operationId": "repos-remove-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#remove-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.16/operations/repos/remove-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 8df2da1ad8..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-protected-branch-required-status-checks.json b/openapi/ghe-2.16/operations/repos/remove-protected-branch-required-status-checks.json
deleted file mode 100644
index eba05c5e85..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove required status checks of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#remove-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-protected-branch-restrictions.json b/openapi/ghe-2.16/operations/repos/remove-protected-branch-restrictions.json
deleted file mode 100644
index 762aa647dc..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-protected-branch-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove restrictions of protected branch",
- "description": "Disables the ability to restrict who can push to this branch.",
- "operationId": "repos-remove-protected-branch-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#remove-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-protected-branch-team-restrictions.json b/openapi/ghe-2.16/operations/repos/remove-protected-branch-team-restrictions.json
deleted file mode 100644
index 3a634e1200..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove team restrictions of protected branch",
- "description": "Removes the ability of a team to push to this branch. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-remove-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#remove-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/remove-protected-branch-user-restrictions.json b/openapi/ghe-2.16/operations/repos/remove-protected-branch-user-restrictions.json
deleted file mode 100644
index 08b5dc87a7..0000000000
--- a/openapi/ghe-2.16/operations/repos/remove-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove user restrictions of protected branch",
- "description": "Removes the ability of a team to push to this branch.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames of the people who should no longer have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-remove-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#remove-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/replace-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.16/operations/repos/replace-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index c3a761221d..0000000000
--- a/openapi/ghe-2.16/operations/repos/replace-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-replace-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/replace-protected-branch-team-restrictions.json b/openapi/ghe-2.16/operations/repos/replace-protected-branch-team-restrictions.json
deleted file mode 100644
index 0237ff34f0..0000000000
--- a/openapi/ghe-2.16/operations/repos/replace-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace team restrictions of protected branch",
- "description": "Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-replace-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#replace-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/replace-protected-branch-user-restrictions.json b/openapi/ghe-2.16/operations/repos/replace-protected-branch-user-restrictions.json
deleted file mode 100644
index 46008bff36..0000000000
--- a/openapi/ghe-2.16/operations/repos/replace-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace user restrictions of protected branch",
- "description": "Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-replace-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#replace-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/replace-topics.json b/openapi/ghe-2.16/operations/repos/replace-topics.json
deleted file mode 100644
index 65c9b07923..0000000000
--- a/openapi/ghe-2.16/operations/repos/replace-topics.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "Replace all topics for a repository",
- "description": "",
- "operationId": "repos-replace-topics",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#replace-all-topics-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "names": {
- "description": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "names"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/topics \\\n -d '{\"names\":\"names\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n names: 'names'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/request-page-build.json b/openapi/ghe-2.16/operations/repos/request-page-build.json
deleted file mode 100644
index aa023f3da1..0000000000
--- a/openapi/ghe-2.16/operations/repos/request-page-build.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "summary": "Request a page build",
- "description": "You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures.\n\nBuild requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes.",
- "operationId": "repos-request-page-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/pages/#request-a-page-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.mister-fantastic-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.mister-fantastic-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/test-push-hook.json b/openapi/ghe-2.16/operations/repos/test-push-hook.json
deleted file mode 100644
index 9e8f892481..0000000000
--- a/openapi/ghe-2.16/operations/repos/test-push-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Test a push hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.16/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nThis will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated.\n\n**Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test`",
- "operationId": "repos-test-push-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/hooks/#test-a-push-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id/tests"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/transfer.json b/openapi/ghe-2.16/operations/repos/transfer.json
deleted file mode 100644
index b549eadc1d..0000000000
--- a/openapi/ghe-2.16/operations/repos/transfer.json
+++ /dev/null
@@ -1,391 +0,0 @@
-{
- "summary": "Transfer a repository",
- "description": "A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/).",
- "operationId": "repos-transfer",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#transfer-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.nightshade-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "new_owner": {
- "description": "**Required:** The username or organization name the repository will be transferred to.",
- "type": "string"
- },
- "team_ids": {
- "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.nightshade-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/transfer"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update-branch-protection.json b/openapi/ghe-2.16/operations/repos/update-branch-protection.json
deleted file mode 100644
index de47532f04..0000000000
--- a/openapi/ghe-2.16/operations/repos/update-branch-protection.json
+++ /dev/null
@@ -1,468 +0,0 @@
-{
- "summary": "Update branch protection",
- "description": "Protecting a branch requires admin or owner permissions to the repository.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.\n\n**Note**: The list of users and teams in total is limited to 100 items.",
- "operationId": "repos-update-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#update-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "required_status_checks": {
- "description": "Require status checks to pass before merging. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "strict": {
- "description": "Require branches to be up to date before merging.",
- "type": "boolean"
- },
- "contexts": {
- "description": "The list of status checks to require in order to merge into this branch",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "strict",
- "contexts"
- ]
- },
- "enforce_admins": {
- "description": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
- "type": "boolean",
- "nullable": true
- },
- "required_pull_request_reviews": {
- "description": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "dismissal_restrictions": {
- "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
- "type": "object",
- "properties": {
- "users": {
- "description": "The list of user `login`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) review them.",
- "type": "boolean"
- },
- "required_approving_review_count": {
- "description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "type": "integer"
- }
- }
- },
- "restrictions": {
- "description": "Restrict who can push to this branch. Team and user `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "users": {
- "description": "The list of user `login`s with push access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with push access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- },
- "required": [
- "required_status_checks",
- "enforce_admins",
- "required_pull_request_reviews",
- "restrictions"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- },
- "enforce_admins": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "required_pull_request_reviews": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- },
- "restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection \\\n -d '{\"required_status_checks\":\"required_status_checks\",\"required_status_checks.strict\":\"required_status_checks.strict\",\"required_status_checks.contexts\":\"required_status_checks.contexts\",\"enforce_admins\":\"enforce_admins\",\"required_pull_request_reviews\":\"required_pull_request_reviews\",\"restrictions\":\"restrictions\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n required_status_checks: 'required_status_checks',\n 'required_status_checks.strict': 'required_status_checks.strict',\n 'required_status_checks.contexts': 'required_status_checks.contexts',\n enforce_admins: 'enforce_admins',\n required_pull_request_reviews: 'required_pull_request_reviews',\n restrictions: 'restrictions'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update-commit-comment.json b/openapi/ghe-2.16/operations/repos/update-commit-comment.json
deleted file mode 100644
index f6845d1d10..0000000000
--- a/openapi/ghe-2.16/operations/repos/update-commit-comment.json
+++ /dev/null
@@ -1,189 +0,0 @@
-{
- "summary": "Update a commit comment",
- "description": "",
- "operationId": "repos-update-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/comments/#update-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update-hook.json b/openapi/ghe-2.16/operations/repos/update-hook.json
deleted file mode 100644
index d8c638089c..0000000000
--- a/openapi/ghe-2.16/operations/repos/update-hook.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "summary": "Edit a hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher will discontinue allowing admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.16/v3/guides/replacing-github-services) to help you update your services to webhooks.",
- "operationId": "repos-update-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/hooks/#edit-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.16/v3/repos/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.16/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "add_events": {
- "description": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "remove_events": {
- "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update-information-about-pages-site.json b/openapi/ghe-2.16/operations/repos/update-information-about-pages-site.json
deleted file mode 100644
index f6e7d7353d..0000000000
--- a/openapi/ghe-2.16/operations/repos/update-information-about-pages-site.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Update information about a Pages site",
- "description": "",
- "operationId": "repos-update-information-about-pages-site",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/pages/#update-information-about-a-pages-site"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "source": {
- "description": "Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `\"gh-pages\"`, `\"master\"`, and `\"master /docs\"`.",
- "type": "string",
- "enum": [
- "\"gh-pages\"",
- "\"master\"",
- "\"master /docs\""
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update-invitation.json b/openapi/ghe-2.16/operations/repos/update-invitation.json
deleted file mode 100644
index b2d0cb4353..0000000000
--- a/openapi/ghe-2.16/operations/repos/update-invitation.json
+++ /dev/null
@@ -1,434 +0,0 @@
-{
- "summary": "Update a repository invitation",
- "description": "",
- "operationId": "repos-update-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/invitations/#update-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permissions": {
- "description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "invitee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "inviter": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "permissions": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations/:invitation_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.16/operations/repos/update-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index 2c0e4e990e..0000000000
--- a/openapi/ghe-2.16/operations/repos/update-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,251 +0,0 @@
-{
- "summary": "Update pull request review enforcement of protected branch",
- "description": "Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.",
- "operationId": "repos-update-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "dismissal_restrictions": {
- "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
- "type": "object",
- "properties": {
- "users": {
- "description": "The list of user `login`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed.",
- "type": "boolean"
- },
- "required_approving_review_count": {
- "description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "type": "integer"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update-protected-branch-required-status-checks.json b/openapi/ghe-2.16/operations/repos/update-protected-branch-required-status-checks.json
deleted file mode 100644
index 914da517a3..0000000000
--- a/openapi/ghe-2.16/operations/repos/update-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Update required status checks of protected branch",
- "description": "Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-update-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/branches/#update-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "strict": {
- "description": "Require branches to be up to date before merging.",
- "type": "boolean"
- },
- "contexts": {
- "description": "The list of status checks to require in order to merge into this branch",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update-release-asset.json b/openapi/ghe-2.16/operations/repos/update-release-asset.json
deleted file mode 100644
index 822e5b7ff3..0000000000
--- a/openapi/ghe-2.16/operations/repos/update-release-asset.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Edit a release asset",
- "description": "Users with push access to the repository can edit a release asset.",
- "operationId": "repos-update-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#edit-a-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The file name of the asset.",
- "type": "string"
- },
- "label": {
- "description": "An alternate short description of the asset. Used in place of the filename.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update-release.json b/openapi/ghe-2.16/operations/repos/update-release.json
deleted file mode 100644
index eb4501b2f6..0000000000
--- a/openapi/ghe-2.16/operations/repos/update-release.json
+++ /dev/null
@@ -1,324 +0,0 @@
-{
- "summary": "Edit a release",
- "description": "Users with push access to the repository can edit a release.",
- "operationId": "repos-update-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/releases/#edit-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string"
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "type": "string"
- },
- "name": {
- "description": "The name of the release.",
- "type": "string"
- },
- "body": {
- "description": "Text describing the contents of the tag.",
- "type": "string"
- },
- "draft": {
- "description": "`true` makes the release a draft, and `false` publishes the release.",
- "type": "boolean"
- },
- "prerelease": {
- "description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/repos/update.json b/openapi/ghe-2.16/operations/repos/update.json
deleted file mode 100644
index 54637ea886..0000000000
--- a/openapi/ghe-2.16/operations/repos/update.json
+++ /dev/null
@@ -1,1106 +0,0 @@
-{
- "summary": "Edit",
- "description": "**Note**: To edit a repository's topics, use the [`topics` endpoint](https://developer.github.com/enterprise/2.16/v3/repos/#replace-all-topics-for-a-repository).",
- "operationId": "repos-update",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/repos/#edit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.x-ray-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private, or if the \"Users Can Change Repo Visibility\" appliance setting is disabled and you are not a hosted site admin. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private, or if the \"Users Can Change Repo Visibility\" appliance setting is disabled and you are not a hosted site admin.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "default_branch": {
- "description": "Updates the default branch for this repository.",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- },
- "archived": {
- "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "type": "boolean",
- "default": false
- },
- "anonymous_access_enabled": {
- "description": "Either `true` to allow anonymous Git access to a public repository, or `false` to disable it. This feature is only available to site and repository administrators in GitHub Enterprise Server instances that have private mode enabled.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parent": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- }
- }
- },
- "source": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.x-ray-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/code.json b/openapi/ghe-2.16/operations/search/code.json
deleted file mode 100644
index f38ad4b62f..0000000000
--- a/openapi/ghe-2.16/operations/search/code.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "summary": "Search code",
- "description": "Find file contents via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.16/v3/#pagination).\n\nWhen searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.16/v3/search/#text-match-metadata).\n\n**Note:** You must [authenticate](https://developer.github.com/enterprise/2.16/v3/#authentication) to search for code across all public repositories.\n\n**Considerations for code search**\n\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:\n\n* Only the _default branch_ is considered. In most cases, this will be the `master` branch.\n* Only files smaller than 10 MB are searchable.\n\nSuppose you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery). Your query would look something like this:\n\nHere, we're searching for the keyword `addClass` within a file's contents. We're making sure that we're only looking in files where the language is JavaScript. And we're scoping the search to the `repo:jquery/jquery` repository.",
- "operationId": "search-code",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/#search-code"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.16/v3/search/#constructing-a-search-query). See \"[Searching code](https://help.github.com/articles/searching-code/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "indexed"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/code"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/commits.json b/openapi/ghe-2.16/operations/search/commits.json
deleted file mode 100644
index 00580de74e..0000000000
--- a/openapi/ghe-2.16/operations/search/commits.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "summary": "Search commits",
- "description": "Find commits via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.16/v3/#pagination).\n\nWhen searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.16/v3/search/#text-match-metadata).\n\n**Considerations for commit search**\n\nOnly the _default branch_ is considered. In most cases, this will be the `master` branch.\n\nSuppose you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:",
- "operationId": "search-commits",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/#search-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.cloak-preview+json"
- },
- "required": true
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.16/v3/search/#constructing-a-search-query). See \"[Searching commits](https://help.github.com/articles/searching-commits/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "author-date",
- "committer-date"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.cloak-preview+json\" \\\n https://developer.github.com/search/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/email-legacy.json b/openapi/ghe-2.16/operations/search/email-legacy.json
deleted file mode 100644
index cc9c4dae33..0000000000
--- a/openapi/ghe-2.16/operations/search/email-legacy.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Email search",
- "description": "This API call is added for compatibility reasons only. There's no guarantee that full email searches will always be available. The `@` character in the address must be left unencoded. Searches only against public email addresses (as configured on the user's GitHub Enterprise Server profile).",
- "operationId": "search-email-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/legacy/#email-search"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "email",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The email address."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/user/email/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n email: 'email'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/issues-and-pull-requests.json b/openapi/ghe-2.16/operations/search/issues-and-pull-requests.json
deleted file mode 100644
index 680e892aeb..0000000000
--- a/openapi/ghe-2.16/operations/search/issues-and-pull-requests.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "summary": "Search issues and pull requests",
- "description": "Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.16/v3/#pagination).\n\nWhen searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.16/v3/search/#text-match-metadata).\n\nLet's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.\n\nIn this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results.",
- "operationId": "search-issues-and-pull-requests",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/#search-issues-and-pull-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.16/v3/search/#constructing-a-search-query). See \"[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "comments",
- "reactions",
- "reactions-+1",
- "reactions--1",
- "reactions-smile",
- "reactions-thinking_face",
- "reactions-heart",
- "reactions-tada",
- "interactions",
- "created",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2018-12-27",
- "note": "\"Search issues\" has been renamed to \"Search issues and pull requests\"",
- "meta": {
- "before": {
- "idName": "issues"
- },
- "after": {
- "idName": "issues-and-pull-requests"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.16/operations/search/issues-legacy.json b/openapi/ghe-2.16/operations/search/issues-legacy.json
deleted file mode 100644
index 339893293a..0000000000
--- a/openapi/ghe-2.16/operations/search/issues-legacy.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "summary": "Search issues",
- "description": "Find issues by state and keyword.",
- "operationId": "search-issues-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/legacy/#search-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repository",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repository parameter"
- },
- {
- "name": "state",
- "in": "path",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "required": true,
- "description": "Indicates the state of the issues to return. Can be either `open` or `closed`."
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/issues/search/octocat/:repository/:state/:keyword"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n owner: 'octocat',\n repository: 'repository',\n state: 'state',\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/labels.json b/openapi/ghe-2.16/operations/search/labels.json
deleted file mode 100644
index 5969579439..0000000000
--- a/openapi/ghe-2.16/operations/search/labels.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Search labels",
- "description": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://developer.github.com/enterprise/2.16/v3/#pagination).\n\nWhen searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.16/v3/search/#text-match-metadata).\n\nSuppose you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:\n\nThe labels that best match for the query appear first in the search results.",
- "operationId": "search-labels",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/#search-labels"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "repository_id",
- "in": "query",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "The id of the repository."
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.16/v3/search/#constructing-a-search-query)."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n repository_id: 'repository_id',\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/repos-legacy.json b/openapi/ghe-2.16/operations/search/repos-legacy.json
deleted file mode 100644
index 6ba8be1094..0000000000
--- a/openapi/ghe-2.16/operations/search/repos-legacy.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "summary": "Search repositories",
- "description": "Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the `start_page` parameter.",
- "operationId": "search-repos-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/legacy/#search-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- },
- {
- "name": "language",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter results by language."
- },
- {
- "name": "start_page",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The page number to fetch."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "updated"
- ]
- },
- "required": false,
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match."
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/repos/search/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/repos.json b/openapi/ghe-2.16/operations/search/repos.json
deleted file mode 100644
index c206ba3bde..0000000000
--- a/openapi/ghe-2.16/operations/search/repos.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "Search repositories",
- "description": "Find repositories via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.16/v3/#pagination).\n\nWhen searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.16/v3/search/#text-match-metadata).\n\nSuppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this.\n\nYou can search for multiple topics by adding more `topic:` instances, and including the `mercy-preview` header. For example:\n\nIn this request, we're searching for repositories with the word `tetris` in the name, the description, or the README. We're limiting the results to only find repositories where the primary language is Assembly. We're sorting by stars in descending order, so that the most popular repositories appear first in the search results.",
- "operationId": "search-repos",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/#search-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.16/v3/search/#constructing-a-search-query). See \"[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "help-wanted-issues",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/topics.json b/openapi/ghe-2.16/operations/search/topics.json
deleted file mode 100644
index 4bc2247460..0000000000
--- a/openapi/ghe-2.16/operations/search/topics.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Search topics",
- "description": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.16/v3/#pagination).\n\nWhen searching for topics, you can get text match metadata for the topic's **short\\_description**, **description**, **name**, or **display\\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.16/v3/search/#text-match-metadata).\n\nSee \"[Searching topics](https://help.github.com/articles/searching-topics/)\" for a detailed list of qualifiers.\n\nSuppose you want to search for topics related to Ruby that are featured on [https://github.com/topics](https://github.com/topics). Your query might look like this:\n\nIn this request, we're searching for topics with the keyword `ruby`, and we're limiting the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.\n\n**Note:** A search for featured Ruby topics only has 6 total results, so a [Link header](https://developer.github.com/enterprise/2.16/v3/#link-header) indicating pagination is not included in the response.",
- "operationId": "search-topics",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/#search-topics"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.16/v3/search/#constructing-a-search-query)."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/topics"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/users-legacy.json b/openapi/ghe-2.16/operations/search/users-legacy.json
deleted file mode 100644
index 2ef3946f22..0000000000
--- a/openapi/ghe-2.16/operations/search/users-legacy.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Search users",
- "description": "Find users by keyword.",
- "operationId": "search-users-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/legacy/#search-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- },
- {
- "name": "start_page",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The page number to fetch."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "updated"
- ]
- },
- "required": false,
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match."
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/user/search/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/search/users.json b/openapi/ghe-2.16/operations/search/users.json
deleted file mode 100644
index 32f319d443..0000000000
--- a/openapi/ghe-2.16/operations/search/users.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "summary": "Search users",
- "description": "Find users via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.16/v3/#pagination).\n\nWhen searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://developer.github.com/enterprise/2.16/v3/search/#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.16/v3/search/#text-match-metadata).\n\nImagine you're looking for a list of popular users. You might try out this query:\n\nHere, we're looking at users with the name Tom. We're only interested in those with more than 42 repositories, and only if they have over 1,000 followers.",
- "operationId": "search-users",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/search/#search-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.16/v3/search/#constructing-a-search-query). See \"[Searching users](https://help.github.com/articles/searching-users/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "followers",
- "repositories",
- "joined"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/users"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/add-member.json b/openapi/ghe-2.16/operations/teams/add-member.json
deleted file mode 100644
index a6ca7dc36e..0000000000
--- a/openapi/ghe-2.16/operations/teams/add-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Add team member",
- "description": "The \"Add team member\" API (described below) is deprecated.\n\nWe recommend using the [Add team membership API](https://developer.github.com/enterprise/2.16/v3/teams/members/#add-or-update-team-membership) instead. It allows you to invite new organization members to your teams.\n\nTo add someone to a team, the authenticated user must be a team maintainer in the team they're changing or be an owner of the organization that the team is associated with. The person being added to the team must be a member of the team's organization.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "teams-add-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/members/#add-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/add-or-update-membership.json b/openapi/ghe-2.16/operations/teams/add-or-update-membership.json
deleted file mode 100644
index 948c297406..0000000000
--- a/openapi/ghe-2.16/operations/teams/add-or-update-membership.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Add or update team membership",
- "description": "If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a maintainer of the team.\n\nIf the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the \"pending\" state until the user accepts the invitation, at which point the membership will transition to the \"active\" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.\n\nIf the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a maintainer of the team.",
- "operationId": "teams-add-or-update-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/members/#add-or-update-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "role": {
- "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.",
- "type": "string",
- "enum": [
- "member",
- "maintainer"
- ],
- "default": "member"
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/add-or-update-project.json b/openapi/ghe-2.16/operations/teams/add-or-update-project.json
deleted file mode 100644
index 8f0b997941..0000000000
--- a/openapi/ghe-2.16/operations/teams/add-or-update-project.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "summary": "Add or update team project",
- "description": "Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.",
- "operationId": "teams-add-or-update-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#add-or-update-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\" \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/add-or-update-repo.json b/openapi/ghe-2.16/operations/teams/add-or-update-repo.json
deleted file mode 100644
index 60b8f40036..0000000000
--- a/openapi/ghe-2.16/operations/teams/add-or-update-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Add or update team repository",
- "description": "To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.\n\nIf you pass the `hellcat-preview` media type, you can modify repository permissions of child teams.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"",
- "operationId": "teams-add-or-update-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#add-or-update-team-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/check-manages-repo.json b/openapi/ghe-2.16/operations/teams/check-manages-repo.json
deleted file mode 100644
index 26b90851fc..0000000000
--- a/openapi/ghe-2.16/operations/teams/check-manages-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check if a team manages a repository",
- "description": "**Note**: If you pass the `hellcat-preview` media type, repositories inherited through a parent team will be checked.\n\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/enterprise/2.16/v3/media/) via the `Accept` header:",
- "operationId": "teams-check-manages-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#check-if-a-team-manages-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/create-discussion-comment.json b/openapi/ghe-2.16/operations/teams/create-discussion-comment.json
deleted file mode 100644
index c58a2340b0..0000000000
--- a/openapi/ghe-2.16/operations/teams/create-discussion-comment.json
+++ /dev/null
@@ -1,210 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "teams-create-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussion_comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The discussion comment's body text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/create-discussion.json b/openapi/ghe-2.16/operations/teams/create-discussion.json
deleted file mode 100644
index aa1e5553a4..0000000000
--- a/openapi/ghe-2.16/operations/teams/create-discussion.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Create a discussion",
- "description": "Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.16/v3/#abuse-rate-limits)\" for details.",
- "operationId": "teams-create-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussions/#create-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The discussion post's title.",
- "type": "string"
- },
- "body": {
- "description": "The discussion post's body text.",
- "type": "string"
- },
- "private": {
- "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "title",
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n title: 'title',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/create.json b/openapi/ghe-2.16/operations/teams/create.json
deleted file mode 100644
index 6407dfd9b7..0000000000
--- a/openapi/ghe-2.16/operations/teams/create.json
+++ /dev/null
@@ -1,254 +0,0 @@
-{
- "summary": "Create team",
- "description": "To create a team, the authenticated user must be a member or owner of `:org`.",
- "operationId": "teams-create",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#create-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the team.",
- "type": "string"
- },
- "description": {
- "description": "The description of the team.",
- "type": "string"
- },
- "maintainers": {
- "description": "The logins of organization members to add as maintainers of the team.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "repo_names": {
- "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "privacy": {
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
- "type": "string",
- "enum": [
- "secret",
- "closed"
- ]
- },
- "permission": {
- "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- "parent_team_id": {
- "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
- "type": "integer"
- },
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Update LDAP mapping for a team](https://developer.github.com/enterprise/2.16/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-team) endpoint to change the LDAP DN.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//teams \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/delete-discussion-comment.json b/openapi/ghe-2.16/operations/teams/delete-discussion-comment.json
deleted file mode 100644
index 8cb918798d..0000000000
--- a/openapi/ghe-2.16/operations/teams/delete-discussion-comment.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-delete-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussion_comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/delete-discussion.json b/openapi/ghe-2.16/operations/teams/delete-discussion.json
deleted file mode 100644
index 30c5234799..0000000000
--- a/openapi/ghe-2.16/operations/teams/delete-discussion.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Delete a discussion",
- "description": "Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-delete-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussions/#delete-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/delete.json b/openapi/ghe-2.16/operations/teams/delete.json
deleted file mode 100644
index 07fd6ea5f9..0000000000
--- a/openapi/ghe-2.16/operations/teams/delete.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete team",
- "description": "To delete a team, the authenticated user must be a team maintainer or an owner of the org associated with the team.\n\nIf you are an organization owner and you pass the `hellcat-preview` media type, deleting a parent team will delete all of its child teams as well.",
- "operationId": "teams-delete",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#delete-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/get-discussion-comment.json b/openapi/ghe-2.16/operations/teams/get-discussion-comment.json
deleted file mode 100644
index d620011ed0..0000000000
--- a/openapi/ghe-2.16/operations/teams/get-discussion-comment.json
+++ /dev/null
@@ -1,201 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-get-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussion_comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/get-discussion.json b/openapi/ghe-2.16/operations/teams/get-discussion.json
deleted file mode 100644
index a04aac56e2..0000000000
--- a/openapi/ghe-2.16/operations/teams/get-discussion.json
+++ /dev/null
@@ -1,207 +0,0 @@
-{
- "summary": "Get a single discussion",
- "description": "Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-get-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussions/#get-a-single-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/get-member.json b/openapi/ghe-2.16/operations/teams/get-member.json
deleted file mode 100644
index ae70fc0d20..0000000000
--- a/openapi/ghe-2.16/operations/teams/get-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get team member",
- "description": "The \"Get team member\" API (described below) is deprecated.\n\nWe recommend using the [Get team membership API](https://developer.github.com/enterprise/2.16/v3/teams/members/#get-team-membership) instead. It allows you to get both active and pending memberships.\n\nTo list members in a team, the team must be visible to the authenticated user.",
- "operationId": "teams-get-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/members/#get-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/get-membership.json b/openapi/ghe-2.16/operations/teams/get-membership.json
deleted file mode 100644
index c764c15e48..0000000000
--- a/openapi/ghe-2.16/operations/teams/get-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get team membership",
- "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.\n\nTo get a user's membership with a team, the team must be visible to the authenticated user.\n\n**Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/enterprise/2.16/v3/teams#create-team).",
- "operationId": "teams-get-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/members/#get-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/get.json b/openapi/ghe-2.16/operations/teams/get.json
deleted file mode 100644
index 1c2c138314..0000000000
--- a/openapi/ghe-2.16/operations/teams/get.json
+++ /dev/null
@@ -1,192 +0,0 @@
-{
- "summary": "Get team",
- "description": "",
- "operationId": "teams-get",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#get-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/list-child.json b/openapi/ghe-2.16/operations/teams/list-child.json
deleted file mode 100644
index 4e35155bab..0000000000
--- a/openapi/ghe-2.16/operations/teams/list-child.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "summary": "List child teams",
- "description": "At this time, the `hellcat-preview` media type is required to use this endpoint.\n\n",
- "operationId": "teams-list-child",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#list-child-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.hellcat-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.hellcat-preview+json\" \\\n https://developer.github.com/teams//teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/list-discussion-comments.json b/openapi/ghe-2.16/operations/teams/list-discussion-comments.json
deleted file mode 100644
index b073f165fc..0000000000
--- a/openapi/ghe-2.16/operations/teams/list-discussion-comments.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List comments",
- "description": "List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-list-discussion-comments",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussion_comments/#list-comments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/list-discussions.json b/openapi/ghe-2.16/operations/teams/list-discussions.json
deleted file mode 100644
index 39158a5688..0000000000
--- a/openapi/ghe-2.16/operations/teams/list-discussions.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "List discussions",
- "description": "List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-list-discussions",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussions/#list-discussions"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/list-for-authenticated-user.json b/openapi/ghe-2.16/operations/teams/list-for-authenticated-user.json
deleted file mode 100644
index 99d6bbd400..0000000000
--- a/openapi/ghe-2.16/operations/teams/list-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List user teams",
- "description": "List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/).",
- "operationId": "teams-list-for-authenticated-user",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#list-user-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/list-members.json b/openapi/ghe-2.16/operations/teams/list-members.json
deleted file mode 100644
index cf32197674..0000000000
--- a/openapi/ghe-2.16/operations/teams/list-members.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "List team members",
- "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.\n\nTo list members in a team, the team must be visible to the authenticated user.",
- "operationId": "teams-list-members",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/members/#list-team-members"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "member",
- "maintainer",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/list-projects.json b/openapi/ghe-2.16/operations/teams/list-projects.json
deleted file mode 100644
index 692b08704b..0000000000
--- a/openapi/ghe-2.16/operations/teams/list-projects.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "List team projects",
- "description": "Lists the organization projects for a team. If you are an [authenticated](https://developer.github.com/enterprise/2.16/v3/#authentication) site administrator for your Enterprise instance, you will be able to list all projects for the team. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team.",
- "operationId": "teams-list-projects",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#list-team-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/list-repos.json b/openapi/ghe-2.16/operations/teams/list-repos.json
deleted file mode 100644
index 7fcaac36f7..0000000000
--- a/openapi/ghe-2.16/operations/teams/list-repos.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List team repos",
- "description": "**Note**: If you pass the `hellcat-preview` media type, the response will include any repositories inherited through a parent team.\n\nIf you are an [authenticated](https://developer.github.com/enterprise/2.16/v3/#authentication) site administrator for your Enterprise instance, you will be able to list all repositories for the team.",
- "operationId": "teams-list-repos",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#list-team-repos"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/list.json b/openapi/ghe-2.16/operations/teams/list.json
deleted file mode 100644
index 2e6ebc1e31..0000000000
--- a/openapi/ghe-2.16/operations/teams/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List teams",
- "description": "",
- "operationId": "teams-list",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#list-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/remove-member.json b/openapi/ghe-2.16/operations/teams/remove-member.json
deleted file mode 100644
index 073c19c62f..0000000000
--- a/openapi/ghe-2.16/operations/teams/remove-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team member",
- "description": "The \"Remove team member\" API (described below) is deprecated.\n\nWe recommend using the [Remove team membership endpoint](https://developer.github.com/enterprise/2.16/v3/teams/members/#remove-team-membership) instead. It allows you to remove both active and pending memberships.\n\nTo remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.",
- "operationId": "teams-remove-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/members/#remove-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/remove-membership.json b/openapi/ghe-2.16/operations/teams/remove-membership.json
deleted file mode 100644
index d2068f1120..0000000000
--- a/openapi/ghe-2.16/operations/teams/remove-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team membership",
- "description": "To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.",
- "operationId": "teams-remove-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/members/#remove-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/remove-project.json b/openapi/ghe-2.16/operations/teams/remove-project.json
deleted file mode 100644
index 4063ecd679..0000000000
--- a/openapi/ghe-2.16/operations/teams/remove-project.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team project",
- "description": "Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it.",
- "operationId": "teams-remove-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#remove-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/remove-repo.json b/openapi/ghe-2.16/operations/teams/remove-repo.json
deleted file mode 100644
index 5c6d7621c8..0000000000
--- a/openapi/ghe-2.16/operations/teams/remove-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove team repository",
- "description": "If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.",
- "operationId": "teams-remove-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#remove-team-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/review-project.json b/openapi/ghe-2.16/operations/teams/review-project.json
deleted file mode 100644
index 82af601b72..0000000000
--- a/openapi/ghe-2.16/operations/teams/review-project.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Review a team project",
- "description": "Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team.",
- "operationId": "teams-review-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#review-a-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization_permission": {
- "type": "string"
- },
- "private": {
- "type": "boolean"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "read": {
- "type": "boolean"
- },
- "write": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/update-discussion-comment.json b/openapi/ghe-2.16/operations/teams/update-discussion-comment.json
deleted file mode 100644
index 59583c768e..0000000000
--- a/openapi/ghe-2.16/operations/teams/update-discussion-comment.json
+++ /dev/null
@@ -1,219 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-update-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussion_comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The discussion comment's body text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/update-discussion.json b/openapi/ghe-2.16/operations/teams/update-discussion.json
deleted file mode 100644
index 07c4a334d5..0000000000
--- a/openapi/ghe-2.16/operations/teams/update-discussion.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Edit a discussion",
- "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-update-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/discussions/#edit-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The discussion post's title.",
- "type": "string"
- },
- "body": {
- "description": "The discussion post's body text.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/teams/update.json b/openapi/ghe-2.16/operations/teams/update.json
deleted file mode 100644
index 7e733875d5..0000000000
--- a/openapi/ghe-2.16/operations/teams/update.json
+++ /dev/null
@@ -1,236 +0,0 @@
-{
- "summary": "Edit team",
- "description": "To edit a team, the authenticated user must either be an owner of the org that the team is associated with, or a maintainer of the team.\n\n**Note:** With nested teams, the `privacy` for parent teams cannot be `secret`.",
- "operationId": "teams-update",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/teams/#edit-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the team.",
- "type": "string"
- },
- "description": {
- "description": "The description of the team.",
- "type": "string"
- },
- "privacy": {
- "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "type": "string",
- "enum": [
- "secret",
- "closed"
- ]
- },
- "permission": {
- "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- "parent_team_id": {
- "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
- "type": "integer"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/ \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/add-emails.json b/openapi/ghe-2.16/operations/users/add-emails.json
deleted file mode 100644
index 5da9d23c2e..0000000000
--- a/openapi/ghe-2.16/operations/users/add-emails.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "Add email address(es)",
- "description": "If your GitHub Enterprise Server instance has [LDAP Sync enabled and the option to synchronize emails enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync), this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add or delete an email address via the API with these options enabled.\n\nThis endpoint is accessible with the `user` scope.",
- "operationId": "users-add-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/emails/#add-email-addresses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "emails": {
- "description": "Adds one or more email addresses to your GitHub Enterprise Server account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "emails"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails \\\n -d '{\"emails\":\"emails\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n emails: 'emails'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/check-following-for-user.json b/openapi/ghe-2.16/operations/users/check-following-for-user.json
deleted file mode 100644
index 0e9c7ac3bf..0000000000
--- a/openapi/ghe-2.16/operations/users/check-following-for-user.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if one user follows another",
- "description": "",
- "operationId": "users-check-following-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/followers/#check-if-one-user-follows-another"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "target_user",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "target_user parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//following/:target_user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username',\n target_user: 'target_user'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/check-following.json b/openapi/ghe-2.16/operations/users/check-following.json
deleted file mode 100644
index c2f507e138..0000000000
--- a/openapi/ghe-2.16/operations/users/check-following.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Check if you are following a user",
- "description": "",
- "operationId": "users-check-following",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/followers/#check-if-you-are-following-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/create-gpg-key.json b/openapi/ghe-2.16/operations/users/create-gpg-key.json
deleted file mode 100644
index b02f2ec57f..0000000000
--- a/openapi/ghe-2.16/operations/users/create-gpg-key.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "summary": "Create a GPG key",
- "description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-create-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/gpg_keys/#create-a-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "armored_public_key": {
- "description": "Your GPG key, generated in ASCII-armored format. See \"[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)\" for help creating a GPG key.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "string"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- }
- }
- }
- },
- "subkeys": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "number"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {}
- },
- "subkeys": {
- "type": "array",
- "items": {}
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/create-public-key.json b/openapi/ghe-2.16/operations/users/create-public-key.json
deleted file mode 100644
index 57e013c896..0000000000
--- a/openapi/ghe-2.16/operations/users/create-public-key.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "Create a public key",
- "description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nIf your GitHub Enterprise Server appliance has [LDAP Sync enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add an SSH key address via the API with these options enabled.",
- "operationId": "users-create-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/keys/#create-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key \"Personal MacBook Air\".",
- "type": "string"
- },
- "key": {
- "description": "The public SSH key to add to your GitHub account. See \"[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)\" for guidance on how to create a public SSH key.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/delete-emails.json b/openapi/ghe-2.16/operations/users/delete-emails.json
deleted file mode 100644
index 628220b1de..0000000000
--- a/openapi/ghe-2.16/operations/users/delete-emails.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "summary": "Delete email address(es)",
- "description": "If your GitHub Enterprise Server instance has [LDAP Sync enabled and the option to synchronize emails enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync), this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add or delete an email address via the API with these options enabled.\n\nThis endpoint is accessible with the `user` scope.",
- "operationId": "users-delete-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/emails/#delete-email-addresses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "emails": {
- "description": "Deletes one or more email addresses from your GitHub Enterprise Server account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "emails"
- ]
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails \\\n -d '{\"emails\":\"emails\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n emails: 'emails'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/delete-gpg-key.json b/openapi/ghe-2.16/operations/users/delete-gpg-key.json
deleted file mode 100644
index 9ef3b0a23f..0000000000
--- a/openapi/ghe-2.16/operations/users/delete-gpg-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a GPG key",
- "description": "Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-delete-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/gpg_keys/#delete-a-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gpg_key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "gpg_key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n gpg_key_id: 'gpg_key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/delete-public-key.json b/openapi/ghe-2.16/operations/users/delete-public-key.json
deleted file mode 100644
index 9010c726a3..0000000000
--- a/openapi/ghe-2.16/operations/users/delete-public-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a public key",
- "description": "Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nIf your GitHub Enterprise Server appliance has [LDAP Sync enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to remove an SSH key address via the API with these options enabled.",
- "operationId": "users-delete-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/keys/#delete-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/follow.json b/openapi/ghe-2.16/operations/users/follow.json
deleted file mode 100644
index 127cb46132..0000000000
--- a/openapi/ghe-2.16/operations/users/follow.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Follow a user",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.16/v3/#http-verbs).\"\n\nFollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
- "operationId": "users-follow",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/followers/#follow-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/get-authenticated.json b/openapi/ghe-2.16/operations/users/get-authenticated.json
deleted file mode 100644
index 9991a9d8fb..0000000000
--- a/openapi/ghe-2.16/operations/users/get-authenticated.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "summary": "Get the authenticated user",
- "description": "Lists public and private profile information when authenticated through basic auth or OAuth with the `user` scope.\n\nLists public profile information when authenticated through OAuth without the `user` scope.",
- "operationId": "users-get-authenticated",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/#get-the-authenticated-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/get-by-username.json b/openapi/ghe-2.16/operations/users/get-by-username.json
deleted file mode 100644
index 9d06c0e846..0000000000
--- a/openapi/ghe-2.16/operations/users/get-by-username.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "summary": "Get a single user",
- "description": "Provides publicly available information about someone with a GitHub Enterprise Server account.\n\nThe `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://developer.github.com/enterprise/2.16/v3/#authentication).\n\nThe Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"[Emails API](https://developer.github.com/enterprise/2.16/v3/users/emails/)\".",
- "operationId": "users-get-by-username",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/#get-a-single-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "hireable": {
- "type": "boolean"
- },
- "bio": {
- "type": "string"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/get-context-for-user.json b/openapi/ghe-2.16/operations/users/get-context-for-user.json
deleted file mode 100644
index ee1ef08b3d..0000000000
--- a/openapi/ghe-2.16/operations/users/get-context-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Get contextual information about a user",
- "description": "Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.\n\nThe `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this:",
- "operationId": "users-get-context-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/#get-contextual-information-about-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.hagar-preview+json"
- },
- "required": true
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "subject_type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "organization",
- "repository",
- "issue",
- "pull_request"
- ]
- },
- "required": false,
- "description": "Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`."
- },
- {
- "name": "subject_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.hagar-preview+json\" \\\n https://developer.github.com/users//hovercard"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/get-gpg-key.json b/openapi/ghe-2.16/operations/users/get-gpg-key.json
deleted file mode 100644
index 7e6396cfbe..0000000000
--- a/openapi/ghe-2.16/operations/users/get-gpg-key.json
+++ /dev/null
@@ -1,151 +0,0 @@
-{
- "summary": "Get a single GPG key",
- "description": "View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-get-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/gpg_keys/#get-a-single-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gpg_key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "gpg_key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "string"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- }
- }
- }
- },
- "subkeys": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "number"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {}
- },
- "subkeys": {
- "type": "array",
- "items": {}
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n gpg_key_id: 'gpg_key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/get-public-key.json b/openapi/ghe-2.16/operations/users/get-public-key.json
deleted file mode 100644
index aa667d9eaf..0000000000
--- a/openapi/ghe-2.16/operations/users/get-public-key.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get a single public key",
- "description": "View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-get-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/keys/#get-a-single-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-emails.json b/openapi/ghe-2.16/operations/users/list-emails.json
deleted file mode 100644
index 361352d504..0000000000
--- a/openapi/ghe-2.16/operations/users/list-emails.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List email addresses for a user",
- "description": "Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope.",
- "operationId": "users-list-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/emails/#list-email-addresses-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-followers-for-authenticated-user.json b/openapi/ghe-2.16/operations/users/list-followers-for-authenticated-user.json
deleted file mode 100644
index e6512813db..0000000000
--- a/openapi/ghe-2.16/operations/users/list-followers-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List the authenticated user's followers",
- "description": "",
- "operationId": "users-list-followers-for-authenticated-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/followers/#list-followers-of-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/followers"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-followers-for-user.json b/openapi/ghe-2.16/operations/users/list-followers-for-user.json
deleted file mode 100644
index 53acf5cc4c..0000000000
--- a/openapi/ghe-2.16/operations/users/list-followers-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List a user's followers",
- "description": "",
- "operationId": "users-list-followers-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/followers/#list-followers-of-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//followers"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-following-for-authenticated-user.json b/openapi/ghe-2.16/operations/users/list-following-for-authenticated-user.json
deleted file mode 100644
index 05380c2a32..0000000000
--- a/openapi/ghe-2.16/operations/users/list-following-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List who the authenticated user is following",
- "description": "",
- "operationId": "users-list-following-for-authenticated-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/followers/#list-users-followed-by-another-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-following-for-user.json b/openapi/ghe-2.16/operations/users/list-following-for-user.json
deleted file mode 100644
index 7ae7b5ab2a..0000000000
--- a/openapi/ghe-2.16/operations/users/list-following-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List who a user is following",
- "description": "",
- "operationId": "users-list-following-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/followers/#list-users-followed-by-another-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//following"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-gpg-keys-for-user.json b/openapi/ghe-2.16/operations/users/list-gpg-keys-for-user.json
deleted file mode 100644
index 8da1dc2cfc..0000000000
--- a/openapi/ghe-2.16/operations/users/list-gpg-keys-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List GPG keys for a user",
- "description": "Lists the GPG keys for a user. This information is accessible by anyone.",
- "operationId": "users-list-gpg-keys-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/gpg_keys/#list-gpg-keys-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-gpg-keys.json b/openapi/ghe-2.16/operations/users/list-gpg-keys.json
deleted file mode 100644
index bacc4f7946..0000000000
--- a/openapi/ghe-2.16/operations/users/list-gpg-keys.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your GPG keys",
- "description": "Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-list-gpg-keys",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/gpg_keys/#list-your-gpg-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-public-emails.json b/openapi/ghe-2.16/operations/users/list-public-emails.json
deleted file mode 100644
index 29d43bbe61..0000000000
--- a/openapi/ghe-2.16/operations/users/list-public-emails.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List public email addresses for a user",
- "description": "Lists your publicly visible email address. This endpoint is accessible with the `user:email` scope.",
- "operationId": "users-list-public-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/emails/#list-public-email-addresses-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/public_emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-public-keys-for-user.json b/openapi/ghe-2.16/operations/users/list-public-keys-for-user.json
deleted file mode 100644
index 612d4812a0..0000000000
--- a/openapi/ghe-2.16/operations/users/list-public-keys-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List public keys for a user",
- "description": "Lists the _verified_ public SSH keys for a user. This is accessible by anyone.",
- "operationId": "users-list-public-keys-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/keys/#list-public-keys-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list-public-keys.json b/openapi/ghe-2.16/operations/users/list-public-keys.json
deleted file mode 100644
index d4889bd2f8..0000000000
--- a/openapi/ghe-2.16/operations/users/list-public-keys.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your public keys",
- "description": "Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/enterprise/2.16/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-list-public-keys",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/keys/#list-your-public-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/list.json b/openapi/ghe-2.16/operations/users/list.json
deleted file mode 100644
index 0df4c637b2..0000000000
--- a/openapi/ghe-2.16/operations/users/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Get all users",
- "description": "Lists all users, in the order that they signed up on GitHub Enterprise Server. This list includes personal user accounts and organization accounts.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.16/v3/#link-header) to get the URL for the next page of users.",
- "operationId": "users-list",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/#get-all-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last User that you've seen."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/unfollow.json b/openapi/ghe-2.16/operations/users/unfollow.json
deleted file mode 100644
index 4ffc65cc1d..0000000000
--- a/openapi/ghe-2.16/operations/users/unfollow.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Unfollow a user",
- "description": "Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
- "operationId": "users-unfollow",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/followers/#unfollow-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.16/operations/users/update-authenticated.json b/openapi/ghe-2.16/operations/users/update-authenticated.json
deleted file mode 100644
index 92adc043e1..0000000000
--- a/openapi/ghe-2.16/operations/users/update-authenticated.json
+++ /dev/null
@@ -1,222 +0,0 @@
-{
- "summary": "Update the authenticated user",
- "description": "**Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.",
- "operationId": "users-update-authenticated",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.16/v3/users/#update-the-authenticated-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new name of the user.",
- "type": "string"
- },
- "email": {
- "description": "The publicly visible email address of the user.",
- "type": "string"
- },
- "blog": {
- "description": "The new blog URL of the user.",
- "type": "string"
- },
- "company": {
- "description": "The new company of the user.",
- "type": "string"
- },
- "location": {
- "description": "The new location of the user.",
- "type": "string"
- },
- "hireable": {
- "description": "The new hiring availability of the user.",
- "type": "boolean"
- },
- "bio": {
- "description": "The new short biography of the user.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "hireable": {
- "type": "boolean"
- },
- "bio": {
- "type": "string"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "private_gists": {
- "type": "number"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "two_factor_authentication": {
- "type": "boolean"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- }
- }
- },
- "suspended_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/index.json b/openapi/ghe-2.17/index.json
deleted file mode 100644
index ce89b41803..0000000000
--- a/openapi/ghe-2.17/index.json
+++ /dev/null
@@ -1,2174 +0,0 @@
-{
- "openapi": "3.0.2",
- "info": {
- "version": "3.0.0",
- "title": "GitHub Enterprise REST API v3",
- "description": "This describes the resources that make up the official GitHub Enterprise Server REST API v3. If you have any problems or requests, please contact [GitHub Enterprise Support](https://enterprise.github.com/support).",
- "license": {
- "name": "GitHub Enterprise License Agreement",
- "url": "https://enterprise.github.com/license"
- },
- "termsOfService": "https://help.github.com/en/articles/github-terms-of-service"
- },
- "servers": [
- {
- "url": "http://{hostname}",
- "variables": {
- "hostname": {
- "description": "Self-hosted Enterprise Server or Enterprise Cloud hostname",
- "default": "HOSTNAME"
- }
- }
- }
- ],
- "externalDocs": {
- "description": "GitHub Enterprise Developer Docs",
- "url": "https://developer.github.com/enterprise/2.17/v3/"
- },
- "paths": {
- "/admin/hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-global-hooks.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-global-hook.json"
- }
- },
- "/admin/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-global-hook.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-global-hook.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-global-hook.json"
- }
- },
- "/admin/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/enterprise-admin/ping-global-hook.json"
- }
- },
- "/admin/keys/{key_ids}": {
- "delete": {
- "$ref": "operations/enterprise-admin/delete-public-key.json"
- }
- },
- "/admin/ldap/teams/{team_id}/mapping": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-ldap-mapping-for-team.json"
- }
- },
- "/admin/ldap/teams/{team_id}/sync": {
- "post": {
- "$ref": "operations/enterprise-admin/sync-ldap-mapping-for-team.json"
- }
- },
- "/admin/ldap/users/{username}/mapping": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-ldap-mapping-for-user.json"
- }
- },
- "/admin/ldap/users/{username}/sync": {
- "post": {
- "$ref": "operations/enterprise-admin/sync-ldap-mapping-for-user.json"
- }
- },
- "/admin/organizations": {
- "post": {
- "$ref": "operations/enterprise-admin/create-org.json"
- }
- },
- "/admin/organizations/{org}": {
- "patch": {
- "$ref": "operations/enterprise-admin/rename-org.json"
- }
- },
- "/admin/pre-receive-environments": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-environments.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-pre-receive-environment.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-environment.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-environment.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-pre-receive-environment.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads": {
- "post": {
- "$ref": "operations/enterprise-admin/trigger-pre-receive-environment-download.json"
- }
- },
- "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-environment-download-status.json"
- }
- },
- "/admin/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/create-pre-receive-hook.json"
- }
- },
- "/admin/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook.json"
- }
- },
- "/admin/pre_receive_hooks/{pre_receive_hook_id}": {
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-pre-receive-hook.json"
- }
- },
- "/admin/tokens": {
- "get": {
- "$ref": "operations/enterprise-admin/list-personal-access-tokens.json"
- }
- },
- "/admin/tokens/{token_id}": {
- "delete": {
- "$ref": "operations/enterprise-admin/delete-personal-access-token.json"
- }
- },
- "/admin/users": {
- "post": {
- "$ref": "operations/enterprise-admin/create-user.json"
- }
- },
- "/admin/users/{username}": {
- "patch": {
- "$ref": "operations/enterprise-admin/rename-user.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-user.json"
- }
- },
- "/admin/users/{username}/authorizations": {
- "post": {
- "$ref": "operations/enterprise-admin/create-impersonation-o-auth-token.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/delete-impersonation-o-auth-token.json"
- }
- },
- "/api/v3/app": {
- "get": {
- "$ref": "operations/apps/get-authenticated.json"
- }
- },
- "/app": {
- "get": {
- "$ref": "operations/apps/get-authenticated.json"
- }
- },
- "/app-manifests/{code}/conversions": {
- "post": {
- "$ref": "operations/apps/create-from-manifest.json"
- }
- },
- "/app/installations": {
- "get": {
- "$ref": "operations/apps/list-installations.json"
- }
- },
- "/app/installations/{installation_id}": {
- "get": {
- "$ref": "operations/apps/get-installation.json"
- },
- "delete": {
- "$ref": "operations/apps/delete-installation.json"
- }
- },
- "/app/installations/{installation_id}/access_tokens": {
- "post": {
- "$ref": "operations/apps/create-installation-token.json"
- }
- },
- "/applications/grants": {
- "get": {
- "$ref": "operations/oauth_authorizations/list-grants.json"
- }
- },
- "/applications/grants/{grant_id}": {
- "get": {
- "$ref": "operations/oauth_authorizations/get-grant.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/delete-grant.json"
- }
- },
- "/applications/{client_id}/grants/{access_token}": {
- "delete": {
- "$ref": "operations/oauth_authorizations/revoke-grant-for-application.json"
- }
- },
- "/applications/{client_id}/tokens/{access_token}": {
- "get": {
- "$ref": "operations/oauth_authorizations/check-authorization.json"
- },
- "post": {
- "$ref": "operations/oauth_authorizations/reset-authorization.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/revoke-authorization-for-application.json"
- }
- },
- "/apps/{app_slug}": {
- "get": {
- "$ref": "operations/apps/get-by-slug.json"
- }
- },
- "/authorizations": {
- "get": {
- "$ref": "operations/oauth_authorizations/list-authorizations.json"
- },
- "post": {
- "$ref": "operations/oauth_authorizations/create-authorization.json"
- }
- },
- "/authorizations/clients/{client_id}": {
- "put": {
- "$ref": "operations/oauth_authorizations/get-or-create-authorization-for-app.json"
- }
- },
- "/authorizations/clients/{client_id}/{fingerprint}": {
- "put": {
- "$ref": "operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json"
- }
- },
- "/authorizations/{authorization_id}": {
- "get": {
- "$ref": "operations/oauth_authorizations/get-authorization.json"
- },
- "patch": {
- "$ref": "operations/oauth_authorizations/update-authorization.json"
- },
- "delete": {
- "$ref": "operations/oauth_authorizations/delete-authorization.json"
- }
- },
- "/codes_of_conduct": {
- "get": {
- "$ref": "operations/codes_of_conduct/list-conduct-codes.json"
- }
- },
- "/codes_of_conduct/{key}": {
- "get": {
- "$ref": "operations/codes_of_conduct/get-conduct-code.json"
- }
- },
- "/content_references/{content_reference_id}/attachments": {
- "post": {
- "$ref": "operations/apps/create-content-attachment.json"
- }
- },
- "/emojis": {
- "get": {
- "$ref": "operations/emojis/get.json"
- }
- },
- "/enterprise/settings/license": {
- "get": {
- "$ref": "operations/enterprise-admin/get-license-information.json"
- }
- },
- "/enterprise/stats/{type}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-type-stats.json"
- }
- },
- "/events": {
- "get": {
- "$ref": "operations/activity/list-public-events.json"
- }
- },
- "/feeds": {
- "get": {
- "$ref": "operations/activity/list-feeds.json"
- }
- },
- "/gists": {
- "get": {
- "$ref": "operations/gists/list.json"
- },
- "post": {
- "$ref": "operations/gists/create.json"
- }
- },
- "/gists/public": {
- "get": {
- "$ref": "operations/gists/list-public.json"
- }
- },
- "/gists/starred": {
- "get": {
- "$ref": "operations/gists/list-starred.json"
- }
- },
- "/gists/{gist_id}": {
- "get": {
- "$ref": "operations/gists/get.json"
- },
- "patch": {
- "$ref": "operations/gists/update.json"
- },
- "delete": {
- "$ref": "operations/gists/delete.json"
- }
- },
- "/gists/{gist_id}/comments": {
- "get": {
- "$ref": "operations/gists/list-comments.json"
- },
- "post": {
- "$ref": "operations/gists/create-comment.json"
- }
- },
- "/gists/{gist_id}/comments/{comment_id}": {
- "get": {
- "$ref": "operations/gists/get-comment.json"
- },
- "patch": {
- "$ref": "operations/gists/update-comment.json"
- },
- "delete": {
- "$ref": "operations/gists/delete-comment.json"
- }
- },
- "/gists/{gist_id}/commits": {
- "get": {
- "$ref": "operations/gists/list-commits.json"
- }
- },
- "/gists/{gist_id}/forks": {
- "post": {
- "$ref": "operations/gists/fork.json"
- },
- "get": {
- "$ref": "operations/gists/list-forks.json"
- }
- },
- "/gists/{gist_id}/star": {
- "put": {
- "$ref": "operations/gists/star.json"
- },
- "delete": {
- "$ref": "operations/gists/unstar.json"
- },
- "get": {
- "$ref": "operations/gists/check-is-starred.json"
- }
- },
- "/gists/{gist_id}/{sha}": {
- "get": {
- "$ref": "operations/gists/get-revision.json"
- }
- },
- "/gitignore/templates": {
- "get": {
- "$ref": "operations/gitignore/list-templates.json"
- }
- },
- "/gitignore/templates/{name}": {
- "get": {
- "$ref": "operations/gitignore/get-template.json"
- }
- },
- "/installation/repositories": {
- "get": {
- "$ref": "operations/apps/list-repos.json"
- }
- },
- "/issues": {
- "get": {
- "$ref": "operations/issues/list.json"
- }
- },
- "/legacy/issues/search/{owner}/{repository}/{state}/{keyword}": {
- "get": {
- "$ref": "operations/search/issues-legacy.json"
- }
- },
- "/legacy/repos/search/{keyword}": {
- "get": {
- "$ref": "operations/search/repos-legacy.json"
- }
- },
- "/legacy/user/email/{email}": {
- "get": {
- "$ref": "operations/search/email-legacy.json"
- }
- },
- "/legacy/user/search/{keyword}": {
- "get": {
- "$ref": "operations/search/users-legacy.json"
- }
- },
- "/licenses": {
- "get": {
- "$ref": "operations/licenses/list-commonly-used.json"
- }
- },
- "/licenses/{license}": {
- "get": {
- "$ref": "operations/licenses/get.json"
- }
- },
- "/markdown": {
- "post": {
- "$ref": "operations/markdown/render.json"
- }
- },
- "/markdown/raw": {
- "post": {
- "$ref": "operations/markdown/render-raw.json"
- }
- },
- "/meta": {
- "get": {
- "$ref": "operations/meta/get.json"
- }
- },
- "/networks/{owner}/{repo}/events": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-repo-network.json"
- }
- },
- "/notifications": {
- "get": {
- "$ref": "operations/activity/list-notifications.json"
- },
- "put": {
- "$ref": "operations/activity/mark-as-read.json"
- }
- },
- "/notifications/threads/{thread_id}": {
- "get": {
- "$ref": "operations/activity/get-thread.json"
- },
- "patch": {
- "$ref": "operations/activity/mark-thread-as-read.json"
- }
- },
- "/notifications/threads/{thread_id}/subscription": {
- "get": {
- "$ref": "operations/activity/get-thread-subscription.json"
- },
- "put": {
- "$ref": "operations/activity/set-thread-subscription.json"
- },
- "delete": {
- "$ref": "operations/activity/delete-thread-subscription.json"
- }
- },
- "/organizations": {
- "get": {
- "$ref": "operations/orgs/list.json"
- }
- },
- "/orgs/{org}": {
- "get": {
- "$ref": "operations/orgs/get.json"
- },
- "patch": {
- "$ref": "operations/orgs/update.json"
- }
- },
- "/orgs/{org}/events": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-org.json"
- }
- },
- "/orgs/{org}/hooks": {
- "get": {
- "$ref": "operations/orgs/list-hooks.json"
- },
- "post": {
- "$ref": "operations/orgs/create-hook.json"
- }
- },
- "/orgs/{org}/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/orgs/get-hook.json"
- },
- "patch": {
- "$ref": "operations/orgs/update-hook.json"
- },
- "delete": {
- "$ref": "operations/orgs/delete-hook.json"
- }
- },
- "/orgs/{org}/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/orgs/ping-hook.json"
- }
- },
- "/orgs/{org}/installation": {
- "get": {
- "$ref": "operations/apps/get-org-installation.json"
- }
- },
- "/orgs/{org}/issues": {
- "get": {
- "$ref": "operations/issues/list-for-org.json"
- }
- },
- "/orgs/{org}/members": {
- "get": {
- "$ref": "operations/orgs/list-members.json"
- }
- },
- "/orgs/{org}/members/{username}": {
- "get": {
- "$ref": "operations/orgs/check-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/remove-member.json"
- }
- },
- "/orgs/{org}/memberships/{username}": {
- "get": {
- "$ref": "operations/orgs/get-membership.json"
- },
- "put": {
- "$ref": "operations/orgs/add-or-update-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/remove-membership.json"
- }
- },
- "/orgs/{org}/outside_collaborators": {
- "get": {
- "$ref": "operations/orgs/list-outside-collaborators.json"
- }
- },
- "/orgs/{org}/outside_collaborators/{username}": {
- "delete": {
- "$ref": "operations/orgs/remove-outside-collaborator.json"
- },
- "put": {
- "$ref": "operations/orgs/convert-member-to-outside-collaborator.json"
- }
- },
- "/orgs/{org}/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks-for-org.json"
- }
- },
- "/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook-for-org.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json"
- }
- },
- "/orgs/{org}/projects": {
- "get": {
- "$ref": "operations/projects/list-for-org.json"
- },
- "post": {
- "$ref": "operations/projects/create-for-org.json"
- }
- },
- "/orgs/{org}/public_members": {
- "get": {
- "$ref": "operations/orgs/list-public-members.json"
- }
- },
- "/orgs/{org}/public_members/{username}": {
- "get": {
- "$ref": "operations/orgs/check-public-membership.json"
- },
- "put": {
- "$ref": "operations/orgs/publicize-membership.json"
- },
- "delete": {
- "$ref": "operations/orgs/conceal-membership.json"
- }
- },
- "/orgs/{org}/repos": {
- "get": {
- "$ref": "operations/repos/list-for-org.json"
- },
- "post": {
- "$ref": "operations/repos/create-in-org.json"
- }
- },
- "/orgs/{org}/teams": {
- "get": {
- "$ref": "operations/teams/list.json"
- },
- "post": {
- "$ref": "operations/teams/create.json"
- }
- },
- "/orgs/{org}/teams/{team_slug}": {
- "get": {
- "$ref": "operations/teams/get-by-name.json"
- }
- },
- "/projects/columns/cards/{card_id}": {
- "get": {
- "$ref": "operations/projects/get-card.json"
- },
- "patch": {
- "$ref": "operations/projects/update-card.json"
- },
- "delete": {
- "$ref": "operations/projects/delete-card.json"
- }
- },
- "/projects/columns/cards/{card_id}/moves": {
- "post": {
- "$ref": "operations/projects/move-card.json"
- }
- },
- "/projects/columns/{column_id}": {
- "get": {
- "$ref": "operations/projects/get-column.json"
- },
- "patch": {
- "$ref": "operations/projects/update-column.json"
- },
- "delete": {
- "$ref": "operations/projects/delete-column.json"
- }
- },
- "/projects/columns/{column_id}/cards": {
- "get": {
- "$ref": "operations/projects/list-cards.json"
- },
- "post": {
- "$ref": "operations/projects/create-card.json"
- }
- },
- "/projects/columns/{column_id}/moves": {
- "post": {
- "$ref": "operations/projects/move-column.json"
- }
- },
- "/projects/{project_id}": {
- "get": {
- "$ref": "operations/projects/get.json"
- },
- "patch": {
- "$ref": "operations/projects/update.json"
- },
- "delete": {
- "$ref": "operations/projects/delete.json"
- }
- },
- "/projects/{project_id}/collaborators": {
- "get": {
- "$ref": "operations/projects/list-collaborators.json"
- }
- },
- "/projects/{project_id}/collaborators/{username}": {
- "put": {
- "$ref": "operations/projects/add-collaborator.json"
- },
- "delete": {
- "$ref": "operations/projects/remove-collaborator.json"
- }
- },
- "/projects/{project_id}/collaborators/{username}/permission": {
- "get": {
- "$ref": "operations/projects/review-user-permission-level.json"
- }
- },
- "/projects/{project_id}/columns": {
- "get": {
- "$ref": "operations/projects/list-columns.json"
- },
- "post": {
- "$ref": "operations/projects/create-column.json"
- }
- },
- "/rate_limit": {
- "get": {
- "$ref": "operations/rate_limit/get.json"
- }
- },
- "/reactions/{reaction_id}": {
- "delete": {
- "$ref": "operations/reactions/delete.json"
- }
- },
- "/repos/{owner}/{repo}": {
- "get": {
- "$ref": "operations/repos/get.json"
- },
- "patch": {
- "$ref": "operations/repos/update.json"
- },
- "delete": {
- "$ref": "operations/repos/delete.json"
- }
- },
- "/repos/{owner}/{repo}/assignees": {
- "get": {
- "$ref": "operations/issues/list-assignees.json"
- }
- },
- "/repos/{owner}/{repo}/assignees/{assignee}": {
- "get": {
- "$ref": "operations/issues/check-assignee.json"
- }
- },
- "/repos/{owner}/{repo}/branches": {
- "get": {
- "$ref": "operations/repos/list-branches.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}": {
- "get": {
- "$ref": "operations/repos/get-branch.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection": {
- "get": {
- "$ref": "operations/repos/get-branch-protection.json"
- },
- "put": {
- "$ref": "operations/repos/update-branch-protection.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-branch-protection.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-admin-enforcement.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-admin-enforcement.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-admin-enforcement.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-pull-request-review-enforcement.json"
- },
- "patch": {
- "$ref": "operations/repos/update-protected-branch-pull-request-review-enforcement.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-pull-request-review-enforcement.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-required-signatures.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-required-signatures.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-signatures.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-required-status-checks.json"
- },
- "patch": {
- "$ref": "operations/repos/update-protected-branch-required-status-checks.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-status-checks.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-required-status-checks-contexts.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-required-status-checks-contexts.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-required-status-checks-contexts.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-required-status-checks-contexts.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions": {
- "get": {
- "$ref": "operations/repos/get-protected-branch-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-team-restrictions.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-team-restrictions.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-team-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-team-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": {
- "get": {
- "$ref": "operations/repos/list-protected-branch-user-restrictions.json"
- },
- "put": {
- "$ref": "operations/repos/replace-protected-branch-user-restrictions.json"
- },
- "post": {
- "$ref": "operations/repos/add-protected-branch-user-restrictions.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-protected-branch-user-restrictions.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs": {
- "post": {
- "$ref": "operations/checks/create.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs/{check_run_id}": {
- "patch": {
- "$ref": "operations/checks/update.json"
- },
- "get": {
- "$ref": "operations/checks/get.json"
- }
- },
- "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": {
- "get": {
- "$ref": "operations/checks/list-annotations.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites": {
- "post": {
- "$ref": "operations/checks/create-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/preferences": {
- "patch": {
- "$ref": "operations/checks/set-suites-preferences.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}": {
- "get": {
- "$ref": "operations/checks/get-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": {
- "get": {
- "$ref": "operations/checks/list-for-suite.json"
- }
- },
- "/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": {
- "post": {
- "$ref": "operations/checks/rerequest-suite.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators": {
- "get": {
- "$ref": "operations/repos/list-collaborators.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators/{username}": {
- "get": {
- "$ref": "operations/repos/check-collaborator.json"
- },
- "put": {
- "$ref": "operations/repos/add-collaborator.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-collaborator.json"
- }
- },
- "/repos/{owner}/{repo}/collaborators/{username}/permission": {
- "get": {
- "$ref": "operations/repos/get-collaborator-permission-level.json"
- }
- },
- "/repos/{owner}/{repo}/comments": {
- "get": {
- "$ref": "operations/repos/list-commit-comments.json"
- }
- },
- "/repos/{owner}/{repo}/comments/{comment_id}": {
- "get": {
- "$ref": "operations/repos/get-commit-comment.json"
- },
- "patch": {
- "$ref": "operations/repos/update-commit-comment.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-commit-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/commits": {
- "get": {
- "$ref": "operations/repos/list-commits.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": {
- "get": {
- "$ref": "operations/repos/list-branches-for-head-commit.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{commit_sha}/comments": {
- "get": {
- "$ref": "operations/repos/list-comments-for-commit.json"
- },
- "post": {
- "$ref": "operations/repos/create-commit-comment.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{commit_sha}/pulls": {
- "get": {
- "$ref": "operations/repos/list-pull-requests-associated-with-commit.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}": {
- "get": {
- "$ref": "operations/repos/get-commit.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/check-runs": {
- "get": {
- "$ref": "operations/checks/list-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/check-suites": {
- "get": {
- "$ref": "operations/checks/list-suites-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/status": {
- "get": {
- "$ref": "operations/repos/get-combined-status-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/commits/{ref}/statuses": {
- "get": {
- "$ref": "operations/repos/list-statuses-for-ref.json"
- }
- },
- "/repos/{owner}/{repo}/community/code_of_conduct": {
- "get": {
- "$ref": "operations/codes_of_conduct/get-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/compare/{base}...{head}": {
- "get": {
- "$ref": "operations/repos/compare-commits.json"
- }
- },
- "/repos/{owner}/{repo}/contents/{path}": {
- "get": {
- "$ref": "operations/repos/get-contents.json"
- },
- "put": {
- "$ref": "operations/repos/create-or-update-file.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-file.json"
- }
- },
- "/repos/{owner}/{repo}/contributors": {
- "get": {
- "$ref": "operations/repos/list-contributors.json"
- }
- },
- "/repos/{owner}/{repo}/deployments": {
- "get": {
- "$ref": "operations/repos/list-deployments.json"
- },
- "post": {
- "$ref": "operations/repos/create-deployment.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}": {
- "get": {
- "$ref": "operations/repos/get-deployment.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses": {
- "get": {
- "$ref": "operations/repos/list-deployment-statuses.json"
- },
- "post": {
- "$ref": "operations/repos/create-deployment-status.json"
- }
- },
- "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": {
- "get": {
- "$ref": "operations/repos/get-deployment-status.json"
- }
- },
- "/repos/{owner}/{repo}/downloads": {
- "get": {
- "$ref": "operations/repos/list-downloads.json"
- }
- },
- "/repos/{owner}/{repo}/downloads/{download_id}": {
- "get": {
- "$ref": "operations/repos/get-download.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-download.json"
- }
- },
- "/repos/{owner}/{repo}/events": {
- "get": {
- "$ref": "operations/activity/list-repo-events.json"
- }
- },
- "/repos/{owner}/{repo}/forks": {
- "get": {
- "$ref": "operations/repos/list-forks.json"
- },
- "post": {
- "$ref": "operations/repos/create-fork.json"
- }
- },
- "/repos/{owner}/{repo}/git/blobs": {
- "post": {
- "$ref": "operations/git/create-blob.json"
- }
- },
- "/repos/{owner}/{repo}/git/blobs/{file_sha}": {
- "get": {
- "$ref": "operations/git/get-blob.json"
- }
- },
- "/repos/{owner}/{repo}/git/commits": {
- "post": {
- "$ref": "operations/git/create-commit.json"
- }
- },
- "/repos/{owner}/{repo}/git/commits/{commit_sha}": {
- "get": {
- "$ref": "operations/git/get-commit.json"
- }
- },
- "/repos/{owner}/{repo}/git/refs": {
- "post": {
- "$ref": "operations/git/create-ref.json"
- }
- },
- "/repos/{owner}/{repo}/git/refs/{ref}": {
- "get": {
- "$ref": "operations/git/get-ref.json"
- },
- "patch": {
- "$ref": "operations/git/update-ref.json"
- },
- "delete": {
- "$ref": "operations/git/delete-ref.json"
- }
- },
- "/repos/{owner}/{repo}/git/tags": {
- "post": {
- "$ref": "operations/git/create-tag.json"
- }
- },
- "/repos/{owner}/{repo}/git/tags/{tag_sha}": {
- "get": {
- "$ref": "operations/git/get-tag.json"
- }
- },
- "/repos/{owner}/{repo}/git/trees": {
- "post": {
- "$ref": "operations/git/create-tree.json"
- }
- },
- "/repos/{owner}/{repo}/git/trees/{tree_sha}": {
- "get": {
- "$ref": "operations/git/get-tree.json"
- }
- },
- "/repos/{owner}/{repo}/hooks": {
- "get": {
- "$ref": "operations/repos/list-hooks.json"
- },
- "post": {
- "$ref": "operations/repos/create-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}": {
- "get": {
- "$ref": "operations/repos/get-hook.json"
- },
- "patch": {
- "$ref": "operations/repos/update-hook.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}/pings": {
- "post": {
- "$ref": "operations/repos/ping-hook.json"
- }
- },
- "/repos/{owner}/{repo}/hooks/{hook_id}/tests": {
- "post": {
- "$ref": "operations/repos/test-push-hook.json"
- }
- },
- "/repos/{owner}/{repo}/installation": {
- "get": {
- "$ref": "operations/apps/get-repo-installation.json"
- }
- },
- "/repos/{owner}/{repo}/invitations": {
- "get": {
- "$ref": "operations/repos/list-invitations.json"
- }
- },
- "/repos/{owner}/{repo}/invitations/{invitation_id}": {
- "delete": {
- "$ref": "operations/repos/delete-invitation.json"
- },
- "patch": {
- "$ref": "operations/repos/update-invitation.json"
- }
- },
- "/repos/{owner}/{repo}/issues": {
- "get": {
- "$ref": "operations/issues/list-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments": {
- "get": {
- "$ref": "operations/issues/list-comments-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{comment_id}": {
- "get": {
- "$ref": "operations/issues/get-comment.json"
- },
- "patch": {
- "$ref": "operations/issues/update-comment.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-issue-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-issue-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/events": {
- "get": {
- "$ref": "operations/issues/list-events-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/issues/events/{event_id}": {
- "get": {
- "$ref": "operations/issues/get-event.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}": {
- "get": {
- "$ref": "operations/issues/get.json"
- },
- "patch": {
- "$ref": "operations/issues/update.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/assignees": {
- "post": {
- "$ref": "operations/issues/add-assignees.json"
- },
- "delete": {
- "$ref": "operations/issues/remove-assignees.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/comments": {
- "get": {
- "$ref": "operations/issues/list-comments.json"
- },
- "post": {
- "$ref": "operations/issues/create-comment.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/events": {
- "get": {
- "$ref": "operations/issues/list-events.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-on-issue.json"
- },
- "post": {
- "$ref": "operations/issues/add-labels.json"
- },
- "put": {
- "$ref": "operations/issues/replace-labels.json"
- },
- "delete": {
- "$ref": "operations/issues/remove-labels.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": {
- "delete": {
- "$ref": "operations/issues/remove-label.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/lock": {
- "put": {
- "$ref": "operations/issues/lock.json"
- },
- "delete": {
- "$ref": "operations/issues/unlock.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-issue.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-issue.json"
- }
- },
- "/repos/{owner}/{repo}/issues/{issue_number}/timeline": {
- "get": {
- "$ref": "operations/issues/list-events-for-timeline.json"
- }
- },
- "/repos/{owner}/{repo}/keys": {
- "get": {
- "$ref": "operations/repos/list-deploy-keys.json"
- },
- "post": {
- "$ref": "operations/repos/add-deploy-key.json"
- }
- },
- "/repos/{owner}/{repo}/keys/{key_id}": {
- "get": {
- "$ref": "operations/repos/get-deploy-key.json"
- },
- "delete": {
- "$ref": "operations/repos/remove-deploy-key.json"
- }
- },
- "/repos/{owner}/{repo}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create-label.json"
- }
- },
- "/repos/{owner}/{repo}/labels/{name}": {
- "get": {
- "$ref": "operations/issues/get-label.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-label.json"
- }
- },
- "/repos/{owner}/{repo}/languages": {
- "get": {
- "$ref": "operations/repos/list-languages.json"
- }
- },
- "/repos/{owner}/{repo}/license": {
- "get": {
- "$ref": "operations/licenses/get-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/merges": {
- "post": {
- "$ref": "operations/repos/merge.json"
- }
- },
- "/repos/{owner}/{repo}/milestones": {
- "get": {
- "$ref": "operations/issues/list-milestones-for-repo.json"
- },
- "post": {
- "$ref": "operations/issues/create-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/milestones/{milestone_number}": {
- "get": {
- "$ref": "operations/issues/get-milestone.json"
- },
- "patch": {
- "$ref": "operations/issues/update-milestone.json"
- },
- "delete": {
- "$ref": "operations/issues/delete-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/milestones/{milestone_number}/labels": {
- "get": {
- "$ref": "operations/issues/list-labels-for-milestone.json"
- }
- },
- "/repos/{owner}/{repo}/notifications": {
- "get": {
- "$ref": "operations/activity/list-notifications-for-repo.json"
- },
- "put": {
- "$ref": "operations/activity/mark-notifications-as-read-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pages": {
- "get": {
- "$ref": "operations/repos/get-pages.json"
- },
- "post": {
- "$ref": "operations/repos/enable-pages-site.json"
- },
- "delete": {
- "$ref": "operations/repos/disable-pages-site.json"
- },
- "put": {
- "$ref": "operations/repos/update-information-about-pages-site.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds": {
- "post": {
- "$ref": "operations/repos/request-page-build.json"
- },
- "get": {
- "$ref": "operations/repos/list-pages-builds.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds/latest": {
- "get": {
- "$ref": "operations/repos/get-latest-pages-build.json"
- }
- },
- "/repos/{owner}/{repo}/pages/builds/{build_id}": {
- "get": {
- "$ref": "operations/repos/get-pages-build.json"
- }
- },
- "/repos/{owner}/{repo}/pre-receive-hooks": {
- "get": {
- "$ref": "operations/enterprise-admin/list-pre-receive-hooks-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}": {
- "get": {
- "$ref": "operations/enterprise-admin/get-pre-receive-hook-for-repo.json"
- },
- "patch": {
- "$ref": "operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/projects": {
- "get": {
- "$ref": "operations/projects/list-for-repo.json"
- },
- "post": {
- "$ref": "operations/projects/create-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pulls": {
- "get": {
- "$ref": "operations/pulls/list.json"
- },
- "post": {
- "$ref": "operations/pulls/create-from-issue.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments": {
- "get": {
- "$ref": "operations/pulls/list-comments-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments/{comment_id}": {
- "get": {
- "$ref": "operations/pulls/get-comment.json"
- },
- "patch": {
- "$ref": "operations/pulls/update-comment.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-comment.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-pull-request-review-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-pull-request-review-comment.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}": {
- "get": {
- "$ref": "operations/pulls/get.json"
- },
- "patch": {
- "$ref": "operations/pulls/update.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/comments": {
- "get": {
- "$ref": "operations/pulls/list-comments.json"
- },
- "post": {
- "$ref": "operations/pulls/create-comment-reply.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/commits": {
- "get": {
- "$ref": "operations/pulls/list-commits.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/files": {
- "get": {
- "$ref": "operations/pulls/list-files.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/merge": {
- "get": {
- "$ref": "operations/pulls/check-if-merged.json"
- },
- "put": {
- "$ref": "operations/pulls/merge.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
- "get": {
- "$ref": "operations/pulls/list-review-requests.json"
- },
- "post": {
- "$ref": "operations/pulls/create-review-request.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-review-request.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews": {
- "get": {
- "$ref": "operations/pulls/list-reviews.json"
- },
- "post": {
- "$ref": "operations/pulls/create-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": {
- "get": {
- "$ref": "operations/pulls/get-review.json"
- },
- "delete": {
- "$ref": "operations/pulls/delete-pending-review.json"
- },
- "put": {
- "$ref": "operations/pulls/update-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": {
- "get": {
- "$ref": "operations/pulls/get-comments-for-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": {
- "put": {
- "$ref": "operations/pulls/dismiss-review.json"
- }
- },
- "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": {
- "post": {
- "$ref": "operations/pulls/submit-review.json"
- }
- },
- "/repos/{owner}/{repo}/readme": {
- "get": {
- "$ref": "operations/repos/get-readme.json"
- }
- },
- "/repos/{owner}/{repo}/releases": {
- "get": {
- "$ref": "operations/repos/list-releases.json"
- },
- "post": {
- "$ref": "operations/repos/create-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/assets/{asset_id}": {
- "get": {
- "$ref": "operations/repos/get-release-asset.json"
- },
- "patch": {
- "$ref": "operations/repos/update-release-asset.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-release-asset.json"
- }
- },
- "/repos/{owner}/{repo}/releases/latest": {
- "get": {
- "$ref": "operations/repos/get-latest-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/tags/{tag}": {
- "get": {
- "$ref": "operations/repos/get-release-by-tag.json"
- }
- },
- "/repos/{owner}/{repo}/releases/{release_id}": {
- "get": {
- "$ref": "operations/repos/get-release.json"
- },
- "patch": {
- "$ref": "operations/repos/update-release.json"
- },
- "delete": {
- "$ref": "operations/repos/delete-release.json"
- }
- },
- "/repos/{owner}/{repo}/releases/{release_id}/assets": {
- "get": {
- "$ref": "operations/repos/list-assets-for-release.json"
- }
- },
- "/repos/{owner}/{repo}/stargazers": {
- "get": {
- "$ref": "operations/activity/list-stargazers-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/stats/code_frequency": {
- "get": {
- "$ref": "operations/repos/get-code-frequency-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/commit_activity": {
- "get": {
- "$ref": "operations/repos/get-commit-activity-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/contributors": {
- "get": {
- "$ref": "operations/repos/get-contributors-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/participation": {
- "get": {
- "$ref": "operations/repos/get-participation-stats.json"
- }
- },
- "/repos/{owner}/{repo}/stats/punch_card": {
- "get": {
- "$ref": "operations/repos/get-punch-card-stats.json"
- }
- },
- "/repos/{owner}/{repo}/statuses/{sha}": {
- "post": {
- "$ref": "operations/repos/create-status.json"
- }
- },
- "/repos/{owner}/{repo}/subscribers": {
- "get": {
- "$ref": "operations/activity/list-watchers-for-repo.json"
- }
- },
- "/repos/{owner}/{repo}/subscription": {
- "get": {
- "$ref": "operations/activity/get-repo-subscription.json"
- },
- "put": {
- "$ref": "operations/activity/set-repo-subscription.json"
- },
- "delete": {
- "$ref": "operations/activity/delete-repo-subscription.json"
- }
- },
- "/repos/{owner}/{repo}/tags": {
- "get": {
- "$ref": "operations/repos/list-tags.json"
- }
- },
- "/repos/{owner}/{repo}/teams": {
- "get": {
- "$ref": "operations/repos/list-teams.json"
- }
- },
- "/repos/{owner}/{repo}/topics": {
- "get": {
- "$ref": "operations/repos/list-topics.json"
- },
- "put": {
- "$ref": "operations/repos/replace-topics.json"
- }
- },
- "/repos/{owner}/{repo}/transfer": {
- "post": {
- "$ref": "operations/repos/transfer.json"
- }
- },
- "/repos/{owner}/{repo}/{archive_format}/{ref}": {
- "get": {
- "$ref": "operations/repos/get-archive-link.json"
- }
- },
- "/repositories": {
- "get": {
- "$ref": "operations/repos/list-public.json"
- }
- },
- "/search/code": {
- "get": {
- "$ref": "operations/search/code.json"
- }
- },
- "/search/commits": {
- "get": {
- "$ref": "operations/search/commits.json"
- }
- },
- "/search/issues": {
- "get": {
- "$ref": "operations/search/issues-and-pull-requests.json"
- }
- },
- "/search/labels": {
- "get": {
- "$ref": "operations/search/labels.json"
- }
- },
- "/search/repositories": {
- "get": {
- "$ref": "operations/search/repos.json"
- }
- },
- "/search/topics": {
- "get": {
- "$ref": "operations/search/topics.json"
- }
- },
- "/search/users": {
- "get": {
- "$ref": "operations/search/users.json"
- }
- },
- "/setup/api/configcheck": {
- "get": {
- "$ref": "operations/enterprise-admin/check-configuration-status.json"
- }
- },
- "/setup/api/configure": {
- "post": {
- "$ref": "operations/enterprise-admin/start-configuration-process.json"
- }
- },
- "/setup/api/maintenance": {
- "get": {
- "$ref": "operations/enterprise-admin/check-maintenance-status.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/enable-or-disable-maintenance-mode.json"
- }
- },
- "/setup/api/settings": {
- "get": {
- "$ref": "operations/enterprise-admin/retrieve-settings.json"
- },
- "put": {
- "$ref": "operations/enterprise-admin/modify-settings.json"
- }
- },
- "/setup/api/settings/authorized-keys": {
- "get": {
- "$ref": "operations/enterprise-admin/retrieve-authorized-ssh-keys.json"
- },
- "post": {
- "$ref": "operations/enterprise-admin/add-authorized-ssh-key.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/remove-authorized-ssh-key.json"
- }
- },
- "/setup/api/start": {
- "post": {
- "$ref": "operations/enterprise-admin/upload-license-for-first-time.json"
- }
- },
- "/setup/api/upgrade": {
- "post": {
- "$ref": "operations/enterprise-admin/upgrade-license.json"
- }
- },
- "/staff/indexing_jobs": {
- "post": {
- "$ref": "operations/enterprise-admin/queue-indexing-job.json"
- }
- },
- "/teams/{team_id}": {
- "get": {
- "$ref": "operations/teams/get.json"
- },
- "patch": {
- "$ref": "operations/teams/update.json"
- },
- "delete": {
- "$ref": "operations/teams/delete.json"
- }
- },
- "/teams/{team_id}/discussions": {
- "get": {
- "$ref": "operations/teams/list-discussions.json"
- },
- "post": {
- "$ref": "operations/teams/create-discussion.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}": {
- "get": {
- "$ref": "operations/teams/get-discussion.json"
- },
- "patch": {
- "$ref": "operations/teams/update-discussion.json"
- },
- "delete": {
- "$ref": "operations/teams/delete-discussion.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments": {
- "get": {
- "$ref": "operations/teams/list-discussion-comments.json"
- },
- "post": {
- "$ref": "operations/teams/create-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": {
- "get": {
- "$ref": "operations/teams/get-discussion-comment.json"
- },
- "patch": {
- "$ref": "operations/teams/update-discussion-comment.json"
- },
- "delete": {
- "$ref": "operations/teams/delete-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-team-discussion-comment.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-team-discussion-comment.json"
- }
- },
- "/teams/{team_id}/discussions/{discussion_number}/reactions": {
- "get": {
- "$ref": "operations/reactions/list-for-team-discussion.json"
- },
- "post": {
- "$ref": "operations/reactions/create-for-team-discussion.json"
- }
- },
- "/teams/{team_id}/members": {
- "get": {
- "$ref": "operations/teams/list-members.json"
- }
- },
- "/teams/{team_id}/members/{username}": {
- "get": {
- "$ref": "operations/teams/get-member.json"
- },
- "put": {
- "$ref": "operations/teams/add-member.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-member.json"
- }
- },
- "/teams/{team_id}/memberships/{username}": {
- "get": {
- "$ref": "operations/teams/get-membership.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-membership.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-membership.json"
- }
- },
- "/teams/{team_id}/projects": {
- "get": {
- "$ref": "operations/teams/list-projects.json"
- }
- },
- "/teams/{team_id}/projects/{project_id}": {
- "get": {
- "$ref": "operations/teams/review-project.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-project.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-project.json"
- }
- },
- "/teams/{team_id}/repos": {
- "get": {
- "$ref": "operations/teams/list-repos.json"
- }
- },
- "/teams/{team_id}/repos/{owner}/{repo}": {
- "get": {
- "$ref": "operations/teams/check-manages-repo.json"
- },
- "put": {
- "$ref": "operations/teams/add-or-update-repo.json"
- },
- "delete": {
- "$ref": "operations/teams/remove-repo.json"
- }
- },
- "/teams/{team_id}/teams": {
- "get": {
- "$ref": "operations/teams/list-child.json"
- }
- },
- "/user": {
- "get": {
- "$ref": "operations/users/get-authenticated.json"
- },
- "patch": {
- "$ref": "operations/users/update-authenticated.json"
- }
- },
- "/user/emails": {
- "get": {
- "$ref": "operations/users/list-emails.json"
- },
- "post": {
- "$ref": "operations/users/add-emails.json"
- },
- "delete": {
- "$ref": "operations/users/delete-emails.json"
- }
- },
- "/user/followers": {
- "get": {
- "$ref": "operations/users/list-followers-for-authenticated-user.json"
- }
- },
- "/user/following": {
- "get": {
- "$ref": "operations/users/list-following-for-authenticated-user.json"
- }
- },
- "/user/following/{username}": {
- "get": {
- "$ref": "operations/users/check-following.json"
- },
- "put": {
- "$ref": "operations/users/follow.json"
- },
- "delete": {
- "$ref": "operations/users/unfollow.json"
- }
- },
- "/user/gpg_keys": {
- "get": {
- "$ref": "operations/users/list-gpg-keys.json"
- },
- "post": {
- "$ref": "operations/users/create-gpg-key.json"
- }
- },
- "/user/gpg_keys/{gpg_key_id}": {
- "get": {
- "$ref": "operations/users/get-gpg-key.json"
- },
- "delete": {
- "$ref": "operations/users/delete-gpg-key.json"
- }
- },
- "/user/installations": {
- "get": {
- "$ref": "operations/apps/list-installations-for-authenticated-user.json"
- }
- },
- "/user/installations/{installation_id}/repositories": {
- "get": {
- "$ref": "operations/apps/list-installation-repos-for-authenticated-user.json"
- }
- },
- "/user/installations/{installation_id}/repositories/{repository_id}": {
- "put": {
- "$ref": "operations/apps/add-repo-to-installation.json"
- },
- "delete": {
- "$ref": "operations/apps/remove-repo-from-installation.json"
- }
- },
- "/user/issues": {
- "get": {
- "$ref": "operations/issues/list-for-authenticated-user.json"
- }
- },
- "/user/keys": {
- "get": {
- "$ref": "operations/users/list-public-keys.json"
- },
- "post": {
- "$ref": "operations/users/create-public-key.json"
- }
- },
- "/user/keys/{key_id}": {
- "get": {
- "$ref": "operations/users/get-public-key.json"
- },
- "delete": {
- "$ref": "operations/users/delete-public-key.json"
- }
- },
- "/user/memberships/orgs": {
- "get": {
- "$ref": "operations/orgs/list-memberships.json"
- }
- },
- "/user/memberships/orgs/{org}": {
- "get": {
- "$ref": "operations/orgs/get-membership-for-authenticated-user.json"
- },
- "patch": {
- "$ref": "operations/orgs/update-membership.json"
- }
- },
- "/user/orgs": {
- "get": {
- "$ref": "operations/orgs/list-for-authenticated-user.json"
- }
- },
- "/user/projects": {
- "post": {
- "$ref": "operations/projects/create-for-authenticated-user.json"
- }
- },
- "/user/public_emails": {
- "get": {
- "$ref": "operations/users/list-public-emails.json"
- }
- },
- "/user/repos": {
- "get": {
- "$ref": "operations/repos/list.json"
- },
- "post": {
- "$ref": "operations/repos/create-for-authenticated-user.json"
- }
- },
- "/user/repository_invitations": {
- "get": {
- "$ref": "operations/repos/list-invitations-for-authenticated-user.json"
- }
- },
- "/user/repository_invitations/{invitation_id}": {
- "patch": {
- "$ref": "operations/repos/accept-invitation.json"
- },
- "delete": {
- "$ref": "operations/repos/decline-invitation.json"
- }
- },
- "/user/starred": {
- "get": {
- "$ref": "operations/activity/list-repos-starred-by-authenticated-user.json"
- }
- },
- "/user/starred/{owner}/{repo}": {
- "get": {
- "$ref": "operations/activity/check-starring-repo.json"
- },
- "put": {
- "$ref": "operations/activity/star-repo.json"
- },
- "delete": {
- "$ref": "operations/activity/unstar-repo.json"
- }
- },
- "/user/subscriptions": {
- "get": {
- "$ref": "operations/activity/list-watched-repos-for-authenticated-user.json"
- }
- },
- "/user/subscriptions/{owner}/{repo}": {
- "get": {
- "$ref": "operations/activity/check-watching-repo-legacy.json"
- },
- "put": {
- "$ref": "operations/activity/watch-repo-legacy.json"
- },
- "delete": {
- "$ref": "operations/activity/stop-watching-repo-legacy.json"
- }
- },
- "/user/teams": {
- "get": {
- "$ref": "operations/teams/list-for-authenticated-user.json"
- }
- },
- "/users": {
- "get": {
- "$ref": "operations/users/list.json"
- }
- },
- "/users/{username}": {
- "get": {
- "$ref": "operations/users/get-by-username.json"
- }
- },
- "/users/{username}/events": {
- "get": {
- "$ref": "operations/activity/list-events-for-user.json"
- }
- },
- "/users/{username}/events/orgs/{org}": {
- "get": {
- "$ref": "operations/activity/list-events-for-org.json"
- }
- },
- "/users/{username}/events/public": {
- "get": {
- "$ref": "operations/activity/list-public-events-for-user.json"
- }
- },
- "/users/{username}/followers": {
- "get": {
- "$ref": "operations/users/list-followers-for-user.json"
- }
- },
- "/users/{username}/following": {
- "get": {
- "$ref": "operations/users/list-following-for-user.json"
- }
- },
- "/users/{username}/following/{target_user}": {
- "get": {
- "$ref": "operations/users/check-following-for-user.json"
- }
- },
- "/users/{username}/gists": {
- "get": {
- "$ref": "operations/gists/list-public-for-user.json"
- }
- },
- "/users/{username}/gpg_keys": {
- "get": {
- "$ref": "operations/users/list-gpg-keys-for-user.json"
- }
- },
- "/users/{username}/hovercard": {
- "get": {
- "$ref": "operations/users/get-context-for-user.json"
- }
- },
- "/users/{username}/installation": {
- "get": {
- "$ref": "operations/apps/get-user-installation.json"
- }
- },
- "/users/{username}/keys": {
- "get": {
- "$ref": "operations/users/list-public-keys-for-user.json"
- }
- },
- "/users/{username}/orgs": {
- "get": {
- "$ref": "operations/orgs/list-for-user.json"
- }
- },
- "/users/{username}/projects": {
- "get": {
- "$ref": "operations/projects/list-for-user.json"
- }
- },
- "/users/{username}/received_events": {
- "get": {
- "$ref": "operations/activity/list-received-events-for-user.json"
- }
- },
- "/users/{username}/received_events/public": {
- "get": {
- "$ref": "operations/activity/list-received-public-events-for-user.json"
- }
- },
- "/users/{username}/repos": {
- "get": {
- "$ref": "operations/repos/list-for-user.json"
- }
- },
- "/users/{username}/site_admin": {
- "put": {
- "$ref": "operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json"
- }
- },
- "/users/{username}/starred": {
- "get": {
- "$ref": "operations/activity/list-repos-starred-by-user.json"
- }
- },
- "/users/{username}/subscriptions": {
- "get": {
- "$ref": "operations/activity/list-repos-watched-by-user.json"
- }
- },
- "/users/{username}/suspended": {
- "put": {
- "$ref": "operations/enterprise-admin/suspend-user.json"
- },
- "delete": {
- "$ref": "operations/enterprise-admin/unsuspend-user.json"
- }
- }
- }
-}
diff --git a/openapi/ghe-2.17/operations/activity/check-starring-repo.json b/openapi/ghe-2.17/operations/activity/check-starring-repo.json
deleted file mode 100644
index 8104c1b428..0000000000
--- a/openapi/ghe-2.17/operations/activity/check-starring-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if you are starring a repository",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-check-starring-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/starring/#check-if-you-are-starring-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/check-watching-repo-legacy.json b/openapi/ghe-2.17/operations/activity/check-watching-repo-legacy.json
deleted file mode 100644
index 6e789ebfb4..0000000000
--- a/openapi/ghe-2.17/operations/activity/check-watching-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if you are watching a repository (LEGACY)",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-check-watching-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/delete-repo-subscription.json b/openapi/ghe-2.17/operations/activity/delete-repo-subscription.json
deleted file mode 100644
index 71ef6771a0..0000000000
--- a/openapi/ghe-2.17/operations/activity/delete-repo-subscription.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a Repository Subscription",
- "description": "This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://developer.github.com/enterprise/2.17/v3/activity/watching/#set-a-repository-subscription).",
- "operationId": "activity-delete-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/watching/#delete-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/delete-thread-subscription.json b/openapi/ghe-2.17/operations/activity/delete-thread-subscription.json
deleted file mode 100644
index 0d6cf9f1c7..0000000000
--- a/openapi/ghe-2.17/operations/activity/delete-thread-subscription.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a thread subscription",
- "description": "Mutes all future notifications for a conversation until you comment on the thread or get **@mention**ed.",
- "operationId": "activity-delete-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/notifications/#delete-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/get-repo-subscription.json b/openapi/ghe-2.17/operations/activity/get-repo-subscription.json
deleted file mode 100644
index 4f8a2464b2..0000000000
--- a/openapi/ghe-2.17/operations/activity/get-repo-subscription.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get a Repository Subscription",
- "description": "",
- "operationId": "activity-get-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/watching/#get-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/get-thread-subscription.json b/openapi/ghe-2.17/operations/activity/get-thread-subscription.json
deleted file mode 100644
index 48b5e530f1..0000000000
--- a/openapi/ghe-2.17/operations/activity/get-thread-subscription.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "Get a thread subscription",
- "description": "This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://developer.github.com/enterprise/2.17/v3/activity/watching/#get-a-repository-subscription).\n\nNote that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread.",
- "operationId": "activity-get-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/notifications/#get-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "thread_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/get-thread.json b/openapi/ghe-2.17/operations/activity/get-thread.json
deleted file mode 100644
index 9ce0fd92f1..0000000000
--- a/openapi/ghe-2.17/operations/activity/get-thread.json
+++ /dev/null
@@ -1,298 +0,0 @@
-{
- "summary": "View a single thread",
- "description": "",
- "operationId": "activity-get-thread",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/notifications/#view-a-single-thread"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "string"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "subject": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "latest_comment_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "reason": {
- "type": "string"
- },
- "unread": {
- "type": "boolean"
- },
- "updated_at": {
- "type": "string"
- },
- "last_read_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads/"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-events-for-org.json b/openapi/ghe-2.17/operations/activity/list-events-for-org.json
deleted file mode 100644
index 5b6cd1a037..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-events-for-org.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List events for an organization",
- "description": "This is the user's organization dashboard. You must be authenticated as the user to view this.",
- "operationId": "activity-list-events-for-org",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/events/#list-events-for-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events/orgs/:org"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username',\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-events-for-user.json b/openapi/ghe-2.17/operations/activity/list-events-for-user.json
deleted file mode 100644
index dbda787bf2..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List events performed by a user",
- "description": "If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.",
- "operationId": "activity-list-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/events/#list-events-performed-by-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-feeds.json b/openapi/ghe-2.17/operations/activity/list-feeds.json
deleted file mode 100644
index a6fb32ac04..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-feeds.json
+++ /dev/null
@@ -1,161 +0,0 @@
-{
- "summary": "List feeds",
- "description": "GitHub Enterprise Server provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:\n\n* **Timeline**: The GitHub Enterprise Server global public timeline\n* **User**: The public timeline for any user, using [URI template](https://developer.github.com/enterprise/2.17/v3/#hypermedia)\n* **Current user public**: The public timeline for the authenticated user\n* **Current user**: The private timeline for the authenticated user\n* **Current user actor**: The private timeline for activity created by the authenticated user\n* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.\n\n**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://developer.github.com/enterprise/2.17/v3/#basic-authentication) since current feed URIs use the older, non revocable auth tokens.",
- "operationId": "activity-list-feeds",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/feeds/#list-feeds"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "timeline_url": {
- "type": "string"
- },
- "user_url": {
- "type": "string"
- },
- "current_user_public_url": {
- "type": "string"
- },
- "current_user_url": {
- "type": "string"
- },
- "current_user_actor_url": {
- "type": "string"
- },
- "current_user_organization_url": {
- "type": "string"
- },
- "current_user_organization_urls": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "timeline": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_public": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_actor": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_organization": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "current_user_organizations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/feeds"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-notifications-for-repo.json b/openapi/ghe-2.17/operations/activity/list-notifications-for-repo.json
deleted file mode 100644
index 6aa599e495..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-notifications-for-repo.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "summary": "List your notifications in a repository",
- "description": "List all notifications for the current user.",
- "operationId": "activity-list-notifications-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/notifications/#list-your-notifications-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "all",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, show notifications marked as read."
- },
- {
- "name": "participating",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, only shows notifications in which the user is directly participating or mentioned."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "before",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-notifications.json b/openapi/ghe-2.17/operations/activity/list-notifications.json
deleted file mode 100644
index 2a15f28c35..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-notifications.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List your notifications",
- "description": "List all notifications for the current user, sorted by most recently updated.\n\nThe following example uses the `since` parameter to list notifications that have been updated after the specified time.",
- "operationId": "activity-list-notifications",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/notifications/#list-your-notifications"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "all",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, show notifications marked as read."
- },
- {
- "name": "participating",
- "in": "query",
- "schema": {
- "type": "boolean",
- "default": false
- },
- "required": false,
- "description": "If `true`, only shows notifications in which the user is directly participating or mentioned."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "before",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-public-events-for-org.json b/openapi/ghe-2.17/operations/activity/list-public-events-for-org.json
deleted file mode 100644
index 8973df8e8a..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-public-events-for-org.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events for an organization",
- "description": "",
- "operationId": "activity-list-public-events-for-org",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/events/#list-public-events-for-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-public-events-for-repo-network.json b/openapi/ghe-2.17/operations/activity/list-public-events-for-repo-network.json
deleted file mode 100644
index 14394a09b9..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-public-events-for-repo-network.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List public events for a network of repositories",
- "description": "",
- "operationId": "activity-list-public-events-for-repo-network",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/events/#list-public-events-for-a-network-of-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/networks/octocat/:repo/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-public-events-for-user.json b/openapi/ghe-2.17/operations/activity/list-public-events-for-user.json
deleted file mode 100644
index d15075d1ad..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-public-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events performed by a user",
- "description": "",
- "operationId": "activity-list-public-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/events/#list-public-events-performed-by-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//events/public"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-public-events.json b/openapi/ghe-2.17/operations/activity/list-public-events.json
deleted file mode 100644
index 98b4bfe6b7..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-public-events.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List public events",
- "description": "We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.",
- "operationId": "activity-list-public-events",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/events/#list-public-events"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-received-events-for-user.json b/openapi/ghe-2.17/operations/activity/list-received-events-for-user.json
deleted file mode 100644
index cbcddec2d2..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-received-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List events that a user has received",
- "description": "These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events.",
- "operationId": "activity-list-received-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/events/#list-events-that-a-user-has-received"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//received_events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-received-public-events-for-user.json b/openapi/ghe-2.17/operations/activity/list-received-public-events-for-user.json
deleted file mode 100644
index 37a3c53663..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-received-public-events-for-user.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List public events that a user has received",
- "description": "",
- "operationId": "activity-list-received-public-events-for-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/events/#list-public-events-that-a-user-has-received"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//received_events/public"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-repo-events.json b/openapi/ghe-2.17/operations/activity/list-repo-events.json
deleted file mode 100644
index e3b4ab36e6..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-repo-events.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List repository events",
- "description": "",
- "operationId": "activity-list-repo-events",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/events/#list-repository-events"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/events"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-repos-starred-by-authenticated-user.json b/openapi/ghe-2.17/operations/activity/list-repos-starred-by-authenticated-user.json
deleted file mode 100644
index 72c3544196..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-repos-starred-by-authenticated-user.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "List repositories being starred by the authenticated user",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.17/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-repos-starred-by-authenticated-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/starring/#list-repositories-being-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "One of `asc` (ascending) or `desc` (descending)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-repos-starred-by-user.json b/openapi/ghe-2.17/operations/activity/list-repos-starred-by-user.json
deleted file mode 100644
index ec6ff3ee4d..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-repos-starred-by-user.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List repositories being starred by a user",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.17/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-repos-starred-by-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/starring/#list-repositories-being-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "One of `asc` (ascending) or `desc` (descending)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//starred"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-repos-watched-by-user.json b/openapi/ghe-2.17/operations/activity/list-repos-watched-by-user.json
deleted file mode 100644
index 032025fff9..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-repos-watched-by-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List repositories being watched by a user",
- "description": "",
- "operationId": "activity-list-repos-watched-by-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/watching/#list-repositories-being-watched"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//subscriptions"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-stargazers-for-repo.json b/openapi/ghe-2.17/operations/activity/list-stargazers-for-repo.json
deleted file mode 100644
index f25cda15c8..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-stargazers-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List Stargazers",
- "description": "You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/enterprise/2.17/v3/media/) via the `Accept` header:",
- "operationId": "activity-list-stargazers-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/starring/#list-stargazers"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stargazers"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-watched-repos-for-authenticated-user.json b/openapi/ghe-2.17/operations/activity/list-watched-repos-for-authenticated-user.json
deleted file mode 100644
index 6b96fb55cd..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-watched-repos-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List repositories being watched by the authenticated user",
- "description": "",
- "operationId": "activity-list-watched-repos-for-authenticated-user",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/watching/#list-repositories-being-watched"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/list-watchers-for-repo.json b/openapi/ghe-2.17/operations/activity/list-watchers-for-repo.json
deleted file mode 100644
index 79229ed6a5..0000000000
--- a/openapi/ghe-2.17/operations/activity/list-watchers-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List watchers",
- "description": "",
- "operationId": "activity-list-watchers-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/watching/#list-watchers"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscribers"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/mark-as-read.json b/openapi/ghe-2.17/operations/activity/mark-as-read.json
deleted file mode 100644
index 08fc97276f..0000000000
--- a/openapi/ghe-2.17/operations/activity/mark-as-read.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Mark as read",
- "description": "Marking a notification as \"read\" removes it from the [default view on GitHub Enterprise Server](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 your notifications](https://developer.github.com/enterprise/2.17/v3/activity/notifications/#list-your-notifications) endpoint and pass the query parameter `all=false`.",
- "operationId": "activity-mark-as-read",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/notifications/#mark-as-read"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "last_read_at": {
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/mark-notifications-as-read-for-repo.json b/openapi/ghe-2.17/operations/activity/mark-notifications-as-read-for-repo.json
deleted file mode 100644
index b7fe4ceae6..0000000000
--- a/openapi/ghe-2.17/operations/activity/mark-notifications-as-read-for-repo.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Mark notifications as read in a repository",
- "description": "Marking all notifications in a repository as \"read\" removes them from the [default view on GitHub Enterprise Server](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 your notifications in a repository](https://developer.github.com/enterprise/2.17/v3/activity/notifications/#list-your-notifications-in-a-repository) endpoint and pass the query parameter `all=false`.",
- "operationId": "activity-mark-notifications-as-read-for-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/notifications/#mark-notifications-as-read-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "last_read_at": {
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/notifications"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/mark-thread-as-read.json b/openapi/ghe-2.17/operations/activity/mark-thread-as-read.json
deleted file mode 100644
index 534bfe63eb..0000000000
--- a/openapi/ghe-2.17/operations/activity/mark-thread-as-read.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "summary": "Mark a thread as read",
- "description": "",
- "operationId": "activity-mark-thread-as-read",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/notifications/#mark-a-thread-as-read"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "responses": {
- "205": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads/"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/set-repo-subscription.json b/openapi/ghe-2.17/operations/activity/set-repo-subscription.json
deleted file mode 100644
index afb4276664..0000000000
--- a/openapi/ghe-2.17/operations/activity/set-repo-subscription.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Set a Repository Subscription",
- "description": "If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://developer.github.com/enterprise/2.17/v3/activity/watching/#delete-a-repository-subscription) completely.",
- "operationId": "activity-set-repo-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/watching/#set-a-repository-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "subscribed": {
- "description": "Determines if notifications should be received from this repository.",
- "type": "boolean"
- },
- "ignored": {
- "description": "Determines if all notifications should be blocked from this repository.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/set-thread-subscription.json b/openapi/ghe-2.17/operations/activity/set-thread-subscription.json
deleted file mode 100644
index 9ecbf8ae4d..0000000000
--- a/openapi/ghe-2.17/operations/activity/set-thread-subscription.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "summary": "Set a thread subscription",
- "description": "This lets you subscribe or unsubscribe from a conversation.",
- "operationId": "activity-set-thread-subscription",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/notifications/#set-a-thread-subscription"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "thread_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "thread_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ignored": {
- "description": "Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread.",
- "type": "boolean",
- "default": false
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "subscribed": {
- "type": "boolean"
- },
- "ignored": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "thread_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/notifications/threads//subscription"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n thread_id: 'thread_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/star-repo.json b/openapi/ghe-2.17/operations/activity/star-repo.json
deleted file mode 100644
index 4934cb2824..0000000000
--- a/openapi/ghe-2.17/operations/activity/star-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Star a repository",
- "description": "Requires for the user to be authenticated.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "activity-star-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/starring/#star-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/stop-watching-repo-legacy.json b/openapi/ghe-2.17/operations/activity/stop-watching-repo-legacy.json
deleted file mode 100644
index 07566ecaa5..0000000000
--- a/openapi/ghe-2.17/operations/activity/stop-watching-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Stop watching a repository (LEGACY)",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-stop-watching-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/watching/#stop-watching-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/unstar-repo.json b/openapi/ghe-2.17/operations/activity/unstar-repo.json
deleted file mode 100644
index 506dd95257..0000000000
--- a/openapi/ghe-2.17/operations/activity/unstar-repo.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Unstar a repository",
- "description": "Requires for the user to be authenticated.",
- "operationId": "activity-unstar-repo",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/starring/#unstar-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/starred/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/activity/watch-repo-legacy.json b/openapi/ghe-2.17/operations/activity/watch-repo-legacy.json
deleted file mode 100644
index 42450828e2..0000000000
--- a/openapi/ghe-2.17/operations/activity/watch-repo-legacy.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Watch a repository (LEGACY)",
- "description": "Requires the user to be authenticated.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "activity-watch-repo-legacy",
- "tags": [
- "activity"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/activity/watching/#watch-a-repository-legacy"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/subscriptions/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.activity.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/add-repo-to-installation.json b/openapi/ghe-2.17/operations/apps/add-repo-to-installation.json
deleted file mode 100644
index 3245248070..0000000000
--- a/openapi/ghe-2.17/operations/apps/add-repo-to-installation.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Add repository to installation",
- "description": "Add a single repository to an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/enterprise/2.17/v3/auth/#basic-authentication) to access this endpoint.",
- "operationId": "apps-add-repo-to-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/installations/#add-repository-to-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "repository_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "repository_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories/:repository_id"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id',\n repository_id: 'repository_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/create-content-attachment.json b/openapi/ghe-2.17/operations/apps/create-content-attachment.json
deleted file mode 100644
index 23d72dcaba..0000000000
--- a/openapi/ghe-2.17/operations/apps/create-content-attachment.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Create a content attachment",
- "description": "Creates an attachment under a content reference URL in the body or comment of an issue or pull request. Use the `id` of the content reference from the [`content_reference` event](https://developer.github.com/enterprise/2.17/v3/activity/events/types/#contentreferenceevent) to create an attachment.\n\nThe app must create a content attachment within six hours of the content reference URL being posted. See \"[Using content attachments](https://developer.github.com/enterprise/2.17/apps/using-content-attachments/)\" for details about content attachments.\n\nYou must use an [installation access token](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.\n\nThis example creates a content attachment for the domain `https://errors.ai/`.",
- "operationId": "apps-create-content-attachment",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/installations/#create-a-content-attachment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.corsair-preview+json"
- },
- "required": true
- },
- {
- "name": "content_reference_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "content_reference_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the content attachment displayed in the body or comment of an issue or pull request.",
- "type": "string"
- },
- "body": {
- "description": "The body text of the content attachment displayed in the body or comment of an issue or pull request. This parameter supports markdown.",
- "type": "string"
- }
- },
- "required": [
- "title",
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.corsair-preview+json\" \\\n https://developer.github.com/content_references//attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n content_reference_id: 'content_reference_id',\n title: 'title',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/create-from-manifest.json b/openapi/ghe-2.17/operations/apps/create-from-manifest.json
deleted file mode 100644
index 991c98d005..0000000000
--- a/openapi/ghe-2.17/operations/apps/create-from-manifest.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "summary": "Create a GitHub App from a manifest",
- "description": "Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://developer.github.com/enterprise/2.17/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`.",
- "operationId": "apps-create-from-manifest",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#create-a-github-app-from-a-manifest"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.fury-preview+json"
- },
- "required": true
- },
- {
- "name": "code",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "code parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- },
- "client_secret": {
- "type": "string"
- },
- "webhook_secret": {
- "type": "string"
- },
- "pem": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.fury-preview+json\" \\\n https://developer.github.com/app-manifests//conversions"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n code: 'code'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/create-installation-token.json b/openapi/ghe-2.17/operations/apps/create-installation-token.json
deleted file mode 100644
index da00152621..0000000000
--- a/openapi/ghe-2.17/operations/apps/create-installation-token.json
+++ /dev/null
@@ -1,400 +0,0 @@
-{
- "summary": "Create a new installation token",
- "description": "Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.\n\nBy default the installation token has access to all repositories that the installation can access. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` key.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.\n\nThis example grants the token \"Read and write\" permission to `issues` and \"Read\" permission to `contents`, and restricts the token's access to the repository with an `id` of 1296269.",
- "operationId": "apps-create-installation-token",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#create-a-new-installation-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "repository_ids": {
- "description": "The `id`s of the repositories that the installation token can access. Providing repository `id`s restricts the access of an installation token to specific repositories. You can use the \"[List repositories](https://developer.github.com/enterprise/2.17/v3/apps/installations/#list-repositories)\" endpoint to get the `id` of all repositories that an installation can access. For example, you can select specific repositories when creating an installation token to restrict the number of repositories that can be cloned using the token.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- "permissions": {
- "description": "The permissions granted to the access token. The permissions object includes the permission names and their access type. For a complete list of permissions and allowable values, see \"[GitHub App permissions](https://developer.github.com/enterprise/2.17/apps/building-github-apps/creating-github-apps-using-url-parameters/#github-app-permissions).\"",
- "type": "object",
- "properties": {}
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "token": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- },
- "repositories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations//access_tokens"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/delete-installation.json b/openapi/ghe-2.17/operations/apps/delete-installation.json
deleted file mode 100644
index c7d3bb264c..0000000000
--- a/openapi/ghe-2.17/operations/apps/delete-installation.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete an installation",
- "description": "Uninstalls a GitHub App on a user, organization, or business account.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-delete-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#delete-an-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations/"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/get-authenticated.json b/openapi/ghe-2.17/operations/apps/get-authenticated.json
deleted file mode 100644
index 9040bd60ac..0000000000
--- a/openapi/ghe-2.17/operations/apps/get-authenticated.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Get the authenticated GitHub App",
- "description": "Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the \"[List installations](https://developer.github.com/enterprise/2.17/v3/apps/#list-installations)\" endpoint.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-authenticated",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#get-the-authenticated-github-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "installations_count": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/get-by-slug.json b/openapi/ghe-2.17/operations/apps/get-by-slug.json
deleted file mode 100644
index 1a58c093aa..0000000000
--- a/openapi/ghe-2.17/operations/apps/get-by-slug.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "summary": "Get a single GitHub App",
- "description": "**Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).\n\nIf the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.",
- "operationId": "apps-get-by-slug",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#get-a-single-github-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "app_slug",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "app_slug parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/apps/"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n app_slug: 'app_slug'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/get-installation.json b/openapi/ghe-2.17/operations/apps/get-installation.json
deleted file mode 100644
index e50e23680e..0000000000
--- a/openapi/ghe-2.17/operations/apps/get-installation.json
+++ /dev/null
@@ -1,153 +0,0 @@
-{
- "summary": "Get an installation",
- "description": "You must use a [JWT](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#get-an-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "issues": {
- "type": "string"
- },
- "single_file": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "single_file_name": {
- "type": "string"
- },
- "repository_selection": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations/"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/get-org-installation.json b/openapi/ghe-2.17/operations/apps/get-org-installation.json
deleted file mode 100644
index 8e36d4136f..0000000000
--- a/openapi/ghe-2.17/operations/apps/get-org-installation.json
+++ /dev/null
@@ -1,185 +0,0 @@
-{
- "summary": "Get an organization installation",
- "description": "Enables an authenticated GitHub App to find the organization's installation information.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-org-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#get-an-organization-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/orgs//installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find organization installation\" renamed to \"Get an organization installation\"",
- "meta": {
- "before": {
- "idName": "find-org-installation"
- },
- "after": {
- "idName": "get-org-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/apps/get-repo-installation.json b/openapi/ghe-2.17/operations/apps/get-repo-installation.json
deleted file mode 100644
index 1daa599cb1..0000000000
--- a/openapi/ghe-2.17/operations/apps/get-repo-installation.json
+++ /dev/null
@@ -1,194 +0,0 @@
-{
- "summary": "Get a repository installation",
- "description": "Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-repo-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#get-a-repository-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find repository installation\" renamed to \"Get a repository installation\"",
- "meta": {
- "before": {
- "idName": "find-repo-installation"
- },
- "after": {
- "idName": "get-repo-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/apps/get-user-installation.json b/openapi/ghe-2.17/operations/apps/get-user-installation.json
deleted file mode 100644
index 58438b4d23..0000000000
--- a/openapi/ghe-2.17/operations/apps/get-user-installation.json
+++ /dev/null
@@ -1,188 +0,0 @@
-{
- "summary": "Get a user installation",
- "description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
- "operationId": "apps-get-user-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#get-a-user-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repository_selection": {
- "type": "string"
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "checks": {
- "type": "string"
- },
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "single_file_name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/users//installation"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-04-10",
- "note": "\"Find repository installation\" renamed to \"Get a repository installation\"",
- "meta": {
- "before": {
- "idName": "find-user-installation"
- },
- "after": {
- "idName": "get-user-installation"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/apps/list-installation-repos-for-authenticated-user.json b/openapi/ghe-2.17/operations/apps/list-installation-repos-for-authenticated-user.json
deleted file mode 100644
index c7b19b8c22..0000000000
--- a/openapi/ghe-2.17/operations/apps/list-installation-repos-for-authenticated-user.json
+++ /dev/null
@@ -1,394 +0,0 @@
-{
- "summary": "List repositories accessible to the user for an installation",
- "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou must use a [user-to-server OAuth access token](https://developer.github.com/enterprise/2.17/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe access the user has to each repository is included in the hash under the `permissions` key.",
- "operationId": "apps-list-installation-repos-for-authenticated-user",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "repositories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/list-installations-for-authenticated-user.json b/openapi/ghe-2.17/operations/apps/list-installations-for-authenticated-user.json
deleted file mode 100644
index 958a61c4b7..0000000000
--- a/openapi/ghe-2.17/operations/apps/list-installations-for-authenticated-user.json
+++ /dev/null
@@ -1,218 +0,0 @@
-{
- "summary": "List installations for a user",
- "description": "Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nYou must use a [user-to-server OAuth access token](https://developer.github.com/enterprise/2.17/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou can find the permissions for the installation under the `permissions` key.",
- "operationId": "apps-list-installations-for-authenticated-user",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/installations/#list-installations-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "installations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "account": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "access_tokens_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "app_id": {
- "type": "number"
- },
- "target_id": {
- "type": "number"
- },
- "target_type": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "issues": {
- "type": "string"
- },
- "single_file": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "single_file_name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "account",
- "access_tokens_url",
- "repositories_url",
- "html_url",
- "app_id",
- "target_id",
- "target_type",
- "permissions",
- "events",
- "single_file_name"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/list-installations.json b/openapi/ghe-2.17/operations/apps/list-installations.json
deleted file mode 100644
index 05b397bfe7..0000000000
--- a/openapi/ghe-2.17/operations/apps/list-installations.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "List installations",
- "description": "You must use a [JWT](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.\n\nThe permissions the installation has are included under the `permissions` key.",
- "operationId": "apps-list-installations",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/#list-installations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/app/installations"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/list-repos.json b/openapi/ghe-2.17/operations/apps/list-repos.json
deleted file mode 100644
index a77daa4f85..0000000000
--- a/openapi/ghe-2.17/operations/apps/list-repos.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "summary": "List repositories",
- "description": "List repositories that an installation can access.\n\nYou must use an [installation access token](https://developer.github.com/enterprise/2.17/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.",
- "operationId": "apps-list-repos",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/installations/#list-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "repositories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/installation/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/apps/remove-repo-from-installation.json b/openapi/ghe-2.17/operations/apps/remove-repo-from-installation.json
deleted file mode 100644
index 5196a9af30..0000000000
--- a/openapi/ghe-2.17/operations/apps/remove-repo-from-installation.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Remove repository from installation",
- "description": "Remove a single repository from an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/enterprise/2.17/v3/auth/#basic-authentication) to access this endpoint.",
- "operationId": "apps-remove-repo-from-installation",
- "tags": [
- "apps"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/apps/installations/#remove-repository-from-installation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.machine-man-preview+json"
- },
- "required": true
- },
- {
- "name": "installation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "installation_id parameter"
- },
- {
- "name": "repository_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "repository_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.machine-man-preview+json\" \\\n https://developer.github.com/user/installations//repositories/:repository_id"
- },
- {
- "lang": "JS",
- "source": "octokit.apps.get({\n installation_id: 'installation_id',\n repository_id: 'repository_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/create-suite.json b/openapi/ghe-2.17/operations/checks/create-suite.json
deleted file mode 100644
index 739dae0641..0000000000
--- a/openapi/ghe-2.17/operations/checks/create-suite.json
+++ /dev/null
@@ -1,496 +0,0 @@
-{
- "summary": "Create a check suite",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nBy default, check suites are automatically created when you create a [check run](https://developer.github.com/enterprise/2.17/v3/checks/runs/). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"[Set preferences for check suites on a repository](https://developer.github.com/enterprise/2.17/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository)\". Your GitHub App must have the `checks:write` permission to create check suites.",
- "operationId": "checks-create-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/suites/#create-a-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "head_sha": {
- "description": "The sha of the head commit.",
- "type": "string"
- }
- },
- "required": [
- "head_sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites \\\n -d '{\"head_sha\":\"head_sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n head_sha: 'head_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/create.json b/openapi/ghe-2.17/operations/checks/create.json
deleted file mode 100644
index b8e48ced52..0000000000
--- a/openapi/ghe-2.17/operations/checks/create.json
+++ /dev/null
@@ -1,457 +0,0 @@
-{
- "summary": "Create a check run",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
- "operationId": "checks-create",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/runs/#create-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the check. For example, \"code-coverage\".",
- "type": "string"
- },
- "head_sha": {
- "description": "The SHA of the commit.",
- "type": "string"
- },
- "details_url": {
- "description": "The URL of the integrator's site that has the full details of the check.",
- "type": "string"
- },
- "external_id": {
- "description": "A reference for the run on the integrator's system.",
- "type": "string"
- },
- "status": {
- "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ],
- "default": "queued"
- },
- "started_at": {
- "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "conclusion": {
- "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.",
- "type": "string",
- "enum": [
- "success",
- "failure",
- "neutral",
- "cancelled",
- "timed_out",
- "action_required"
- ]
- },
- "completed_at": {
- "description": "**Required if you provide `conclusion`**. The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "output": {
- "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#output-object) description.",
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the check run.",
- "type": "string"
- },
- "summary": {
- "description": "The summary of the check run. This parameter supports Markdown.",
- "type": "string"
- },
- "text": {
- "description": "The details of the check run. This parameter supports Markdown.",
- "type": "string"
- },
- "annotations": {
- "description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/enterprise/2.17/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#annotations-object) description for details about how to use this parameter.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "type": "string"
- },
- "start_line": {
- "description": "The start line of the annotation.",
- "type": "integer"
- },
- "end_line": {
- "description": "The end line of the annotation.",
- "type": "integer"
- },
- "start_column": {
- "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "end_column": {
- "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "annotation_level": {
- "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
- "type": "string",
- "enum": [
- "notice",
- "warning",
- "failure"
- ]
- },
- "message": {
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "type": "string"
- },
- "title": {
- "description": "The title that represents the annotation. The maximum size is 255 characters.",
- "type": "string"
- },
- "raw_details": {
- "description": "Details about this annotation. The maximum size is 64 KB.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- }
- },
- "images": {
- "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#images-object) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "description": "The alternative text for the image.",
- "type": "string"
- },
- "image_url": {
- "description": "The full URL of the image.",
- "type": "string"
- },
- "caption": {
- "description": "A short image description.",
- "type": "string"
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- }
- }
- },
- "required": [
- "title",
- "summary"
- ]
- },
- "actions": {
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.17/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "type": "string"
- },
- "description": {
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "type": "string"
- },
- "identifier": {
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "type": "string"
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- }
- }
- },
- "required": [
- "name",
- "head_sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs \\\n -d '{\"name\":\"name\",\"head_sha\":\"head_sha\",\"output.title\":\"output.title\",\"output.summary\":\"output.summary\",\"output.annotations[].path\":\"output.annotations[].path\",\"output.annotations[].start_line\":\"output.annotations[].start_line\",\"output.annotations[].end_line\":\"output.annotations[].end_line\",\"output.annotations[].annotation_level\":\"output.annotations[].annotation_level\",\"output.annotations[].message\":\"output.annotations[].message\",\"output.images[].alt\":\"output.images[].alt\",\"output.images[].image_url\":\"output.images[].image_url\",\"actions[].label\":\"actions[].label\",\"actions[].description\":\"actions[].description\",\"actions[].identifier\":\"actions[].identifier\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name',\n head_sha: 'head_sha',\n 'output.title': 'output.title',\n 'output.summary': 'output.summary',\n 'output.annotations[].path': 'output.annotations[].path',\n 'output.annotations[].start_line': 'output.annotations[].start_line',\n 'output.annotations[].end_line': 'output.annotations[].end_line',\n 'output.annotations[].annotation_level': 'output.annotations[].annotation_level',\n 'output.annotations[].message': 'output.annotations[].message',\n 'output.images[].alt': 'output.images[].alt',\n 'output.images[].image_url': 'output.images[].image_url',\n 'actions[].label': 'actions[].label',\n 'actions[].description': 'actions[].description',\n 'actions[].identifier': 'actions[].identifier'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/get-suite.json b/openapi/ghe-2.17/operations/checks/get-suite.json
deleted file mode 100644
index ba6a306d24..0000000000
--- a/openapi/ghe-2.17/operations/checks/get-suite.json
+++ /dev/null
@@ -1,487 +0,0 @@
-{
- "summary": "Get a single check suite",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nGets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.",
- "operationId": "checks-get-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/suites/#get-a-single-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/get.json b/openapi/ghe-2.17/operations/checks/get.json
deleted file mode 100644
index a6b14409db..0000000000
--- a/openapi/ghe-2.17/operations/checks/get.json
+++ /dev/null
@@ -1,281 +0,0 @@
-{
- "summary": "Get a single check run",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nGets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-get",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/runs/#get-a-single-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/list-annotations.json b/openapi/ghe-2.17/operations/checks/list-annotations.json
deleted file mode 100644
index 80edb58c6e..0000000000
--- a/openapi/ghe-2.17/operations/checks/list-annotations.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "List annotations for a check run",
- "description": "Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository.",
- "operationId": "checks-list-annotations",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/runs/#list-annotations-for-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id/annotations"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/list-for-ref.json b/openapi/ghe-2.17/operations/checks/list-for-ref.json
deleted file mode 100644
index 3d587a51e3..0000000000
--- a/openapi/ghe-2.17/operations/checks/list-for-ref.json
+++ /dev/null
@@ -1,349 +0,0 @@
-{
- "summary": "List check runs for a specific ref",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nLists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-list-for-ref",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/runs/#list-check-runs-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Returns check runs with the specified `name`."
- },
- {
- "name": "status",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "required": false,
- "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`."
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "latest",
- "all"
- ],
- "default": "latest"
- },
- "required": false,
- "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_runs": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/check-runs"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/list-for-suite.json b/openapi/ghe-2.17/operations/checks/list-for-suite.json
deleted file mode 100644
index 3ebbfc6392..0000000000
--- a/openapi/ghe-2.17/operations/checks/list-for-suite.json
+++ /dev/null
@@ -1,349 +0,0 @@
-{
- "summary": "List check runs in a check suite",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nLists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.",
- "operationId": "checks-list-for-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/runs/#list-check-runs-in-a-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Returns check runs with the specified `name`."
- },
- {
- "name": "status",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "required": false,
- "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`."
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "latest",
- "all"
- ],
- "default": "latest"
- },
- "required": false,
- "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_runs": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id/check-runs"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/list-suites-for-ref.json b/openapi/ghe-2.17/operations/checks/list-suites-for-ref.json
deleted file mode 100644
index c4cf881a24..0000000000
--- a/openapi/ghe-2.17/operations/checks/list-suites-for-ref.json
+++ /dev/null
@@ -1,536 +0,0 @@
-{
- "summary": "List check suites for a specific ref",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nLists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.",
- "operationId": "checks-list-suites-for-ref",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/suites/#list-check-suites-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "app_id",
- "in": "query",
- "schema": {
- "type": "integer"
- },
- "required": false,
- "description": "Filters check suites by GitHub App `id`."
- },
- {
- "name": "check_name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filters checks suites by the name of the [check run](https://developer.github.com/enterprise/2.17/v3/checks/runs/)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "total_count": {
- "type": "number"
- },
- "check_suites": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "head_branch": {
- "type": "string"
- },
- "head_sha": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "before": {
- "type": "string"
- },
- "after": {
- "type": "string"
- },
- "pull_requests": {
- "type": "array",
- "items": {}
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/check-suites"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/rerequest-suite.json b/openapi/ghe-2.17/operations/checks/rerequest-suite.json
deleted file mode 100644
index 3c50bc70ba..0000000000
--- a/openapi/ghe-2.17/operations/checks/rerequest-suite.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "summary": "Rerequest check suite",
- "description": "Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://developer.github.com/enterprise/2.17/v3/activity/events/types/#checksuiteevent) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.\n\nTo rerequest a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.",
- "operationId": "checks-rerequest-suite",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/suites/#rerequest-check-suite"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_suite_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_suite_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/:check_suite_id/rerequest"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_suite_id: 'check_suite_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/set-suites-preferences.json b/openapi/ghe-2.17/operations/checks/set-suites-preferences.json
deleted file mode 100644
index 649c0c7377..0000000000
--- a/openapi/ghe-2.17/operations/checks/set-suites-preferences.json
+++ /dev/null
@@ -1,433 +0,0 @@
-{
- "summary": "Set preferences for check suites on a repository",
- "description": "Changes the default automatic flow when creating check suites. By default, the CheckSuiteEvent is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://developer.github.com/enterprise/2.17/v3/checks/suites/#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites.",
- "operationId": "checks-set-suites-preferences",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "auto_trigger_checks": {
- "description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/enterprise/2.17/v3/checks/suites/#auto_trigger_checks-object) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "description": "The `id` of the GitHub App.",
- "type": "integer"
- },
- "setting": {
- "description": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "preferences": {
- "type": "object",
- "properties": {
- "auto_trigger_checks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "app_id": {
- "type": "number"
- },
- "setting": {
- "type": "boolean"
- }
- },
- "required": [
- "app_id",
- "setting"
- ]
- }
- }
- }
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-suites/preferences \\\n -d '{\"auto_trigger_checks[].app_id\":\"auto_trigger_checks[].app_id\",\"auto_trigger_checks[].setting\":\"auto_trigger_checks[].setting\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n 'auto_trigger_checks[].app_id': 'auto_trigger_checks[].app_id',\n 'auto_trigger_checks[].setting': 'auto_trigger_checks[].setting'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/checks/update.json b/openapi/ghe-2.17/operations/checks/update.json
deleted file mode 100644
index f33d80af1a..0000000000
--- a/openapi/ghe-2.17/operations/checks/update.json
+++ /dev/null
@@ -1,462 +0,0 @@
-{
- "summary": "Update a check run",
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nUpdates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs.",
- "operationId": "checks-update",
- "tags": [
- "checks"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/checks/runs/#update-a-check-run"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.antiope-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "check_run_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "check_run_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the check. For example, \"code-coverage\".",
- "type": "string"
- },
- "details_url": {
- "description": "The URL of the integrator's site that has the full details of the check.",
- "type": "string"
- },
- "external_id": {
- "description": "A reference for the run on the integrator's system.",
- "type": "string"
- },
- "started_at": {
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "status": {
- "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.",
- "type": "string",
- "enum": [
- "queued",
- "in_progress",
- "completed"
- ]
- },
- "conclusion": {
- "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.",
- "type": "string",
- "enum": [
- "success",
- "failure",
- "neutral",
- "cancelled",
- "timed_out",
- "action_required"
- ]
- },
- "completed_at": {
- "description": "**Required if you provide `conclusion`**. The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- },
- "output": {
- "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#output-object-1) description.",
- "type": "object",
- "properties": {
- "title": {
- "description": "**Required**.",
- "type": "string"
- },
- "summary": {
- "description": "Can contain Markdown.",
- "type": "string"
- },
- "text": {
- "description": "Can contain Markdown.",
- "type": "string"
- },
- "annotations": {
- "description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/enterprise/2.17/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#annotations-object-1) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.",
- "type": "string"
- },
- "start_line": {
- "description": "The start line of the annotation.",
- "type": "integer"
- },
- "end_line": {
- "description": "The end line of the annotation.",
- "type": "integer"
- },
- "start_column": {
- "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "end_column": {
- "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.",
- "type": "integer"
- },
- "annotation_level": {
- "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.",
- "type": "string",
- "enum": [
- "notice",
- "warning",
- "failure"
- ]
- },
- "message": {
- "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.",
- "type": "string"
- },
- "title": {
- "description": "The title that represents the annotation. The maximum size is 255 characters.",
- "type": "string"
- },
- "raw_details": {
- "description": "Details about this annotation. The maximum size is 64 KB.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "start_line",
- "end_line",
- "annotation_level",
- "message"
- ]
- }
- },
- "images": {
- "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#annotations-object-1) description for details.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "alt": {
- "description": "The alternative text for the image.",
- "type": "string"
- },
- "image_url": {
- "description": "The full URL of the image.",
- "type": "string"
- },
- "caption": {
- "description": "A short image description.",
- "type": "string"
- }
- },
- "required": [
- "alt",
- "image_url"
- ]
- }
- }
- },
- "required": [
- "summary"
- ]
- },
- "actions": {
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.",
- "type": "string"
- },
- "description": {
- "description": "A short explanation of what this action would do. The maximum size is 40 characters.",
- "type": "string"
- },
- "identifier": {
- "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.",
- "type": "string"
- }
- },
- "required": [
- "label",
- "description",
- "identifier"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "head_sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "external_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "details_url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "conclusion": {
- "type": "string"
- },
- "started_at": {
- "type": "string"
- },
- "completed_at": {
- "type": "string"
- },
- "output": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "annotations_count": {
- "type": "number"
- },
- "annotations_url": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "check_suite": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- }
- }
- },
- "app": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- },
- "pull_requests": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "number": {
- "type": "number"
- },
- "head": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.antiope-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/check-runs/:check_run_id \\\n -d '{\"output.summary\":\"output.summary\",\"output.annotations[].path\":\"output.annotations[].path\",\"output.annotations[].start_line\":\"output.annotations[].start_line\",\"output.annotations[].end_line\":\"output.annotations[].end_line\",\"output.annotations[].annotation_level\":\"output.annotations[].annotation_level\",\"output.annotations[].message\":\"output.annotations[].message\",\"output.images[].alt\":\"output.images[].alt\",\"output.images[].image_url\":\"output.images[].image_url\",\"actions[].label\":\"actions[].label\",\"actions[].description\":\"actions[].description\",\"actions[].identifier\":\"actions[].identifier\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.checks.get({\n owner: 'octocat',\n repo: 'hello-world',\n check_run_id: 'check_run_id',\n 'output.summary': 'output.summary',\n 'output.annotations[].path': 'output.annotations[].path',\n 'output.annotations[].start_line': 'output.annotations[].start_line',\n 'output.annotations[].end_line': 'output.annotations[].end_line',\n 'output.annotations[].annotation_level': 'output.annotations[].annotation_level',\n 'output.annotations[].message': 'output.annotations[].message',\n 'output.images[].alt': 'output.images[].alt',\n 'output.images[].image_url': 'output.images[].image_url',\n 'actions[].label': 'actions[].label',\n 'actions[].description': 'actions[].description',\n 'actions[].identifier': 'actions[].identifier'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/codes_of_conduct/get-conduct-code.json b/openapi/ghe-2.17/operations/codes_of_conduct/get-conduct-code.json
deleted file mode 100644
index 5809ad39cb..0000000000
--- a/openapi/ghe-2.17/operations/codes_of_conduct/get-conduct-code.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "summary": "Get an individual code of conduct",
- "description": "",
- "operationId": "codes_of_conduct-get-conduct-code",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/codes_of_conduct/#get-an-individual-code-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- },
- {
- "name": "key",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "key parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/codes_of_conduct/"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get({\n key: 'key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/codes_of_conduct/get-for-repo.json b/openapi/ghe-2.17/operations/codes_of_conduct/get-for-repo.json
deleted file mode 100644
index 2c365b3123..0000000000
--- a/openapi/ghe-2.17/operations/codes_of_conduct/get-for-repo.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "summary": "Get the contents of a repository's code of conduct",
- "description": "This method returns the contents of the repository's code of conduct file, if one is detected.",
- "operationId": "codes_of_conduct-get-for-repo",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/community/code_of_conduct"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/codes_of_conduct/list-conduct-codes.json b/openapi/ghe-2.17/operations/codes_of_conduct/list-conduct-codes.json
deleted file mode 100644
index 25024349cf..0000000000
--- a/openapi/ghe-2.17/operations/codes_of_conduct/list-conduct-codes.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "summary": "List all codes of conduct",
- "description": "",
- "operationId": "codes_of_conduct-list-conduct-codes",
- "tags": [
- "codes_of_conduct"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/codes_of_conduct/#list-all-codes-of-conduct"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.scarlet-witch-preview+json"
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.scarlet-witch-preview+json\" \\\n https://developer.github.com/codes_of_conduct"
- },
- {
- "lang": "JS",
- "source": "octokit.codes_of_conduct.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/emojis/get.json b/openapi/ghe-2.17/operations/emojis/get.json
deleted file mode 100644
index df60c8c7e5..0000000000
--- a/openapi/ghe-2.17/operations/emojis/get.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Get",
- "description": "Lists all the emojis available to use on GitHub Enterprise Server.\n\n",
- "operationId": "emojis-get",
- "tags": [
- "emojis"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/emojis/#emojis"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/emojis"
- },
- {
- "lang": "JS",
- "source": "octokit.emojis.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/add-authorized-ssh-key.json b/openapi/ghe-2.17/operations/enterprise-admin/add-authorized-ssh-key.json
deleted file mode 100644
index e9f7c40144..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/add-authorized-ssh-key.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Add a new authorized SSH key",
- "description": "",
- "operationId": "enterprise-admin-add-authorized-ssh-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#add-a-new-authorized-ssh-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "authorized_key": {
- "description": "The path to the public SSH key.",
- "type": "string"
- }
- },
- "required": [
- "authorized_key"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys \\\n -d '{\"authorized_key\":\"authorized_key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n authorized_key: 'authorized_key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/check-configuration-status.json b/openapi/ghe-2.17/operations/enterprise-admin/check-configuration-status.json
deleted file mode 100644
index 434f6a14f8..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/check-configuration-status.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Check configuration status",
- "description": "This endpoint allows you to check the status of the most recent configuration process:\n\nNote that you may need to wait several seconds after you start a process before you can check its status.\n\nThe different statuses are:\n\n| Status | Description |\n| ------------- | --------------------------------- |\n| `PENDING` | The job has not started yet |\n| `CONFIGURING` | The job is running |\n| `DONE` | The job has finished correctly |\n| `FAILED` | The job has finished unexpectedly |",
- "operationId": "enterprise-admin-check-configuration-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#check-configuration-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "progress": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "key"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/configcheck"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/check-maintenance-status.json b/openapi/ghe-2.17/operations/enterprise-admin/check-maintenance-status.json
deleted file mode 100644
index 7a57ad8bf1..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/check-maintenance-status.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "Check maintenance status",
- "description": "Check your installation's maintenance status:",
- "operationId": "enterprise-admin-check-maintenance-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#check-maintenance-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "scheduled_time": {
- "type": "string"
- },
- "connection_services": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "number": {
- "type": "number"
- }
- },
- "required": [
- "name",
- "number"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/maintenance"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/create-global-hook.json b/openapi/ghe-2.17/operations/enterprise-admin/create-global-hook.json
deleted file mode 100644
index 792179a29e..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/create-global-hook.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "summary": "Create a global hook",
- "description": "",
- "operationId": "enterprise-admin-create-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/global_webhooks/#create-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Must be passed as \"web\".",
- "type": "string"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.17/v3/enterprise-admin/global_webhooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.17/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name",
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "secret": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks \\\n -d '{\"name\":\"name\",\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/create-impersonation-o-auth-token.json b/openapi/ghe-2.17/operations/enterprise-admin/create-impersonation-o-auth-token.json
deleted file mode 100644
index 6a45228421..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/create-impersonation-o-auth-token.json
+++ /dev/null
@@ -1,129 +0,0 @@
-{
- "summary": "Create an impersonation OAuth token",
- "description": "",
- "operationId": "enterprise-admin-create-impersonation-o-auth-token",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#create-an-impersonation-oauth-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "A list of [scopes](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users//authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/create-org.json b/openapi/ghe-2.17/operations/enterprise-admin/create-org.json
deleted file mode 100644
index 8a4fd9ebc8..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/create-org.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "Create an organization",
- "description": "",
- "operationId": "enterprise-admin-create-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/orgs/#create-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The organization's username.",
- "type": "string"
- },
- "admin": {
- "description": "The login of the user who will manage this organization.",
- "type": "string"
- },
- "profile_name": {
- "description": "The organization's display name.",
- "type": "string"
- }
- },
- "required": [
- "login",
- "admin"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/organizations \\\n -d '{\"login\":\"login\",\"admin\":\"admin\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n login: 'login',\n admin: 'admin'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/create-pre-receive-environment.json b/openapi/ghe-2.17/operations/enterprise-admin/create-pre-receive-environment.json
deleted file mode 100644
index 597c03cae7..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/create-pre-receive-environment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Create a pre-receive environment",
- "description": "",
- "operationId": "enterprise-admin-create-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_environments/#create-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new pre-receive environment's name.",
- "type": "string"
- },
- "image_url": {
- "description": "URL from which to download a tarball of this environment.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "image_url"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments \\\n -d '{\"name\":\"name\",\"image_url\":\"image_url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n image_url: 'image_url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/create-pre-receive-hook.json b/openapi/ghe-2.17/operations/enterprise-admin/create-pre-receive-hook.json
deleted file mode 100644
index c7af79a9a1..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/create-pre-receive-hook.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "summary": "Create a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-create-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_hooks/#create-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the hook.",
- "type": "string"
- },
- "script": {
- "description": "The script that the hook runs.",
- "type": "string"
- },
- "script_repository": {
- "description": "The GitHub repository where the script is kept.",
- "type": "object",
- "properties": {}
- },
- "environment": {
- "description": "The pre-receive environment where the script is executed.",
- "type": "object",
- "properties": {}
- },
- "enforcement": {
- "description": "The state of enforcement for this hook. default: `disabled`",
- "type": "string"
- },
- "allow_downstream_configuration": {
- "description": "Whether enforcement can be overridden at the org or repo level. default: `false`",
- "type": "boolean"
- }
- },
- "required": [
- "name",
- "script",
- "script_repository",
- "environment"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "script": {
- "type": "string"
- },
- "script_repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "full_name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks \\\n -d '{\"name\":\"name\",\"script\":\"script\",\"script_repository\":\"script_repository\",\"environment\":\"environment\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n name: 'name',\n script: 'script',\n script_repository: 'script_repository',\n environment: 'environment'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/create-user.json b/openapi/ghe-2.17/operations/enterprise-admin/create-user.json
deleted file mode 100644
index c67ab719fe..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/create-user.json
+++ /dev/null
@@ -1,128 +0,0 @@
-{
- "summary": "Create a new user",
- "description": "If an external authentication mechanism is used, the login name should match the login name in the external system. If you are using LDAP authentication, you should also [update the LDAP mapping](https://developer.github.com/enterprise/2.17/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-user) for the user.\n\nThe login name will be normalized to only contain alphanumeric characters or single hyphens. For example, if you send `\"octo_cat\"` as the login, a user named `\"octo-cat\"` will be created.\n\nIf the login name or email address is already associated with an account, the server will return a `422` response.",
- "operationId": "enterprise-admin-create-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#create-a-new-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The user's username.",
- "type": "string"
- },
- "email": {
- "description": "**Required for built-in authentication.** The user's email address. This parameter can be omitted when using CAS, LDAP, or SAML. For details on built-in and centrally-managed authentication, see the the [GitHub Enterprise Server authentication guide](https://help.github.com/enterprise/2.17/admin/guides/user-management/authenticating-users-for-your-github-enterprise-server-instance/).",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/delete-global-hook.json b/openapi/ghe-2.17/operations/enterprise-admin/delete-global-hook.json
deleted file mode 100644
index b8e3989da6..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/delete-global-hook.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a global hook",
- "description": "",
- "operationId": "enterprise-admin-delete-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/global_webhooks/#delete-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/delete-impersonation-o-auth-token.json b/openapi/ghe-2.17/operations/enterprise-admin/delete-impersonation-o-auth-token.json
deleted file mode 100644
index 9620bca64d..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/delete-impersonation-o-auth-token.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete an impersonation OAuth token",
- "description": "",
- "operationId": "enterprise-admin-delete-impersonation-o-auth-token",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#delete-an-impersonation-oauth-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users//authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/delete-personal-access-token.json b/openapi/ghe-2.17/operations/enterprise-admin/delete-personal-access-token.json
deleted file mode 100644
index 23ee18a041..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/delete-personal-access-token.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a personal access token",
- "description": "Deletes a personal access token. Returns a `403 - Forbidden` status when a personal access token is in use. For example, if you access this endpoint with the same personal access token that you are trying to delete, you will receive this error.",
- "operationId": "enterprise-admin-delete-personal-access-token",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#delete-a-personal-access-token"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "token_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "token_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/tokens/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n token_id: 'token_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/delete-pre-receive-environment.json b/openapi/ghe-2.17/operations/enterprise-admin/delete-pre-receive-environment.json
deleted file mode 100644
index 0d2665d5d9..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/delete-pre-receive-environment.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a pre-receive environment",
- "description": "If you attempt to delete an environment that cannot be deleted, you will get a response like this:\n\nThe possible error messages are:\n\n* _Cannot modify or delete the default environment_\n* _Cannot delete environment that has hooks_\n* _Cannot delete environment when download is in progress_",
- "operationId": "enterprise-admin-delete-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_environments/#delete-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/delete-pre-receive-hook.json b/openapi/ghe-2.17/operations/enterprise-admin/delete-pre-receive-hook.json
deleted file mode 100644
index dcaad2a2f8..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/delete-pre-receive-hook.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-delete-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_hooks/#delete-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre_receive_hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/delete-public-key.json b/openapi/ghe-2.17/operations/enterprise-admin/delete-public-key.json
deleted file mode 100644
index 7ddf52278d..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/delete-public-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a public key",
- "description": "",
- "operationId": "enterprise-admin-delete-public-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#delete-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_ids",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "key_ids parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n key_ids: 'key_ids'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/delete-user.json b/openapi/ghe-2.17/operations/enterprise-admin/delete-user.json
deleted file mode 100644
index 0e49611fe9..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/delete-user.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a user",
- "description": "Deleting a user will delete all their repositories, gists, applications, and personal settings. [Suspending a user](https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#suspend-a-user) is often a better option.\n\nYou can delete any user account except your own.",
- "operationId": "enterprise-admin-delete-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#delete-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json b/openapi/ghe-2.17/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json
deleted file mode 100644
index eeaa2b6cb0..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/demote-site-administrator-to-ordinary-user.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Demote a site administrator to an ordinary user",
- "description": "You can demote any user account except your own.",
- "operationId": "enterprise-admin-demote-site-administrator-to-ordinary-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#demote-a-site-administrator-to-an-ordinary-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//site_admin"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/enable-or-disable-maintenance-mode.json b/openapi/ghe-2.17/operations/enterprise-admin/enable-or-disable-maintenance-mode.json
deleted file mode 100644
index f2ca941e87..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/enable-or-disable-maintenance-mode.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Enable or disable maintenance mode",
- "description": "The possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.\n\nThe possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).",
- "operationId": "enterprise-admin-enable-or-disable-maintenance-mode",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#enable-or-disable-maintenance-mode"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "maintenance": {
- "description": "A JSON string with the attributes `enabled` and `when`.",
- "type": "string"
- }
- },
- "required": [
- "maintenance"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- },
- "scheduled_time": {
- "type": "string"
- },
- "connection_services": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "number": {
- "type": "number"
- }
- },
- "required": [
- "name",
- "number"
- ]
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/maintenance \\\n -d '{\"maintenance\":\"maintenance\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n maintenance: 'maintenance'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/get-global-hook.json b/openapi/ghe-2.17/operations/enterprise-admin/get-global-hook.json
deleted file mode 100644
index f38da39e94..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/get-global-hook.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get single global hook",
- "description": "",
- "operationId": "enterprise-admin-get-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/global_webhooks/#get-single-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "secret": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/get-license-information.json b/openapi/ghe-2.17/operations/enterprise-admin/get-license-information.json
deleted file mode 100644
index f76a0b87a1..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/get-license-information.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "Get license information",
- "description": "",
- "operationId": "enterprise-admin-get-license-information",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/license/#get-license-information"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "seats": {
- "type": "number"
- },
- "seats_used": {
- "type": "number"
- },
- "seats_available": {
- "type": "number"
- },
- "kind": {
- "type": "string"
- },
- "days_until_expiration": {
- "type": "number"
- },
- "expire_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/enterprise/settings/license"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-environment-download-status.json b/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-environment-download-status.json
deleted file mode 100644
index 9667c34cbf..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-environment-download-status.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Get a pre-receive environment's download status",
- "description": "In addition to seeing the download status at the `/admin/pre-receive-environments/:pre_receive_environment_id`, there is also a separate endpoint for just the status.\n\nPossible values for `state` are `not_started`, `in_progress`, `success`, `failed`.",
- "operationId": "enterprise-admin-get-pre-receive-environment-download-status",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_environments/#get-a-pre-receive-environments-download-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The state of the most recent download."
- },
- {
- "name": "downloaded_at",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The time when the most recent download started."
- },
- {
- "name": "message",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "On failure, this will have any error messages produced."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments//downloads/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-environment.json b/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-environment.json
deleted file mode 100644
index 9ac8af7021..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-environment.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Get a single pre-receive environment",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_environments/#get-a-single-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-hook-for-org.json b/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-hook-for-org.json
deleted file mode 100644
index 681cc603ac..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-hook-for-org.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get a single pre-receive hook for organization",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/org_pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-hook-for-repo.json b/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-hook-for-repo.json
deleted file mode 100644
index 1dd724a47b..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-hook-for-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get a single pre-receive hook for repository",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/repo_pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-hook.json b/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-hook.json
deleted file mode 100644
index da2244d008..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/get-pre-receive-hook.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Get a single pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-get-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_hooks/#get-a-single-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/get-type-stats.json b/openapi/ghe-2.17/operations/enterprise-admin/get-type-stats.json
deleted file mode 100644
index 39acf78dbf..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/get-type-stats.json
+++ /dev/null
@@ -1,213 +0,0 @@
-{
- "summary": "Get statistics",
- "description": "There are a variety of types to choose from:\n\n| Type | Description |\n| ------------ | --------------------------------------------------------------------------------------------------- |\n| `issues` | The number of open and closed issues. |\n| `hooks` | The number of active and inactive hooks. |\n| `milestones` | The number of open and closed milestones. |\n| `orgs` | The number of organizations, teams, team members, and disabled organizations. |\n| `comments` | The number of comments on issues, pull requests, commits, and gists. |\n| `pages` | The number of GitHub Pages sites. |\n| `users` | The number of suspended and admin users. |\n| `gists` | The number of private and public gists. |\n| `pulls` | The number of merged, mergeable, and unmergeable pull requests. |\n| `repos` | The number of organization-owned repositories, root repositories, forks, pushed commits, and wikis. |\n| `all` | All of the statistics listed above. |\n\nThese statistics are cached and will be updated approximately every 10 minutes.",
- "operationId": "enterprise-admin-get-type-stats",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/admin_stats/#get-statistics"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "type",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "type parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "repos": {
- "type": "object",
- "properties": {
- "total_repos": {
- "type": "number"
- },
- "root_repos": {
- "type": "number"
- },
- "fork_repos": {
- "type": "number"
- },
- "org_repos": {
- "type": "number"
- },
- "total_pushes": {
- "type": "number"
- },
- "total_wikis": {
- "type": "number"
- }
- }
- },
- "hooks": {
- "type": "object",
- "properties": {
- "total_hooks": {
- "type": "number"
- },
- "active_hooks": {
- "type": "number"
- },
- "inactive_hooks": {
- "type": "number"
- }
- }
- },
- "pages": {
- "type": "object",
- "properties": {
- "total_pages": {
- "type": "number"
- }
- }
- },
- "orgs": {
- "type": "object",
- "properties": {
- "total_orgs": {
- "type": "number"
- },
- "disabled_orgs": {
- "type": "number"
- },
- "total_teams": {
- "type": "number"
- },
- "total_team_members": {
- "type": "number"
- }
- }
- },
- "users": {
- "type": "object",
- "properties": {
- "total_users": {
- "type": "number"
- },
- "admin_users": {
- "type": "number"
- },
- "suspended_users": {
- "type": "number"
- }
- }
- },
- "pulls": {
- "type": "object",
- "properties": {
- "total_pulls": {
- "type": "number"
- },
- "merged_pulls": {
- "type": "number"
- },
- "mergeable_pulls": {
- "type": "number"
- },
- "unmergeable_pulls": {
- "type": "number"
- }
- }
- },
- "issues": {
- "type": "object",
- "properties": {
- "total_issues": {
- "type": "number"
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- }
- }
- },
- "milestones": {
- "type": "object",
- "properties": {
- "total_milestones": {
- "type": "number"
- },
- "open_milestones": {
- "type": "number"
- },
- "closed_milestones": {
- "type": "number"
- }
- }
- },
- "gists": {
- "type": "object",
- "properties": {
- "total_gists": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "total_commit_comments": {
- "type": "number"
- },
- "total_gist_comments": {
- "type": "number"
- },
- "total_issue_comments": {
- "type": "number"
- },
- "total_pull_request_comments": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/enterprise/stats/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n type: 'type'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/list-global-hooks.json b/openapi/ghe-2.17/operations/enterprise-admin/list-global-hooks.json
deleted file mode 100644
index ff0a446b1e..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/list-global-hooks.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "List global hooks",
- "description": "",
- "operationId": "enterprise-admin-list-global-hooks",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/global_webhooks/#list-global-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/list-personal-access-tokens.json b/openapi/ghe-2.17/operations/enterprise-admin/list-personal-access-tokens.json
deleted file mode 100644
index c426a4ef21..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/list-personal-access-tokens.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List personal access tokens",
- "description": "Lists personal access tokens for all users, including admin users.",
- "operationId": "enterprise-admin-list-personal-access-tokens",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#list-personal-access-tokens"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/tokens"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-environments.json b/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-environments.json
deleted file mode 100644
index c61461dfc9..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-environments.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List pre-receive environments",
- "description": "",
- "operationId": "enterprise-admin-list-pre-receive-environments",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_environments/#list-pre-receive-environments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-hooks-for-org.json b/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-hooks-for-org.json
deleted file mode 100644
index 88ead40117..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-hooks-for-org.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "List pre-receive hooks for organization",
- "description": "List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.",
- "operationId": "enterprise-admin-list-pre-receive-hooks-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/org_pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json b/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json
deleted file mode 100644
index fe5a7ad08f..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-hooks-for-repo.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List pre-receive hooks for repository",
- "description": "List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.",
- "operationId": "enterprise-admin-list-pre-receive-hooks-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/repo_pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-hooks.json b/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-hooks.json
deleted file mode 100644
index e1cbed60cd..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/list-pre-receive-hooks.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "List pre-receive hooks",
- "description": "",
- "operationId": "enterprise-admin-list-pre-receive-hooks",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_hooks/#list-pre-receive-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/modify-settings.json b/openapi/ghe-2.17/operations/enterprise-admin/modify-settings.json
deleted file mode 100644
index b8c9e14bb1..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/modify-settings.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Modify settings",
- "description": "For a list of the available settings, see the [Retrieve settings endpoint](https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#retrieve-settings).",
- "operationId": "enterprise-admin-modify-settings",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#modify-settings"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "settings": {
- "description": "A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify.",
- "type": "string"
- }
- },
- "required": [
- "settings"
- ]
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings \\\n -d '{\"settings\":\"settings\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n settings: 'settings'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/ping-global-hook.json b/openapi/ghe-2.17/operations/enterprise-admin/ping-global-hook.json
deleted file mode 100644
index 8076babcb2..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/ping-global-hook.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Ping a global hook",
- "description": "This will trigger a [ping event](https://developer.github.com/enterprise/2.17/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "enterprise-admin-ping-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/global_webhooks/#ping-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks//pings"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json b/openapi/ghe-2.17/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json
deleted file mode 100644
index 4aaae951c4..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/promote-ordinary-user-to-site-administrator.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Promote an ordinary user to a site administrator",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "enterprise-admin-promote-ordinary-user-to-site-administrator",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#promote-an-ordinary-user-to-a-site-administrator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//site_admin"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/queue-indexing-job.json b/openapi/ghe-2.17/operations/enterprise-admin/queue-indexing-job.json
deleted file mode 100644
index c9e7af27f9..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/queue-indexing-job.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Queue an indexing job",
- "description": "You can index the following targets (replace `:owner` with the name of a user or organization account and `:repository` with the name of a repository):\n\n| Target | Description |\n| --------------------------- | -------------------------------------------------------------------- |\n| `:owner` | A user or organization account. |\n| `:owner/:repository` | A repository. |\n| `:owner/*` | All of a user or organization's repositories. |\n| `:owner/:repository/issues` | All the issues in a repository. |\n| `:owner/*/issues` | All the issues in all of a user or organization's repositories. |\n| `:owner/:repository/code` | All the source code in a repository. |\n| `:owner/*/code` | All the source code in all of a user or organization's repositories. |",
- "operationId": "enterprise-admin-queue-indexing-job",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/search_indexing/#queue-an-indexing-job"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "target": {
- "description": "A string representing the item to index.",
- "type": "string"
- }
- },
- "required": [
- "target"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/staff/indexing_jobs \\\n -d '{\"target\":\"target\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n target: 'target'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/remove-authorized-ssh-key.json b/openapi/ghe-2.17/operations/enterprise-admin/remove-authorized-ssh-key.json
deleted file mode 100644
index 5d9c8b60a3..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/remove-authorized-ssh-key.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Remove an authorized SSH key",
- "description": "",
- "operationId": "enterprise-admin-remove-authorized-ssh-key",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#remove-an-authorized-ssh-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "authorized_key": {
- "description": "The path to the public SSH key.",
- "type": "string"
- }
- },
- "required": [
- "authorized_key"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys \\\n -d '{\"authorized_key\":\"authorized_key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n authorized_key: 'authorized_key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json b/openapi/ghe-2.17/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json
deleted file mode 100644
index 6b336563c6..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-org.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove enforcement overrides for a pre-receive hook for organization",
- "description": "Removes any overrides for this hook at the org level for this org.",
- "operationId": "enterprise-admin-remove-enforcement-overrides-for-pre-receive-hook-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/org_pre_receive_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json b/openapi/ghe-2.17/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json
deleted file mode 100644
index 3ac7d35c94..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/remove-enforcement-overrides-for-pre-receive-hook-for-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Remove enforcement overrides for a pre-receive hook for repository",
- "description": "Deletes any overridden enforcement on this repository for the specified hook.\n\nResponds with effective values inherited from owner and/or global level.",
- "operationId": "enterprise-admin-remove-enforcement-overrides-for-pre-receive-hook-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/repo_pre_receive_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/rename-org.json b/openapi/ghe-2.17/operations/enterprise-admin/rename-org.json
deleted file mode 100644
index aaf0934bb0..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/rename-org.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Rename an organization",
- "description": "",
- "operationId": "enterprise-admin-rename-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/orgs/#rename-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The organization's new name.",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/organizations/ \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/rename-user.json b/openapi/ghe-2.17/operations/enterprise-admin/rename-user.json
deleted file mode 100644
index 22aab8f01a..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/rename-user.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Rename an existing user",
- "description": "",
- "operationId": "enterprise-admin-rename-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#rename-an-existing-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "login": {
- "description": "The user's new username.",
- "type": "string"
- }
- },
- "required": [
- "login"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "message": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/users/ \\\n -d '{\"login\":\"login\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username',\n login: 'login'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/retrieve-authorized-ssh-keys.json b/openapi/ghe-2.17/operations/enterprise-admin/retrieve-authorized-ssh-keys.json
deleted file mode 100644
index 458be8abc5..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/retrieve-authorized-ssh-keys.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Retrieve authorized SSH keys",
- "description": "",
- "operationId": "enterprise-admin-retrieve-authorized-ssh-keys",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#retrieve-authorized-ssh-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings/authorized-keys"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/retrieve-settings.json b/openapi/ghe-2.17/operations/enterprise-admin/retrieve-settings.json
deleted file mode 100644
index 8fecbc6c2a..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/retrieve-settings.json
+++ /dev/null
@@ -1,452 +0,0 @@
-{
- "summary": "Retrieve settings",
- "description": "",
- "operationId": "enterprise-admin-retrieve-settings",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#retrieve-settings"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "enterprise": {
- "type": "object",
- "properties": {
- "private_mode": {
- "type": "boolean"
- },
- "public_pages": {
- "type": "boolean"
- },
- "subdomain_isolation": {
- "type": "boolean"
- },
- "signup_enabled": {
- "type": "boolean"
- },
- "github_hostname": {
- "type": "string"
- },
- "identicons_host": {
- "type": "string"
- },
- "http_proxy": {
- "type": "string"
- },
- "auth_mode": {
- "type": "string"
- },
- "expire_sessions": {
- "type": "boolean"
- },
- "admin_password": {
- "type": "string"
- },
- "configuration_id": {
- "type": "number"
- },
- "configuration_run_count": {
- "type": "number"
- },
- "avatar": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "uri": {
- "type": "string"
- }
- }
- },
- "customer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "uuid": {
- "type": "string"
- },
- "secret_key_data": {
- "type": "string"
- },
- "public_key_data": {
- "type": "string"
- }
- }
- },
- "license": {
- "type": "object",
- "properties": {
- "seats": {
- "type": "number"
- },
- "evaluation": {
- "type": "boolean"
- },
- "perpetual": {
- "type": "boolean"
- },
- "unlimited_seating": {
- "type": "boolean"
- },
- "support_key": {
- "type": "string"
- },
- "ssh_allowed": {
- "type": "boolean"
- },
- "cluster_support": {
- "type": "boolean"
- },
- "expire_at": {
- "type": "string"
- }
- }
- },
- "github_ssl": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "cert": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- }
- },
- "ldap": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string"
- },
- "port": {
- "type": "number"
- },
- "base": {
- "type": "array",
- "items": {}
- },
- "uid": {
- "type": "string"
- },
- "bind_dn": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "method": {
- "type": "string"
- },
- "search_strategy": {
- "type": "string"
- },
- "user_groups": {
- "type": "array",
- "items": {}
- },
- "admin_group": {
- "type": "string"
- },
- "virtual_attribute_enabled": {
- "type": "boolean"
- },
- "recursive_group_search": {
- "type": "boolean"
- },
- "posix_support": {
- "type": "boolean"
- },
- "user_sync_emails": {
- "type": "boolean"
- },
- "user_sync_keys": {
- "type": "boolean"
- },
- "user_sync_interval": {
- "type": "number"
- },
- "team_sync_interval": {
- "type": "number"
- },
- "sync_enabled": {
- "type": "boolean"
- },
- "reconciliation": {
- "type": "object",
- "properties": {
- "user": {
- "type": "string"
- },
- "org": {
- "type": "string"
- }
- }
- },
- "profile": {
- "type": "object",
- "properties": {
- "uid": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "mail": {
- "type": "string"
- },
- "key": {
- "type": "string"
- }
- }
- }
- }
- },
- "cas": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- }
- }
- },
- "saml": {
- "type": "object",
- "properties": {
- "sso_url": {
- "type": "string"
- },
- "certificate": {
- "type": "string"
- },
- "certificate_path": {
- "type": "string"
- },
- "issuer": {
- "type": "string"
- },
- "idp_initiated_sso": {
- "type": "boolean"
- },
- "disable_admin_demote": {
- "type": "boolean"
- }
- }
- },
- "github_oauth": {
- "type": "object",
- "properties": {
- "client_id": {
- "type": "string"
- },
- "client_secret": {
- "type": "string"
- },
- "organization_name": {
- "type": "string"
- },
- "organization_team": {
- "type": "string"
- }
- }
- },
- "smtp": {
- "type": "object",
- "properties": {
- "smtp": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "address": {
- "type": "string"
- },
- "authentication": {
- "type": "string"
- },
- "port": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "user_name": {
- "type": "string"
- },
- "enable_starttls_auto": {
- "type": "boolean"
- },
- "password": {
- "type": "string"
- },
- "smtp.discard-to-noreply-address": {
- "type": "boolean"
- },
- "support_address": {
- "type": "string"
- },
- "support_address_type": {
- "type": "string"
- },
- "noreply_address": {
- "type": "string"
- }
- }
- }
- }
- },
- "ntp": {
- "type": "object",
- "properties": {
- "primary_server": {
- "type": "string"
- },
- "secondary_server": {
- "type": "string"
- }
- }
- },
- "timezone": {
- "type": "string"
- },
- "snmp": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "community": {
- "type": "string"
- }
- }
- },
- "syslog": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "server": {
- "type": "string"
- },
- "protocol_name": {
- "type": "string"
- }
- }
- },
- "assets": {
- "type": "string"
- },
- "pages": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "collectd": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "server": {
- "type": "string"
- },
- "port": {
- "type": "number"
- },
- "encryption": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "password": {
- "type": "string"
- }
- }
- },
- "mapping": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "tileserver": {
- "type": "string"
- },
- "basemap": {
- "type": "string"
- },
- "token": {
- "type": "string"
- }
- }
- },
- "load_balancer": {
- "type": "string"
- }
- }
- },
- "run_list": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/settings"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/start-configuration-process.json b/openapi/ghe-2.17/operations/enterprise-admin/start-configuration-process.json
deleted file mode 100644
index 2dd4898062..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/start-configuration-process.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Start a configuration process",
- "description": "This endpoint allows you to start a configuration process at any time for your updated settings to take effect:",
- "operationId": "enterprise-admin-start-configuration-process",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#start-a-configuration-process"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/configure"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/suspend-user.json b/openapi/ghe-2.17/operations/enterprise-admin/suspend-user.json
deleted file mode 100644
index 3efc41a91d..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/suspend-user.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Suspend a user",
- "description": "If your GitHub Enterprise Server instance uses [LDAP Sync with Active Directory LDAP servers](https://help.github.com/enterprise/admin/guides/user-management/using-ldap), Active Directory LDAP-authenticated users cannot be suspended through this API. If you attempt to suspend an Active Directory LDAP-authenticated user through this API, it will return a `403` response.\n\nYou can suspend any user account except your own.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "enterprise-admin-suspend-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#suspend-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reason": {
- "description": "The reason the user is being suspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Suspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//suspended"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/sync-ldap-mapping-for-team.json b/openapi/ghe-2.17/operations/enterprise-admin/sync-ldap-mapping-for-team.json
deleted file mode 100644
index 5f910a7e27..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/sync-ldap-mapping-for-team.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Sync LDAP mapping for a team",
- "description": "Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.",
- "operationId": "enterprise-admin-sync-ldap-mapping-for-team",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/ldap/#sync-ldap-mapping-for-a-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/teams//sync"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/sync-ldap-mapping-for-user.json b/openapi/ghe-2.17/operations/enterprise-admin/sync-ldap-mapping-for-user.json
deleted file mode 100644
index 0d43bee824..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/sync-ldap-mapping-for-user.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Sync LDAP mapping for a user",
- "description": "Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.",
- "operationId": "enterprise-admin-sync-ldap-mapping-for-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/ldap/#sync-ldap-mapping-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/users//sync"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/trigger-pre-receive-environment-download.json b/openapi/ghe-2.17/operations/enterprise-admin/trigger-pre-receive-environment-download.json
deleted file mode 100644
index 7dceb64e29..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/trigger-pre-receive-environment-download.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Trigger a pre-receive environment download",
- "description": "Triggers a new download of the environment tarball from the environment's `image_url`. When the download is finished, the newly downloaded tarball will overwrite the existing environment.\n\nIf a download cannot be triggered, you will get a reponse like this:\n\nThe possible error messages are:\n\n* _Cannot modify or delete the default environment_\n* _Can not start a new download when a download is in progress_",
- "operationId": "enterprise-admin-trigger-pre-receive-environment-download",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_environments/#trigger-a-pre-receive-environment-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments//downloads"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/unsuspend-user.json b/openapi/ghe-2.17/operations/enterprise-admin/unsuspend-user.json
deleted file mode 100644
index 3177955719..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/unsuspend-user.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "summary": "Unsuspend a user",
- "description": "If your GitHub Enterprise Server instance uses [LDAP Sync with Active Directory LDAP servers](https://help.github.com/enterprise/admin/guides/user-management/using-ldap), this API is disabled and will return a `403` response. Active Directory LDAP-authenticated users cannot be unsuspended using the API.",
- "operationId": "enterprise-admin-unsuspend-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/users/#unsuspend-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reason": {
- "description": "The reason the user is being unsuspended. This message will be logged in the [audit log](https://help.github.com/enterprise/admin/articles/audit-logging/). If you don't provide a `reason`, it will default to \"Unsuspended via API by _SITE\\_ADMINISTRATOR_\", where _SITE\\_ADMINISTRATOR_ is the person who performed the action.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//suspended"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/update-global-hook.json b/openapi/ghe-2.17/operations/enterprise-admin/update-global-hook.json
deleted file mode 100644
index 10f7633c30..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/update-global-hook.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "summary": "Edit a global hook",
- "description": "Parameters that are not provided will be overwritten with the default value or removed if no default exists.",
- "operationId": "enterprise-admin-update-global-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/global_webhooks/#edit-a-global-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.superpro-preview+json"
- },
- "required": true
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.17/v3/enterprise-admin/global_webhooks/#update-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.17/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.superpro-preview+json\" \\\n https://developer.github.com/admin/hooks/ \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/update-ldap-mapping-for-team.json b/openapi/ghe-2.17/operations/enterprise-admin/update-ldap-mapping-for-team.json
deleted file mode 100644
index de643c3ee5..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/update-ldap-mapping-for-team.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "summary": "Update LDAP mapping for a team",
- "description": "Updates the [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Create team](https://developer.github.com/enterprise/2.17/v3/teams/#create-team) endpoint to create a team with LDAP mapping.\n\nIf you pass the `hellcat-preview` media type, you can also update the LDAP mapping of a child team.",
- "operationId": "enterprise-admin-update-ldap-mapping-for-team",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ldap_dn": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/teams//mapping"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/update-ldap-mapping-for-user.json b/openapi/ghe-2.17/operations/enterprise-admin/update-ldap-mapping-for-user.json
deleted file mode 100644
index f92f4e3c1e..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/update-ldap-mapping-for-user.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "summary": "Update LDAP mapping for a user",
- "description": "",
- "operationId": "enterprise-admin-update-ldap-mapping-for-user",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ldap_dn": {
- "type": "string"
- },
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/ldap/users//mapping"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-environment.json b/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-environment.json
deleted file mode 100644
index cbf24eceaa..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-environment.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Edit a pre-receive environment",
- "description": "If you attempt to modify the default environment, you will get a response like this:",
- "operationId": "enterprise-admin-update-pre-receive-environment",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_environments/#edit-a-pre-receive-environment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_environment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_environment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "This pre-receive environment's new name.",
- "type": "string"
- },
- "image_url": {
- "description": "URL from which to download a tarball of this environment.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre-receive-environments/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_environment_id: 'pre_receive_environment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json b/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json
deleted file mode 100644
index 9581b12b3e..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-org.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Update pre-receive hook enforcement for organization",
- "description": "For pre-receive hooks which are allowed to be configured at the org level, you can set `enforcement` and `allow_downstream_configuration`",
- "operationId": "enterprise-admin-update-pre-receive-hook-enforcement-for-org",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/org_pre_receive_hooks/#update-pre-receive-hook-enforcement"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n org: 'org',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json b/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json
deleted file mode 100644
index 484fc9fba5..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-hook-enforcement-for-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Update pre-receive hook enforcement for repository",
- "description": "For pre-receive hooks which are allowed to be configured at the repo level, you can set `enforcement`",
- "operationId": "enterprise-admin-update-pre-receive-hook-enforcement-for-repo",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/repo_pre_receive_hooks/#update-pre-receive-hook-enforcement"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "configuration_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pre-receive-hooks/:pre_receive_hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n owner: 'octocat',\n repo: 'hello-world',\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-hook.json b/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-hook.json
deleted file mode 100644
index 6c7391b68e..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/update-pre-receive-hook.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "summary": "Edit a pre-receive hook",
- "description": "",
- "operationId": "enterprise-admin-update-pre-receive-hook",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/pre_receive_hooks/#edit-a-pre-receive-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "pre_receive_hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pre_receive_hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "enforcement": {
- "type": "string"
- },
- "script": {
- "type": "string"
- },
- "script_repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "full_name": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- },
- "environment": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "image_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "default_environment": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "hooks_count": {
- "type": "number"
- },
- "download": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "downloaded_at": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- },
- "allow_downstream_configuration": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/admin/pre_receive_hooks/"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n pre_receive_hook_id: 'pre_receive_hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/upgrade-license.json b/openapi/ghe-2.17/operations/enterprise-admin/upgrade-license.json
deleted file mode 100644
index 1fe41a40ae..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/upgrade-license.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "summary": "Upgrade a license",
- "description": "This API upgrades your license and also triggers the configuration process:",
- "operationId": "enterprise-admin-upgrade-license",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#upgrade-a-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "license": {
- "description": "The content of your new _.ghl_ license file.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/upgrade"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/enterprise-admin/upload-license-for-first-time.json b/openapi/ghe-2.17/operations/enterprise-admin/upload-license-for-first-time.json
deleted file mode 100644
index 0b7755c932..0000000000
--- a/openapi/ghe-2.17/operations/enterprise-admin/upload-license-for-first-time.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "summary": "Upload a license for the first time",
- "description": "When you boot a GitHub Enterprise Server instance for the first time, you can use the following endpoint to upload a license:\n\nNote that you need to POST to [`/setup/api/configure`](https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#start-a-configuration-process) to start the actual configuration process.\n\nWhen using this endpoint, your GitHub Enterprise Server instance must have a password set. This can be accomplished two ways:\n\n1. If you're working directly with the API before accessing the web interface, you must pass in the password parameter to set your password.\n2. If you set up your instance via the web interface before accessing the API, your calls to this endpoint do not need the password parameter.\n\nFor a list of the available settings, see the [Retrieve settings endpoint](https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#retrieve-settings).",
- "operationId": "enterprise-admin-upload-license-for-first-time",
- "tags": [
- "enterprise-admin"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/enterprise-admin/management_console/#upload-a-license-for-the-first-time"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "license": {
- "description": "The content of your _.ghl_ license file.",
- "type": "string"
- },
- "password": {
- "description": "You **must** provide a password _only if_ you are uploading your license for the first time. If you previously set a password through the web interface, you don't need this parameter.",
- "type": "string"
- },
- "settings": {
- "description": "An optional JSON string containing the installation settings.",
- "type": "string"
- }
- },
- "required": [
- "license"
- ]
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/setup/api/start \\\n -d '{\"license\":\"license\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.enterprise-admin.get({\n license: 'license'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/check-is-starred.json b/openapi/ghe-2.17/operations/gists/check-is-starred.json
deleted file mode 100644
index 514175601f..0000000000
--- a/openapi/ghe-2.17/operations/gists/check-is-starred.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Check if a gist is starred",
- "description": "",
- "operationId": "gists-check-is-starred",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#check-if-a-gist-is-starred"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/create-comment.json b/openapi/ghe-2.17/operations/gists/create-comment.json
deleted file mode 100644
index dc08cd1ec6..0000000000
--- a/openapi/ghe-2.17/operations/gists/create-comment.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "",
- "operationId": "gists-create-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The comment text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/create.json b/openapi/ghe-2.17/operations/gists/create.json
deleted file mode 100644
index 3a4edfc602..0000000000
--- a/openapi/ghe-2.17/operations/gists/create.json
+++ /dev/null
@@ -1,470 +0,0 @@
-{
- "summary": "Create a gist",
- "description": "Allows you to add a new gist with one or more files.\n\n**Note:** Don't name your files \"gistfile\" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.",
- "operationId": "gists-create",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#create-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "files": {
- "description": "The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`.",
- "type": "object",
- "properties": {
- "content": {
- "description": "The content of the file.",
- "type": "string"
- }
- }
- },
- "description": {
- "description": "A descriptive name for this gist.",
- "type": "string"
- },
- "public": {
- "description": "When `true`, the gist will be public and available for anyone to see.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "files"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists \\\n -d '{\"files\":\"files\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n files: 'files'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/delete-comment.json b/openapi/ghe-2.17/operations/gists/delete-comment.json
deleted file mode 100644
index bcc9d07974..0000000000
--- a/openapi/ghe-2.17/operations/gists/delete-comment.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "gists-delete-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/delete.json b/openapi/ghe-2.17/operations/gists/delete.json
deleted file mode 100644
index 36ffed6ec7..0000000000
--- a/openapi/ghe-2.17/operations/gists/delete.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a gist",
- "description": "",
- "operationId": "gists-delete",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#delete-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/fork.json b/openapi/ghe-2.17/operations/gists/fork.json
deleted file mode 100644
index 9af0250591..0000000000
--- a/openapi/ghe-2.17/operations/gists/fork.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Fork a gist",
- "description": "**Note**: This was previously `/gists/:gist_id/fork`.",
- "operationId": "gists-fork",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#fork-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//forks"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/get-comment.json b/openapi/ghe-2.17/operations/gists/get-comment.json
deleted file mode 100644
index de417622e6..0000000000
--- a/openapi/ghe-2.17/operations/gists/get-comment.json
+++ /dev/null
@@ -1,147 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "gists-get-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/get-revision.json b/openapi/ghe-2.17/operations/gists/get-revision.json
deleted file mode 100644
index c20dd601c0..0000000000
--- a/openapi/ghe-2.17/operations/gists/get-revision.json
+++ /dev/null
@@ -1,455 +0,0 @@
-{
- "summary": "Get a specific revision of a gist",
- "description": "",
- "operationId": "gists-get-revision",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#get-a-specific-revision-of-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//:sha"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/get.json b/openapi/ghe-2.17/operations/gists/get.json
deleted file mode 100644
index 96ef3bdf5d..0000000000
--- a/openapi/ghe-2.17/operations/gists/get.json
+++ /dev/null
@@ -1,446 +0,0 @@
-{
- "summary": "Get a single gist",
- "description": "",
- "operationId": "gists-get",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#get-a-single-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_ruby.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world_python.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/list-comments.json b/openapi/ghe-2.17/operations/gists/list-comments.json
deleted file mode 100644
index 91e373891a..0000000000
--- a/openapi/ghe-2.17/operations/gists/list-comments.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List comments on a gist",
- "description": "",
- "operationId": "gists-list-comments",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/comments/#list-comments-on-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/list-commits.json b/openapi/ghe-2.17/operations/gists/list-commits.json
deleted file mode 100644
index a919c0d9c1..0000000000
--- a/openapi/ghe-2.17/operations/gists/list-commits.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List gist commits",
- "description": "",
- "operationId": "gists-list-commits",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#list-gist-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//commits"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/list-forks.json b/openapi/ghe-2.17/operations/gists/list-forks.json
deleted file mode 100644
index 86a9c4f22e..0000000000
--- a/openapi/ghe-2.17/operations/gists/list-forks.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List gist forks",
- "description": "",
- "operationId": "gists-list-forks",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#list-gist-forks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//forks"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/list-public-for-user.json b/openapi/ghe-2.17/operations/gists/list-public-for-user.json
deleted file mode 100644
index 8d09f7dd0e..0000000000
--- a/openapi/ghe-2.17/operations/gists/list-public-for-user.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List public gists for the specified user",
- "description": "",
- "operationId": "gists-list-public-for-user",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#list-a-users-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//gists"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/list-public.json b/openapi/ghe-2.17/operations/gists/list-public.json
deleted file mode 100644
index af694ac983..0000000000
--- a/openapi/ghe-2.17/operations/gists/list-public.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List all public gists",
- "description": "List all public gists sorted by most recently updated to least recently updated.\n\nNote: With [pagination](https://developer.github.com/enterprise/2.17/v3/#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.",
- "operationId": "gists-list-public",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#list-all-public-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/public"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/list-starred.json b/openapi/ghe-2.17/operations/gists/list-starred.json
deleted file mode 100644
index d5445688ce..0000000000
--- a/openapi/ghe-2.17/operations/gists/list-starred.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List starred gists",
- "description": "List the authenticated user's starred gists:",
- "operationId": "gists-list-starred",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#list-starred-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/starred"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/list.json b/openapi/ghe-2.17/operations/gists/list.json
deleted file mode 100644
index 2d301ea956..0000000000
--- a/openapi/ghe-2.17/operations/gists/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List the authenticated user's gists or if called anonymously, this will return all public gists",
- "description": "",
- "operationId": "gists-list",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#list-a-users-gists"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/star.json b/openapi/ghe-2.17/operations/gists/star.json
deleted file mode 100644
index 43486caf9f..0000000000
--- a/openapi/ghe-2.17/operations/gists/star.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Star a gist",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "gists-star",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#star-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/unstar.json b/openapi/ghe-2.17/operations/gists/unstar.json
deleted file mode 100644
index ff067663fb..0000000000
--- a/openapi/ghe-2.17/operations/gists/unstar.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Unstar a gist",
- "description": "",
- "operationId": "gists-unstar",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#unstar-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//star"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/update-comment.json b/openapi/ghe-2.17/operations/gists/update-comment.json
deleted file mode 100644
index 65071402c5..0000000000
--- a/openapi/ghe-2.17/operations/gists/update-comment.json
+++ /dev/null
@@ -1,165 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "gists-update-comment",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The comment text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists//comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gists/update.json b/openapi/ghe-2.17/operations/gists/update.json
deleted file mode 100644
index c7e5a31272..0000000000
--- a/openapi/ghe-2.17/operations/gists/update.json
+++ /dev/null
@@ -1,475 +0,0 @@
-{
- "summary": "Edit a gist",
- "description": "Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged.",
- "operationId": "gists-update",
- "tags": [
- "gists"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gists/#edit-a-gist"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gist_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "gist_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "description": {
- "description": "A descriptive name for this gist.",
- "type": "string"
- },
- "files": {
- "description": "The filenames and content that make up this gist.",
- "type": "object",
- "properties": {
- "content": {
- "description": "The updated content of the file.",
- "type": "string"
- },
- "filename": {
- "description": "The new name for this file. To delete a file, set the value of the filename to `null`.",
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "git_pull_url": {
- "type": "string"
- },
- "git_push_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "files": {
- "type": "object",
- "properties": {
- "hello_world.rb": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.py": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "hello_world.md": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- },
- "new_file.txt": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "truncated": {
- "type": "boolean"
- },
- "content": {
- "type": "string"
- }
- }
- }
- }
- },
- "public": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "user": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "truncated": {
- "type": "boolean"
- },
- "forks": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- },
- "history": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "change_status": {
- "type": "object",
- "properties": {
- "deletions": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "committed_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gists/"
- },
- {
- "lang": "JS",
- "source": "octokit.gists.get({\n gist_id: 'gist_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/create-blob.json b/openapi/ghe-2.17/operations/git/create-blob.json
deleted file mode 100644
index ae5112fac1..0000000000
--- a/openapi/ghe-2.17/operations/git/create-blob.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "summary": "Create a blob",
- "description": "",
- "operationId": "git-create-blob",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/blobs/#create-a-blob"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The new blob's content.",
- "type": "string"
- },
- "encoding": {
- "description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "type": "string",
- "default": "utf-8"
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/blobs \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/create-commit.json b/openapi/ghe-2.17/operations/git/create-commit.json
deleted file mode 100644
index 394194053f..0000000000
--- a/openapi/ghe-2.17/operations/git/create-commit.json
+++ /dev/null
@@ -1,223 +0,0 @@
-{
- "summary": "Create a commit",
- "description": "Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\nIn this example, the payload of the signature would be:\n\n\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-create-commit",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/commits/#create-a-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message",
- "type": "string"
- },
- "tree": {
- "description": "The SHA of the tree object this commit points to",
- "type": "string"
- },
- "parents": {
- "description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "author": {
- "description": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- },
- "date": {
- "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- },
- "committer": {
- "description": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- },
- "date": {
- "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- },
- "signature": {
- "description": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.",
- "type": "string"
- }
- },
- "required": [
- "message",
- "tree",
- "parents"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/commits \\\n -d '{\"message\":\"message\",\"tree\":\"tree\",\"parents\":\"parents\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n message: 'message',\n tree: 'tree',\n parents: 'parents'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/create-ref.json b/openapi/ghe-2.17/operations/git/create-ref.json
deleted file mode 100644
index ff21ad6a4c..0000000000
--- a/openapi/ghe-2.17/operations/git/create-ref.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Create a reference",
- "description": "Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches.",
- "operationId": "git-create-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/refs/#create-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ref": {
- "description": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.",
- "type": "string"
- },
- "sha": {
- "description": "The SHA1 value for this reference.",
- "type": "string"
- }
- },
- "required": [
- "ref",
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ref": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs \\\n -d '{\"ref\":\"ref\",\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/create-tag.json b/openapi/ghe-2.17/operations/git/create-tag.json
deleted file mode 100644
index ac3ad055e1..0000000000
--- a/openapi/ghe-2.17/operations/git/create-tag.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Create a tag object",
- "description": "Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://developer.github.com/enterprise/2.17/v3/git/refs/#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://developer.github.com/enterprise/2.17/v3/git/refs/#create-a-reference) the tag reference - this call would be unnecessary.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-create-tag",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/tags/#create-a-tag-object"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag": {
- "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").",
- "type": "string"
- },
- "message": {
- "description": "The tag message.",
- "type": "string"
- },
- "object": {
- "description": "The SHA of the git object this is tagging.",
- "type": "string"
- },
- "type": {
- "description": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.",
- "type": "string",
- "enum": [
- "commit",
- "tree",
- "blob"
- ]
- },
- "tagger": {
- "description": "An object with information about the individual creating the tag.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author of the tag",
- "type": "string"
- },
- "email": {
- "description": "The email of the author of the tag",
- "type": "string"
- },
- "date": {
- "description": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- }
- },
- "required": [
- "tag",
- "message",
- "object",
- "type"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "node_id": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tagger": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/tags \\\n -d '{\"tag\":\"tag\",\"message\":\"message\",\"object\":\"object\",\"type\":\"type\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag: 'tag',\n message: 'message',\n object: 'object',\n type: 'type'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/create-tree.json b/openapi/ghe-2.17/operations/git/create-tree.json
deleted file mode 100644
index e3a9a44cfc..0000000000
--- a/openapi/ghe-2.17/operations/git/create-tree.json
+++ /dev/null
@@ -1,161 +0,0 @@
-{
- "summary": "Create a tree",
- "description": "The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out.",
- "operationId": "git-create-tree",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/trees/#create-a-tree"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tree": {
- "description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The file referenced in the tree.",
- "type": "string"
- },
- "mode": {
- "description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.",
- "type": "string",
- "enum": [
- "100644",
- "100755",
- "040000",
- "160000",
- "120000"
- ]
- },
- "type": {
- "description": "Either `blob`, `tree`, or `commit`.",
- "type": "string",
- "enum": [
- "blob",
- "tree",
- "commit"
- ]
- },
- "sha": {
- "description": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "type": "string"
- },
- "content": {
- "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.",
- "type": "string"
- }
- }
- }
- },
- "base_tree": {
- "description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.",
- "type": "string"
- }
- },
- "required": [
- "tree"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "tree": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- },
- "mode": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/trees \\\n -d '{\"tree\":\"tree\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tree: 'tree'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/delete-ref.json b/openapi/ghe-2.17/operations/git/delete-ref.json
deleted file mode 100644
index 856a62392e..0000000000
--- a/openapi/ghe-2.17/operations/git/delete-ref.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a reference",
- "description": "```\nDELETE /repos/octocat/Hello-World/git/refs/heads/feature-a\n```\n\n```\nDELETE /repos/octocat/Hello-World/git/refs/tags/v1.0\n```",
- "operationId": "git-delete-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/refs/#delete-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/get-blob.json b/openapi/ghe-2.17/operations/git/get-blob.json
deleted file mode 100644
index 16c5622dce..0000000000
--- a/openapi/ghe-2.17/operations/git/get-blob.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Get a blob",
- "description": "The `content` in the response will always be Base64 encoded.\n\n_Note_: This API supports blobs up to 100 megabytes in size.",
- "operationId": "git-get-blob",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/blobs/#get-a-blob"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "file_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "file_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/blobs/:file_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n file_sha: 'file_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/get-commit.json b/openapi/ghe-2.17/operations/git/get-commit.json
deleted file mode 100644
index e865d44ca9..0000000000
--- a/openapi/ghe-2.17/operations/git/get-commit.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "summary": "Get a commit",
- "description": "Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-get-commit",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/commits/#get-a-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/commits/:commit_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/get-ref.json b/openapi/ghe-2.17/operations/git/get-ref.json
deleted file mode 100644
index ba05fd4eaf..0000000000
--- a/openapi/ghe-2.17/operations/git/get-ref.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get a reference",
- "description": "Returns a branch or tag reference. Other than the [REST API](https://developer.github.com/v3/git/refs/#get-a-reference) it always returns a single reference. If the REST API returns with an array then the method responds with an error.",
- "operationId": "git-get-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/refs/#get-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "Must be formatted as `heads/branch`, not just `branch`"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/get-tag.json b/openapi/ghe-2.17/operations/git/get-tag.json
deleted file mode 100644
index 348df4184a..0000000000
--- a/openapi/ghe-2.17/operations/git/get-tag.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "summary": "Get a tag",
- "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "git-get-tag",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/tags/#get-a-tag"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tag_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tag_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "node_id": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tagger": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/tags/:tag_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag_sha: 'tag_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/get-tree.json b/openapi/ghe-2.17/operations/git/get-tree.json
deleted file mode 100644
index 914a6ab955..0000000000
--- a/openapi/ghe-2.17/operations/git/get-tree.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get a tree",
- "description": "If `truncated` in the response is `true`, the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, omit the `recursive` parameter, and fetch one sub-tree at a time. If you need to fetch even more items, you can clone the repository and iterate over the Git data locally.",
- "operationId": "git-get-tree",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/trees/#get-a-tree"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tree_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tree_sha parameter"
- },
- {
- "name": "recursive",
- "in": "query",
- "schema": {
- "type": "integer",
- "enum": [
- 1
- ]
- },
- "description": "recursive parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/trees/:tree_sha"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n tree_sha: 'tree_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/git/update-ref.json b/openapi/ghe-2.17/operations/git/update-ref.json
deleted file mode 100644
index 4196b17071..0000000000
--- a/openapi/ghe-2.17/operations/git/update-ref.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "summary": "Update a reference",
- "description": "",
- "operationId": "git-update-ref",
- "tags": [
- "git"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/git/refs/#update-a-reference"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "sha": {
- "description": "The SHA1 value to set this reference to",
- "type": "string"
- },
- "force": {
- "description": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "ref": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "object": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/git/refs/:ref \\\n -d '{\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.git.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gitignore/get-template.json b/openapi/ghe-2.17/operations/gitignore/get-template.json
deleted file mode 100644
index f469b17c3c..0000000000
--- a/openapi/ghe-2.17/operations/gitignore/get-template.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get a single template",
- "description": "The API also allows fetching the source of a single template.\n\nUse the raw [media type](https://developer.github.com/enterprise/2.17/v3/media/) to get the raw contents.\n\n",
- "operationId": "gitignore-get-template",
- "tags": [
- "gitignore"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gitignore/#get-a-single-template"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "source": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gitignore/templates/"
- },
- {
- "lang": "JS",
- "source": "octokit.gitignore.get({\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/gitignore/list-templates.json b/openapi/ghe-2.17/operations/gitignore/list-templates.json
deleted file mode 100644
index 503de95daa..0000000000
--- a/openapi/ghe-2.17/operations/gitignore/list-templates.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "summary": "Listing available templates",
- "description": "List all templates available to pass as an option when [creating a repository](https://developer.github.com/enterprise/2.17/v3/repos/#create).",
- "operationId": "gitignore-list-templates",
- "tags": [
- "gitignore"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/gitignore/#listing-available-templates"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/gitignore/templates"
- },
- {
- "lang": "JS",
- "source": "octokit.gitignore.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/add-assignees.json b/openapi/ghe-2.17/operations/issues/add-assignees.json
deleted file mode 100644
index 0246b35209..0000000000
--- a/openapi/ghe-2.17/operations/issues/add-assignees.json
+++ /dev/null
@@ -1,516 +0,0 @@
-{
- "summary": "Add assignees to an issue",
- "description": "Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.\n\nThis example adds two assignees to the existing `octocat` assignee.",
- "operationId": "issues-add-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/assignees/#add-assignees-to-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "assignees": {
- "description": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/add-labels.json b/openapi/ghe-2.17/operations/issues/add-labels.json
deleted file mode 100644
index f9b5d99fac..0000000000
--- a/openapi/ghe-2.17/operations/issues/add-labels.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Add labels to an issue",
- "description": "",
- "operationId": "issues-add-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#add-labels-to-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "labels": {
- "description": "The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "labels"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels \\\n -d '{\"labels\":\"labels\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n labels: 'labels'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/check-assignee.json b/openapi/ghe-2.17/operations/issues/check-assignee.json
deleted file mode 100644
index cde252f6fa..0000000000
--- a/openapi/ghe-2.17/operations/issues/check-assignee.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check assignee",
- "description": "Checks if a user has permission to be assigned to an issue in this repository.\n\nIf the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.\n\nOtherwise a `404` status code is returned.",
- "operationId": "issues-check-assignee",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/assignees/#check-assignee"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "assignee",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "assignee parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/assignees/:assignee"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n assignee: 'assignee'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/create-comment.json b/openapi/ghe-2.17/operations/issues/create-comment.json
deleted file mode 100644
index 7b517e679a..0000000000
--- a/openapi/ghe-2.17/operations/issues/create-comment.json
+++ /dev/null
@@ -1,187 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "issues-create-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/create-label.json b/openapi/ghe-2.17/operations/issues/create-label.json
deleted file mode 100644
index f74200a1ff..0000000000
--- a/openapi/ghe-2.17/operations/issues/create-label.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "summary": "Create a label",
- "description": "",
- "operationId": "issues-create-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#create-a-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).",
- "type": "string"
- },
- "color": {
- "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the label.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "color"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels \\\n -d '{\"name\":\"name\",\"color\":\"color\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name',\n color: 'color'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/create-milestone.json b/openapi/ghe-2.17/operations/issues/create-milestone.json
deleted file mode 100644
index b862366977..0000000000
--- a/openapi/ghe-2.17/operations/issues/create-milestone.json
+++ /dev/null
@@ -1,209 +0,0 @@
-{
- "summary": "Create a milestone",
- "description": "",
- "operationId": "issues-create-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/milestones/#create-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the milestone.",
- "type": "string"
- },
- "state": {
- "description": "The state of the milestone. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open"
- },
- "description": {
- "description": "A description of the milestone.",
- "type": "string"
- },
- "due_on": {
- "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- },
- "required": [
- "title"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones \\\n -d '{\"title\":\"title\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/create.json b/openapi/ghe-2.17/operations/issues/create.json
deleted file mode 100644
index a1ca469fa5..0000000000
--- a/openapi/ghe-2.17/operations/issues/create.json
+++ /dev/null
@@ -1,562 +0,0 @@
-{
- "summary": "Create an issue",
- "description": "Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` status.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "issues-create",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/#create-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the issue.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the issue.",
- "type": "string"
- },
- "assignee": {
- "description": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_",
- "type": "string"
- },
- "milestone": {
- "description": "The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._",
- "type": "integer"
- },
- "labels": {
- "description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "assignees": {
- "description": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "title"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues \\\n -d '{\"title\":\"title\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/delete-comment.json b/openapi/ghe-2.17/operations/issues/delete-comment.json
deleted file mode 100644
index 087416bb0b..0000000000
--- a/openapi/ghe-2.17/operations/issues/delete-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "issues-delete-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/delete-label.json b/openapi/ghe-2.17/operations/issues/delete-label.json
deleted file mode 100644
index ba66fa50d4..0000000000
--- a/openapi/ghe-2.17/operations/issues/delete-label.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a label",
- "description": "",
- "operationId": "issues-delete-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#delete-a-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/delete-milestone.json b/openapi/ghe-2.17/operations/issues/delete-milestone.json
deleted file mode 100644
index 8399192cec..0000000000
--- a/openapi/ghe-2.17/operations/issues/delete-milestone.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Delete a milestone",
- "description": "",
- "operationId": "issues-delete-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/milestones/#delete-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/get-comment.json b/openapi/ghe-2.17/operations/issues/get-comment.json
deleted file mode 100644
index 460229050c..0000000000
--- a/openapi/ghe-2.17/operations/issues/get-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "issues-get-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/get-event.json b/openapi/ghe-2.17/operations/issues/get-event.json
deleted file mode 100644
index 404d0eba1c..0000000000
--- a/openapi/ghe-2.17/operations/issues/get-event.json
+++ /dev/null
@@ -1,553 +0,0 @@
-{
- "summary": "Get a single event",
- "description": "",
- "operationId": "issues-get-event",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/events/#get-a-single-event"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "event_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "event_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "actor": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "event": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "commit_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "issue": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/events/:event_id"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n event_id: 'event_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/get-label.json b/openapi/ghe-2.17/operations/issues/get-label.json
deleted file mode 100644
index 39a7589926..0000000000
--- a/openapi/ghe-2.17/operations/issues/get-label.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "summary": "Get a single label",
- "description": "",
- "operationId": "issues-get-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#get-a-single-label"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/get-milestone.json b/openapi/ghe-2.17/operations/issues/get-milestone.json
deleted file mode 100644
index ce7e40456b..0000000000
--- a/openapi/ghe-2.17/operations/issues/get-milestone.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Get a single milestone",
- "description": "",
- "operationId": "issues-get-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/milestones/#get-a-single-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/get.json b/openapi/ghe-2.17/operations/issues/get.json
deleted file mode 100644
index c961da0c24..0000000000
--- a/openapi/ghe-2.17/operations/issues/get.json
+++ /dev/null
@@ -1,537 +0,0 @@
-{
- "summary": "Get a single issue",
- "description": "The API returns a [`301 Moved Permanently` status](https://developer.github.com/enterprise/2.17/v3/#http-redirects) if the issue was [transferred](https://help.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API returns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe to the [`issues`](https://developer.github.com/enterprise/2.17/v3/activity/events/types/#issuesevent) webhook.\n\n**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-get",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/#get-a-single-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-assignees.json b/openapi/ghe-2.17/operations/issues/list-assignees.json
deleted file mode 100644
index 1d9b22decd..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-assignees.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List assignees",
- "description": "Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository.",
- "operationId": "issues-list-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/assignees/#list-assignees"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-comments-for-repo.json b/openapi/ghe-2.17/operations/issues/list-comments-for-repo.json
deleted file mode 100644
index d2756f4648..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-comments-for-repo.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "List comments in a repository",
- "description": "By default, Issue Comments are ordered by ascending ID.",
- "operationId": "issues-list-comments-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/comments/#list-comments-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Either `created` or `updated`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Either `asc` or `desc`. Ignored without the `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-comments.json b/openapi/ghe-2.17/operations/issues/list-comments.json
deleted file mode 100644
index 29ef1dd219..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-comments.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "List comments on an issue",
- "description": "Issue Comments are ordered by ascending ID.",
- "operationId": "issues-list-comments",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/comments/#list-comments-on-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-events-for-repo.json b/openapi/ghe-2.17/operations/issues/list-events-for-repo.json
deleted file mode 100644
index 964eb05bc7..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-events-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List events for a repository",
- "description": "",
- "operationId": "issues-list-events-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/events/#list-events-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/events"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-events-for-timeline.json b/openapi/ghe-2.17/operations/issues/list-events-for-timeline.json
deleted file mode 100644
index 7fedb7e749..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-events-for-timeline.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List events for an issue",
- "description": "",
- "operationId": "issues-list-events-for-timeline",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/timeline/#list-events-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.mockingbird-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.mockingbird-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/timeline"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-events.json b/openapi/ghe-2.17/operations/issues/list-events.json
deleted file mode 100644
index 8d00cba9a3..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-events.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List events for an issue",
- "description": "",
- "operationId": "issues-list-events",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/events/#list-events-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/events"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-for-authenticated-user.json b/openapi/ghe-2.17/operations/issues/list-for-authenticated-user.json
deleted file mode 100644
index f3c1e4403b..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-for-authenticated-user.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "summary": "List all issues across owned and member repositories assigned to the authenticated user",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-authenticated-user",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-for-org.json b/openapi/ghe-2.17/operations/issues/list-for-org.json
deleted file mode 100644
index 9a4f156194..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-for-org.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "summary": "List all issues for a given organization assigned to the authenticated user",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-org",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-for-repo.json b/openapi/ghe-2.17/operations/issues/list-for-repo.json
deleted file mode 100644
index 0cbef723d2..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-for-repo.json
+++ /dev/null
@@ -1,185 +0,0 @@
-{
- "summary": "List issues for a repository",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/#list-issues-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned."
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "assignee",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user."
- },
- {
- "name": "creator",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The user that created the issue."
- },
- {
- "name": "mentioned",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A user that's mentioned in the issue."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-labels-for-milestone.json b/openapi/ghe-2.17/operations/issues/list-labels-for-milestone.json
deleted file mode 100644
index 2f06f5bb4a..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-labels-for-milestone.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "Get labels for every issue in a milestone",
- "description": "",
- "operationId": "issues-list-labels-for-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-labels-for-repo.json b/openapi/ghe-2.17/operations/issues/list-labels-for-repo.json
deleted file mode 100644
index 1e70c7f7e9..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-labels-for-repo.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List all labels for this repository",
- "description": "",
- "operationId": "issues-list-labels-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#list-all-labels-for-this-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-labels-on-issue.json b/openapi/ghe-2.17/operations/issues/list-labels-on-issue.json
deleted file mode 100644
index 031c95e2b8..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-labels-on-issue.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List labels on an issue",
- "description": "",
- "operationId": "issues-list-labels-on-issue",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#list-labels-on-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/list-milestones-for-repo.json b/openapi/ghe-2.17/operations/issues/list-milestones-for-repo.json
deleted file mode 100644
index b6c7eafe0f..0000000000
--- a/openapi/ghe-2.17/operations/issues/list-milestones-for-repo.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "summary": "List milestones for a repository",
- "description": "",
- "operationId": "issues-list-milestones-for-repo",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/milestones/#list-milestones-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "The state of the milestone. Either `open`, `closed`, or `all`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "due_on",
- "completeness"
- ],
- "default": "due_on"
- },
- "required": false,
- "description": "What to sort results by. Either `due_on` or `completeness`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "asc"
- },
- "required": false,
- "description": "The direction of the sort. Either `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/list.json b/openapi/ghe-2.17/operations/issues/list.json
deleted file mode 100644
index e7cbb4e3e3..0000000000
--- a/openapi/ghe-2.17/operations/issues/list.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "summary": "List all issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "issues-list",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/#list-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "assigned",
- "created",
- "mentioned",
- "subscribed",
- "all"
- ],
- "default": "assigned"
- },
- "required": false,
- "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "labels",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "A list of comma separated label names. Example: `bug,ui,@high`"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "comments"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/lock.json b/openapi/ghe-2.17/operations/issues/lock.json
deleted file mode 100644
index 191408419f..0000000000
--- a/openapi/ghe-2.17/operations/issues/lock.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "Lock an issue",
- "description": "Users with push access can lock an issue or pull request's conversation.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "issues-lock",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/#lock-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "lock_reason": {
- "description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`",
- "type": "string",
- "enum": [
- "off-topic",
- "too heated",
- "resolved",
- "spam"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/lock"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/remove-assignees.json b/openapi/ghe-2.17/operations/issues/remove-assignees.json
deleted file mode 100644
index e800f264a4..0000000000
--- a/openapi/ghe-2.17/operations/issues/remove-assignees.json
+++ /dev/null
@@ -1,496 +0,0 @@
-{
- "summary": "Remove assignees from an issue",
- "description": "Removes one or more assignees from an issue.\n\nThis example removes two of three assignees, leaving the `octocat` assignee.",
- "operationId": "issues-remove-assignees",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/assignees/#remove-assignees-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "assignees": {
- "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/assignees"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/remove-label.json b/openapi/ghe-2.17/operations/issues/remove-label.json
deleted file mode 100644
index 2a1a4da2ba..0000000000
--- a/openapi/ghe-2.17/operations/issues/remove-label.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "summary": "Remove a label from an issue",
- "description": "Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist.",
- "operationId": "issues-remove-label",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#remove-a-label-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "name",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "name parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels/:name"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/remove-labels.json b/openapi/ghe-2.17/operations/issues/remove-labels.json
deleted file mode 100644
index bb5e65ec0b..0000000000
--- a/openapi/ghe-2.17/operations/issues/remove-labels.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Remove all labels from an issue",
- "description": "",
- "operationId": "issues-remove-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#remove-all-labels-from-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/replace-labels.json b/openapi/ghe-2.17/operations/issues/replace-labels.json
deleted file mode 100644
index 7361293932..0000000000
--- a/openapi/ghe-2.17/operations/issues/replace-labels.json
+++ /dev/null
@@ -1,104 +0,0 @@
-{
- "summary": "Replace all labels for an issue",
- "description": "",
- "operationId": "issues-replace-labels",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/labels/#replace-all-labels-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "labels": {
- "description": "The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/unlock.json b/openapi/ghe-2.17/operations/issues/unlock.json
deleted file mode 100644
index 2be3b44033..0000000000
--- a/openapi/ghe-2.17/operations/issues/unlock.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Unlock an issue",
- "description": "Users with push access can unlock an issue's conversation.",
- "operationId": "issues-unlock",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/#unlock-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/lock"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/update-comment.json b/openapi/ghe-2.17/operations/issues/update-comment.json
deleted file mode 100644
index a471e1b7d1..0000000000
--- a/openapi/ghe-2.17/operations/issues/update-comment.json
+++ /dev/null
@@ -1,177 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "issues-update-comment",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/issues/update-milestone.json b/openapi/ghe-2.17/operations/issues/update-milestone.json
deleted file mode 100644
index 8b088256ea..0000000000
--- a/openapi/ghe-2.17/operations/issues/update-milestone.json
+++ /dev/null
@@ -1,225 +0,0 @@
-{
- "summary": "Update a milestone",
- "description": "",
- "operationId": "issues-update-milestone",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/milestones/#update-a-milestone"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "milestone_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "milestone_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the milestone.",
- "type": "string"
- },
- "state": {
- "description": "The state of the milestone. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "default": "open"
- },
- "description": {
- "description": "A description of the milestone.",
- "type": "string"
- },
- "due_on": {
- "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/milestones/:milestone_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n milestone_number: 'milestone_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"milestone_number\"",
- "meta": {
- "before": "number",
- "after": "milestone_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/issues/update.json b/openapi/ghe-2.17/operations/issues/update.json
deleted file mode 100644
index f54b86e48f..0000000000
--- a/openapi/ghe-2.17/operations/issues/update.json
+++ /dev/null
@@ -1,587 +0,0 @@
-{
- "summary": "Edit an issue",
- "description": "Issue owners and users with push access can edit an issue.",
- "operationId": "issues-update",
- "tags": [
- "issues"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/issues/#edit-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the issue.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the issue.",
- "type": "string"
- },
- "assignee": {
- "description": "Login for the user that this issue should be assigned to. **This field is deprecated.**",
- "type": "string"
- },
- "state": {
- "description": "State of the issue. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "milestone": {
- "description": "The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._",
- "type": "integer",
- "nullable": true
- },
- "labels": {
- "description": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "assignees": {
- "description": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "locked": {
- "type": "boolean"
- },
- "active_lock_reason": {
- "type": "string"
- },
- "comments": {
- "type": "number"
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- }
- }
- },
- "closed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number"
- },
- {
- "lang": "JS",
- "source": "octokit.issues.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/licenses/get-for-repo.json b/openapi/ghe-2.17/operations/licenses/get-for-repo.json
deleted file mode 100644
index ccaedf6a40..0000000000
--- a/openapi/ghe-2.17/operations/licenses/get-for-repo.json
+++ /dev/null
@@ -1,137 +0,0 @@
-{
- "summary": "Get the contents of a repository's license",
- "description": "This method returns the contents of the repository's license file, if one is detected.\n\nSimilar to [the repository contents API](https://developer.github.com/enterprise/2.17/v3/repos/contents/#get-contents), this method also supports [custom media types](https://developer.github.com/enterprise/2.17/v3/repos/contents/#custom-media-types) for retrieving the raw license content or rendered license HTML.",
- "operationId": "licenses-get-for-repo",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/licenses/#get-the-contents-of-a-repositorys-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- },
- "license": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/license"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/licenses/get.json b/openapi/ghe-2.17/operations/licenses/get.json
deleted file mode 100644
index dda79085ef..0000000000
--- a/openapi/ghe-2.17/operations/licenses/get.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get an individual license",
- "description": "",
- "operationId": "licenses-get",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/licenses/#get-an-individual-license"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "license",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "license parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "permissions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "conditions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "limitations": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "body": {
- "type": "string"
- },
- "featured": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/licenses/"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get({\n license: 'license'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/licenses/list-commonly-used.json b/openapi/ghe-2.17/operations/licenses/list-commonly-used.json
deleted file mode 100644
index 7fbc779ba3..0000000000
--- a/openapi/ghe-2.17/operations/licenses/list-commonly-used.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "List commonly used licenses",
- "description": "",
- "operationId": "licenses-list-commonly-used",
- "tags": [
- "licenses"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/licenses/#list-commonly-used-licenses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/licenses"
- },
- {
- "lang": "JS",
- "source": "octokit.licenses.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-03-05",
- "note": "\"List all licenses\" renamed to \"List commonly used licenses\"",
- "meta": {
- "before": {
- "idName": "list"
- },
- "after": {
- "idName": "list-commonly-used"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/markdown/render-raw.json b/openapi/ghe-2.17/operations/markdown/render-raw.json
deleted file mode 100644
index b875e87d62..0000000000
--- a/openapi/ghe-2.17/operations/markdown/render-raw.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Render a Markdown document in raw mode",
- "description": "You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.\n\n",
- "operationId": "markdown-render-raw",
- "tags": [
- "markdown"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/markdown/#render-a-markdown-document-in-raw-mode"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "content-type",
- "description": "Setting content-type header is required for this endpoint",
- "in": "header",
- "schema": {
- "type": "string",
- "enum": [
- "text/plain; charset=utf-8"
- ]
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string",
- "description": "data parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/markdown/raw \\\n -d '{\"data\":\"data\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.markdown.get({\n data: 'data'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "data"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/markdown/render.json b/openapi/ghe-2.17/operations/markdown/render.json
deleted file mode 100644
index 34ed74f3dd..0000000000
--- a/openapi/ghe-2.17/operations/markdown/render.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Render an arbitrary Markdown document",
- "description": "",
- "operationId": "markdown-render",
- "tags": [
- "markdown"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/markdown/#render-an-arbitrary-markdown-document"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "text": {
- "description": "The Markdown text to render in HTML. Markdown content must be 400 KB or less.",
- "type": "string"
- },
- "mode": {
- "description": "The rendering mode. Can be either: \n\\* `markdown` to render a document in plain Markdown, just like README.md files are rendered. \n\\* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests.",
- "type": "string",
- "enum": [
- "markdown",
- "gfm"
- ],
- "default": "markdown"
- },
- "context": {
- "description": "The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode.",
- "type": "string"
- }
- },
- "required": [
- "text"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/markdown \\\n -d '{\"text\":\"text\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.markdown.get({\n text: 'text'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/meta/get.json b/openapi/ghe-2.17/operations/meta/get.json
deleted file mode 100644
index 485b2cc05b..0000000000
--- a/openapi/ghe-2.17/operations/meta/get.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "summary": "Get",
- "description": "If you access this endpoint on your organization's [GitHub Enterprise Server](https://enterprise.github.com/) installation, this endpoint provides information about that installation.\n\n**Note:** GitHub Enterprise release 2.17 and higher no longer allows admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.17/v3/guides/replacing-github-services) to help you update your services to webhooks.",
- "operationId": "meta-get",
- "tags": [
- "meta"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/meta/#meta"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "verifiable_password_authentication": {
- "type": "boolean"
- },
- "installed_version": {
- "type": "string"
- },
- "github_services_sha": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/meta"
- },
- {
- "lang": "JS",
- "source": "octokit.meta.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/check-authorization.json b/openapi/ghe-2.17/operations/oauth_authorizations/check-authorization.json
deleted file mode 100644
index d9035a7854..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/check-authorization.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Check an authorization",
- "description": "OAuth applications can use a special API method for checking OAuth token validity without running afoul of normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/enterprise/2.17/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
- "operationId": "oauth_authorizations-check-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#check-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/create-authorization.json b/openapi/ghe-2.17/operations/oauth_authorizations/create-authorization.json
deleted file mode 100644
index 7458bed6ea..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/create-authorization.json
+++ /dev/null
@@ -1,143 +0,0 @@
-{
- "summary": "Create a new authorization",
- "description": "Creates OAuth tokens using [Basic Authentication](https://developer.github.com/enterprise/2.17/v3/auth#basic-authentication). If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.17/v3/auth/#working-with-two-factor-authentication).\"\n\nYou can use this endpoint to create multiple OAuth tokens instead of implementing the [web flow](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/authorizing-oauth-apps/).\n\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them.\n\nYou can also create tokens on GitHub from the [personal access tokens settings](https://github.com/settings/tokens) page. Read more about these tokens in [the GitHub Help documentation](https://help.github.com/articles/creating-an-access-token-for-command-line-use).",
- "operationId": "oauth_authorizations-create-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#create-a-new-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "client_id": {
- "description": "The 20 character OAuth app client key for which to create the token.",
- "type": "string"
- },
- "client_secret": {
- "description": "The 40 character OAuth app client secret for which to create the token.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "type": "string"
- }
- },
- "required": [
- "note"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations \\\n -d '{\"note\":\"note\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n note: 'note'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/delete-authorization.json b/openapi/ghe-2.17/operations/oauth_authorizations/delete-authorization.json
deleted file mode 100644
index 8e971e3fb1..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/delete-authorization.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete an authorization",
- "description": "",
- "operationId": "oauth_authorizations-delete-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#delete-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/delete-grant.json b/openapi/ghe-2.17/operations/oauth_authorizations/delete-grant.json
deleted file mode 100644
index 33831d6cf5..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/delete-grant.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a grant",
- "description": "Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
- "operationId": "oauth_authorizations-delete-grant",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#delete-a-grant"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "grant_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "grant_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n grant_id: 'grant_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/get-authorization.json b/openapi/ghe-2.17/operations/oauth_authorizations/get-authorization.json
deleted file mode 100644
index bc9f70e296..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/get-authorization.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "summary": "Get a single authorization",
- "description": "",
- "operationId": "oauth_authorizations-get-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#get-a-single-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/get-grant.json b/openapi/ghe-2.17/operations/oauth_authorizations/get-grant.json
deleted file mode 100644
index a8dcbf99b2..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/get-grant.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "Get a single grant",
- "description": "",
- "operationId": "oauth_authorizations-get-grant",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#get-a-single-grant"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "grant_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "grant_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n grant_id: 'grant_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json b/openapi/ghe-2.17/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json
deleted file mode 100644
index 33352c7366..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/get-or-create-authorization-for-app-and-fingerprint.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "summary": "Get-or-create an authorization for a specific app and fingerprint",
- "description": "This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.17/v3/auth/#working-with-two-factor-authentication).\"",
- "operationId": "oauth_authorizations-get-or-create-authorization-for-app-and-fingerprint",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "fingerprint",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "fingerprint parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "client_secret": {
- "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
- "type": "string"
- },
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- }
- },
- "required": [
- "client_secret"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/clients//:fingerprint \\\n -d '{\"client_secret\":\"client_secret\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n fingerprint: 'fingerprint',\n client_secret: 'client_secret'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2018-12-27",
- "note": "`idName` changed for \"Get-or-create an authorization for a specific app and fingerprint\". It now includes `-and-`",
- "meta": {
- "before": {
- "idName": "get-or-create-authorization-for-app-fingerprint"
- },
- "after": {
- "idName": "get-or-create-authorization-for-app-and-fingerprint"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/get-or-create-authorization-for-app.json b/openapi/ghe-2.17/operations/oauth_authorizations/get-or-create-authorization-for-app.json
deleted file mode 100644
index ec83a80fd3..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/get-or-create-authorization-for-app.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Get-or-create an authorization for a specific app",
- "description": "Creates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.17/v3/auth/#working-with-two-factor-authentication).\"",
- "operationId": "oauth_authorizations-get-or-create-authorization-for-app",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "client_secret": {
- "description": "The 40 character OAuth app client secret associated with the client ID specified in the URL.",
- "type": "string"
- },
- "scopes": {
- "description": "A list of scopes that this authorization is in.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint).",
- "type": "string"
- }
- },
- "required": [
- "client_secret"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/clients/ \\\n -d '{\"client_secret\":\"client_secret\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n client_secret: 'client_secret'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/list-authorizations.json b/openapi/ghe-2.17/operations/oauth_authorizations/list-authorizations.json
deleted file mode 100644
index 46aceb50a3..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/list-authorizations.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your authorizations",
- "description": "",
- "operationId": "oauth_authorizations-list-authorizations",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#list-your-authorizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/list-grants.json b/openapi/ghe-2.17/operations/oauth_authorizations/list-grants.json
deleted file mode 100644
index 74d3851be7..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/list-grants.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your grants",
- "description": "You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `[\"repo\", \"user\"]`.",
- "operationId": "oauth_authorizations-list-grants",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#list-your-grants"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications/grants"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/reset-authorization.json b/openapi/ghe-2.17/operations/oauth_authorizations/reset-authorization.json
deleted file mode 100644
index e10a888265..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/reset-authorization.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Reset an authorization",
- "description": "OAuth applications can use this API method to reset a valid OAuth token without end user involvement. Applications must save the \"token\" property in the response, because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/enterprise/2.17/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.",
- "operationId": "oauth_authorizations-reset-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#reset-an-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/revoke-authorization-for-application.json b/openapi/ghe-2.17/operations/oauth_authorizations/revoke-authorization-for-application.json
deleted file mode 100644
index 809d7657f8..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/revoke-authorization-for-application.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Revoke an authorization for an application",
- "description": "OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/enterprise/2.17/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`.",
- "operationId": "oauth_authorizations-revoke-authorization-for-application",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#revoke-an-authorization-for-an-application"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//tokens/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/revoke-grant-for-application.json b/openapi/ghe-2.17/operations/oauth_authorizations/revoke-grant-for-application.json
deleted file mode 100644
index ce2951d7e3..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/revoke-grant-for-application.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Revoke a grant for an application",
- "description": "OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/enterprise/2.17/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted.\n\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).",
- "operationId": "oauth_authorizations-revoke-grant-for-application",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#revoke-a-grant-for-an-application"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "client_id",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "client_id parameter"
- },
- {
- "name": "access_token",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "access_token parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/applications//grants/:access_token"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n client_id: 'client_id',\n access_token: 'access_token'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/oauth_authorizations/update-authorization.json b/openapi/ghe-2.17/operations/oauth_authorizations/update-authorization.json
deleted file mode 100644
index 482682289a..0000000000
--- a/openapi/ghe-2.17/operations/oauth_authorizations/update-authorization.json
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "summary": "Update an existing authorization",
- "description": "If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Woking with two-factor authentication](https://developer.github.com/enterprise/2.17/v3/auth/#working-with-two-factor-authentication).\"\n\nYou can only send one of these scope keys at a time.",
- "operationId": "oauth_authorizations-update-authorization",
- "tags": [
- "oauth_authorizations"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/oauth_authorizations/#update-an-existing-authorization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "authorization_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "authorization_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "scopes": {
- "description": "Replaces the authorization scopes with these.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "add_scopes": {
- "description": "A list of scopes to add to this authorization.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "remove_scopes": {
- "description": "A list of scopes to remove from this authorization.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "note": {
- "description": "A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note.",
- "type": "string"
- },
- "note_url": {
- "description": "A URL to remind you what app the OAuth token is for.",
- "type": "string"
- },
- "fingerprint": {
- "description": "A unique string to distinguish an authorization from others created for the same client ID and user.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "scopes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "token": {
- "type": "string"
- },
- "token_last_eight": {
- "type": "string"
- },
- "hashed_token": {
- "type": "string"
- },
- "app": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "client_id": {
- "type": "string"
- }
- }
- },
- "note": {
- "type": "string"
- },
- "note_url": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "fingerprint": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/authorizations/"
- },
- {
- "lang": "JS",
- "source": "octokit.oauth_authorizations.get({\n authorization_id: 'authorization_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/add-or-update-membership.json b/openapi/ghe-2.17/operations/orgs/add-or-update-membership.json
deleted file mode 100644
index f4ada22dd4..0000000000
--- a/openapi/ghe-2.17/operations/orgs/add-or-update-membership.json
+++ /dev/null
@@ -1,202 +0,0 @@
-{
- "summary": "Add or update organization membership",
- "description": "Only authenticated organization owners can add a member to the organization or update the member's role.",
- "operationId": "orgs-add-or-update-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#add-or-update-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "role": {
- "description": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.",
- "type": "string",
- "enum": [
- "admin",
- "member"
- ],
- "default": "member"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/check-membership.json b/openapi/ghe-2.17/operations/orgs/check-membership.json
deleted file mode 100644
index 92543bc603..0000000000
--- a/openapi/ghe-2.17/operations/orgs/check-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check membership",
- "description": "Check if a user is, publicly or privately, a member of the organization.",
- "operationId": "orgs-check-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#check-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/check-public-membership.json b/openapi/ghe-2.17/operations/orgs/check-public-membership.json
deleted file mode 100644
index 3db334613c..0000000000
--- a/openapi/ghe-2.17/operations/orgs/check-public-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check public membership",
- "description": "",
- "operationId": "orgs-check-public-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#check-public-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/conceal-membership.json b/openapi/ghe-2.17/operations/orgs/conceal-membership.json
deleted file mode 100644
index d3dcf43135..0000000000
--- a/openapi/ghe-2.17/operations/orgs/conceal-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Conceal a user's membership",
- "description": "",
- "operationId": "orgs-conceal-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#conceal-a-users-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/convert-member-to-outside-collaborator.json b/openapi/ghe-2.17/operations/orgs/convert-member-to-outside-collaborator.json
deleted file mode 100644
index 54836bfb91..0000000000
--- a/openapi/ghe-2.17/operations/orgs/convert-member-to-outside-collaborator.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Convert member to outside collaborator",
- "description": "When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see \"[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\".",
- "operationId": "orgs-convert-member-to-outside-collaborator",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/create-hook.json b/openapi/ghe-2.17/operations/orgs/create-hook.json
deleted file mode 100644
index 828152645f..0000000000
--- a/openapi/ghe-2.17/operations/orgs/create-hook.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "summary": "Create a hook",
- "description": "Here's how you can create a hook that posts payloads in JSON format:",
- "operationId": "orgs-create-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/hooks/#create-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Must be passed as \"web\".",
- "type": "string"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.17/v3/orgs/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.17/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name",
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks \\\n -d '{\"name\":\"name\",\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n name: 'name',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/delete-hook.json b/openapi/ghe-2.17/operations/orgs/delete-hook.json
deleted file mode 100644
index f76cb87220..0000000000
--- a/openapi/ghe-2.17/operations/orgs/delete-hook.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a hook",
- "description": "",
- "operationId": "orgs-delete-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/hooks/#delete-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/get-hook.json b/openapi/ghe-2.17/operations/orgs/get-hook.json
deleted file mode 100644
index f4e8339496..0000000000
--- a/openapi/ghe-2.17/operations/orgs/get-hook.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
- "summary": "Get single hook",
- "description": "",
- "operationId": "orgs-get-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/hooks/#get-single-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/get-membership-for-authenticated-user.json b/openapi/ghe-2.17/operations/orgs/get-membership-for-authenticated-user.json
deleted file mode 100644
index 45a4452f66..0000000000
--- a/openapi/ghe-2.17/operations/orgs/get-membership-for-authenticated-user.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "summary": "Get your organization membership",
- "description": "",
- "operationId": "orgs-get-membership-for-authenticated-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#get-your-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/get-membership.json b/openapi/ghe-2.17/operations/orgs/get-membership.json
deleted file mode 100644
index 64c492407e..0000000000
--- a/openapi/ghe-2.17/operations/orgs/get-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get organization membership",
- "description": "In order to get a user's membership with an organization, the authenticated user must be an organization member.",
- "operationId": "orgs-get-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#get-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/get.json b/openapi/ghe-2.17/operations/orgs/get.json
deleted file mode 100644
index 8f5adfdad7..0000000000
--- a/openapi/ghe-2.17/operations/orgs/get.json
+++ /dev/null
@@ -1,180 +0,0 @@
-{
- "summary": "Get an organization",
- "description": "To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/).",
- "operationId": "orgs-get",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/#get-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "billing_email": {
- "type": "string"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- }
- }
- },
- "default_repository_settings": {
- "type": "string"
- },
- "members_can_create_repositories": {
- "type": "boolean"
- },
- "two_factor_requirement_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/list-for-authenticated-user.json b/openapi/ghe-2.17/operations/orgs/list-for-authenticated-user.json
deleted file mode 100644
index 99d8ca8c75..0000000000
--- a/openapi/ghe-2.17/operations/orgs/list-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your organizations",
- "description": "List organizations for the authenticated user.\n\n**OAuth scope requirements**\n\nThis only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response.",
- "operationId": "orgs-list-for-authenticated-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/#list-your-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/list-for-user.json b/openapi/ghe-2.17/operations/orgs/list-for-user.json
deleted file mode 100644
index 3e005af303..0000000000
--- a/openapi/ghe-2.17/operations/orgs/list-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List user organizations",
- "description": "List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user.\n\nThis method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List your organizations](https://developer.github.com/enterprise/2.17/v3/orgs/#list-your-organizations) API instead.",
- "operationId": "orgs-list-for-user",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/#list-user-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/list-hooks.json b/openapi/ghe-2.17/operations/orgs/list-hooks.json
deleted file mode 100644
index 8ee71450d6..0000000000
--- a/openapi/ghe-2.17/operations/orgs/list-hooks.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List hooks",
- "description": "",
- "operationId": "orgs-list-hooks",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/hooks/#list-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/list-members.json b/openapi/ghe-2.17/operations/orgs/list-members.json
deleted file mode 100644
index 3fa0ac05bc..0000000000
--- a/openapi/ghe-2.17/operations/orgs/list-members.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "Members list",
- "description": "List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned.\n\n",
- "operationId": "orgs-list-members",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#members-list"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "2fa_disabled",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter members returned in the list. Can be one of: \n\\* `2fa_disabled` - Members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. Available for organization owners. \n\\* `all` - All members the authenticated user can see."
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "admin",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter members returned by their role. Can be one of: \n\\* `all` - All members of the organization, regardless of role. \n\\* `admin` - Organization owners. \n\\* `member` - Non-owner organization members."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/list-memberships.json b/openapi/ghe-2.17/operations/orgs/list-memberships.json
deleted file mode 100644
index 36755840c3..0000000000
--- a/openapi/ghe-2.17/operations/orgs/list-memberships.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "List your organization memberships",
- "description": "",
- "operationId": "orgs-list-memberships",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#list-your-organization-memberships"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "active",
- "pending"
- ]
- },
- "required": false,
- "description": "Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/list-outside-collaborators.json b/openapi/ghe-2.17/operations/orgs/list-outside-collaborators.json
deleted file mode 100644
index db6bc6e03e..0000000000
--- a/openapi/ghe-2.17/operations/orgs/list-outside-collaborators.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "List outside collaborators",
- "description": "List all users who are outside collaborators of an organization.\n\n",
- "operationId": "orgs-list-outside-collaborators",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/outside_collaborators/#list-outside-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "filter",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "2fa_disabled",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter the list of outside collaborators. Can be one of: \n\\* `2fa_disabled`: Outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. \n\\* `all`: All outside collaborators."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/list-public-members.json b/openapi/ghe-2.17/operations/orgs/list-public-members.json
deleted file mode 100644
index 34e8dd5981..0000000000
--- a/openapi/ghe-2.17/operations/orgs/list-public-members.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Public members list",
- "description": "Members of an organization can choose to have their membership publicized or not.",
- "operationId": "orgs-list-public-members",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#public-members-list"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/list.json b/openapi/ghe-2.17/operations/orgs/list.json
deleted file mode 100644
index 129d9bc3b4..0000000000
--- a/openapi/ghe-2.17/operations/orgs/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List all organizations",
- "description": "Lists all organizations, in the order that they were created on GitHub Enterprise Server.\n\n**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.17/v3/#link-header) to get the URL for the next page of organizations.",
- "operationId": "orgs-list",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/#list-all-organizations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last Organization that you've seen."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/organizations"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/ping-hook.json b/openapi/ghe-2.17/operations/orgs/ping-hook.json
deleted file mode 100644
index ab30a892f4..0000000000
--- a/openapi/ghe-2.17/operations/orgs/ping-hook.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Ping a hook",
- "description": "This will trigger a [ping event](https://developer.github.com/enterprise/2.17/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "orgs-ping-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/hooks/#ping-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id/pings"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/publicize-membership.json b/openapi/ghe-2.17/operations/orgs/publicize-membership.json
deleted file mode 100644
index 00d4ce1c9c..0000000000
--- a/openapi/ghe-2.17/operations/orgs/publicize-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Publicize a user's membership",
- "description": "The user can publicize their own membership. (A user cannot publicize the membership for another user.)\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "orgs-publicize-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#publicize-a-users-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//public_members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/remove-member.json b/openapi/ghe-2.17/operations/orgs/remove-member.json
deleted file mode 100644
index 6ffaf6cbd2..0000000000
--- a/openapi/ghe-2.17/operations/orgs/remove-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove a member",
- "description": "Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.",
- "operationId": "orgs-remove-member",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#remove-a-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/remove-membership.json b/openapi/ghe-2.17/operations/orgs/remove-membership.json
deleted file mode 100644
index 36088d8442..0000000000
--- a/openapi/ghe-2.17/operations/orgs/remove-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove organization membership",
- "description": "In order to remove a user's membership with an organization, the authenticated user must be an organization owner.\n\nIf the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases.",
- "operationId": "orgs-remove-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#remove-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/remove-outside-collaborator.json b/openapi/ghe-2.17/operations/orgs/remove-outside-collaborator.json
deleted file mode 100644
index 830fc453eb..0000000000
--- a/openapi/ghe-2.17/operations/orgs/remove-outside-collaborator.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove outside collaborator",
- "description": "Removing a user from this list will remove them from all the organization's repositories.",
- "operationId": "orgs-remove-outside-collaborator",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/outside_collaborators/#remove-outside-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//outside_collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/update-hook.json b/openapi/ghe-2.17/operations/orgs/update-hook.json
deleted file mode 100644
index 3790178e24..0000000000
--- a/openapi/ghe-2.17/operations/orgs/update-hook.json
+++ /dev/null
@@ -1,159 +0,0 @@
-{
- "summary": "Edit a hook",
- "description": "",
- "operationId": "orgs-update-hook",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/hooks/#edit-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.17/v3/orgs/hooks/#update-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.17/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "type": "boolean"
- },
- "config": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//hooks/:hook_id \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/update-membership.json b/openapi/ghe-2.17/operations/orgs/update-membership.json
deleted file mode 100644
index bc2de6ab3f..0000000000
--- a/openapi/ghe-2.17/operations/orgs/update-membership.json
+++ /dev/null
@@ -1,194 +0,0 @@
-{
- "summary": "Edit your organization membership",
- "description": "",
- "operationId": "orgs-update-membership",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/members/#edit-your-organization-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state that the membership should be in. Only `\"active\"` will be accepted.",
- "type": "string",
- "enum": [
- "active"
- ]
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "role": {
- "type": "string"
- },
- "organization_url": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- }
- }
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/memberships/orgs/ \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/orgs/update.json b/openapi/ghe-2.17/operations/orgs/update.json
deleted file mode 100644
index 3b2a339059..0000000000
--- a/openapi/ghe-2.17/operations/orgs/update.json
+++ /dev/null
@@ -1,248 +0,0 @@
-{
- "summary": "Edit an organization",
- "description": "**Note:** The new `members_allowed_repository_creation_type` replaces the functionality of `members_can_create_repositories`.\n\nSetting `members_allowed_repository_creation_type` will override the value of `members_can_create_repositories` in the following ways:\n\n* Setting `members_allowed_repository_creation_type` to `all` or `private` sets `members_can_create_repositories` to `true`.\n* Setting `members_allowed_repository_creation_type` to `none` sets `members_can_create_repositories` to `false`.\n* If you omit `members_allowed_repository_creation_type`, `members_can_create_repositories` is not modified.",
- "operationId": "orgs-update",
- "tags": [
- "orgs"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/orgs/#edit-an-organization"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "billing_email": {
- "description": "Billing email address. This address is not publicized.",
- "type": "string"
- },
- "company": {
- "description": "The company name.",
- "type": "string"
- },
- "email": {
- "description": "The publicly visible email address.",
- "type": "string"
- },
- "location": {
- "description": "The location.",
- "type": "string"
- },
- "name": {
- "description": "The shorthand name of the company.",
- "type": "string"
- },
- "description": {
- "description": "The description of the company.",
- "type": "string"
- },
- "has_organization_projects": {
- "description": "Toggles whether organization projects are enabled for the organization.",
- "type": "boolean"
- },
- "has_repository_projects": {
- "description": "Toggles whether repository projects are enabled for repositories that belong to the organization.",
- "type": "boolean"
- },
- "default_repository_permission": {
- "description": "Default permission level members have for organization repositories: \n\\* `read` - can pull, but not push to or administer this repository. \n\\* `write` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push, and administer this repository. \n\\* `none` - no permissions granted by default.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin",
- "none"
- ],
- "default": "read"
- },
- "members_can_create_repositories": {
- "description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only admin members can create repositories. \nDefault: `true` \n**Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/enterprise/2.17/v3/orgs/#members_can_create_repositories) for details. **Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/enterprise/2.17/v3/orgs/#members_can_create_repositories) for details.",
- "type": "boolean",
- "default": true
- },
- "members_allowed_repository_creation_type": {
- "description": "Specifies which types of repositories non-admin organization members can create. Can be one of: \n\\* `all` - all organization members can create public and private repositories. \n\\* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on [GitHub Business Cloud](https://github.com/pricing/business-cloud). \n\\* `none` - only admin members can create repositories. \n**Note:** Using this parameter will override values set in `members_can_create_repositories`. See [this note](https://developer.github.com/enterprise/2.17/v3/orgs/#members_can_create_repositories) for details.",
- "type": "string",
- "enum": [
- "all",
- "private",
- "none"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "private_gists": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "billing_email": {
- "type": "string"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- }
- }
- },
- "default_repository_settings": {
- "type": "string"
- },
- "members_can_create_repositories": {
- "type": "boolean"
- },
- "two_factor_requirement_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs/"
- },
- {
- "lang": "JS",
- "source": "octokit.orgs.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/add-collaborator.json b/openapi/ghe-2.17/operations/projects/add-collaborator.json
deleted file mode 100644
index b9ad71c856..0000000000
--- a/openapi/ghe-2.17/operations/projects/add-collaborator.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "summary": "Add user as a collaborator",
- "description": "Adds a collaborator to a an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator.",
- "operationId": "projects-add-collaborator",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/collaborators/#add-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\" Can be one of: \n\\* `read` - can read, but not write to or administer this project. \n\\* `write` - can read and write, but not administer this project. \n\\* `admin` - can read, write and administer this project.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ],
- "default": "write"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/create-card.json b/openapi/ghe-2.17/operations/projects/create-card.json
deleted file mode 100644
index 41f90fca1b..0000000000
--- a/openapi/ghe-2.17/operations/projects/create-card.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "summary": "Create a project card",
- "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests)\" endpoint.",
- "operationId": "projects-create-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/cards/#create-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "note": {
- "description": "The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`.",
- "type": "string"
- },
- "content_id": {
- "description": "The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/enterprise/2.17/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests) endpoints to find this id. \n**Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`.",
- "type": "integer"
- },
- "content_type": {
- "description": "**Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "archived": {
- "type": "boolean"
- },
- "column_url": {
- "type": "string"
- },
- "content_url": {
- "type": "string"
- },
- "project_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//cards"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/create-column.json b/openapi/ghe-2.17/operations/projects/create-column.json
deleted file mode 100644
index 3c31b6fa80..0000000000
--- a/openapi/ghe-2.17/operations/projects/create-column.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Create a project column",
- "description": "",
- "operationId": "projects-create-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/columns/#create-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the column.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//columns \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/create-for-authenticated-user.json b/openapi/ghe-2.17/operations/projects/create-for-authenticated-user.json
deleted file mode 100644
index 78b7c64a10..0000000000
--- a/openapi/ghe-2.17/operations/projects/create-for-authenticated-user.json
+++ /dev/null
@@ -1,190 +0,0 @@
-{
- "summary": "Create a user project",
- "description": "",
- "operationId": "projects-create-for-authenticated-user",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/#create-a-user-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/user/projects \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/create-for-org.json b/openapi/ghe-2.17/operations/projects/create-for-org.json
deleted file mode 100644
index aebc5e74ab..0000000000
--- a/openapi/ghe-2.17/operations/projects/create-for-org.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Create an organization project",
- "description": "Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-create-for-org",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/#create-an-organization-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/orgs//projects \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/create-for-repo.json b/openapi/ghe-2.17/operations/projects/create-for-repo.json
deleted file mode 100644
index 1a98963a0d..0000000000
--- a/openapi/ghe-2.17/operations/projects/create-for-repo.json
+++ /dev/null
@@ -1,208 +0,0 @@
-{
- "summary": "Create a repository project",
- "description": "Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-create-for-repo",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/#create-a-repository-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/projects \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/delete-card.json b/openapi/ghe-2.17/operations/projects/delete-card.json
deleted file mode 100644
index 3c76934123..0000000000
--- a/openapi/ghe-2.17/operations/projects/delete-card.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project card",
- "description": "",
- "operationId": "projects-delete-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/cards/#delete-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/delete-column.json b/openapi/ghe-2.17/operations/projects/delete-column.json
deleted file mode 100644
index ca1160a93f..0000000000
--- a/openapi/ghe-2.17/operations/projects/delete-column.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project column",
- "description": "",
- "operationId": "projects-delete-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/columns/#delete-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/delete.json b/openapi/ghe-2.17/operations/projects/delete.json
deleted file mode 100644
index 78a9cd87ac..0000000000
--- a/openapi/ghe-2.17/operations/projects/delete.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a project",
- "description": "Deletes a project board. Returns a `404 Not Found` status if projects are disabled.",
- "operationId": "projects-delete",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/#delete-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/get-card.json b/openapi/ghe-2.17/operations/projects/get-card.json
deleted file mode 100644
index 01964dbaf4..0000000000
--- a/openapi/ghe-2.17/operations/projects/get-card.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Get a project card",
- "description": "",
- "operationId": "projects-get-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/cards/#get-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/get-column.json b/openapi/ghe-2.17/operations/projects/get-column.json
deleted file mode 100644
index ab73232272..0000000000
--- a/openapi/ghe-2.17/operations/projects/get-column.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Get a project column",
- "description": "",
- "operationId": "projects-get-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/columns/#get-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/get.json b/openapi/ghe-2.17/operations/projects/get.json
deleted file mode 100644
index edade92ee7..0000000000
--- a/openapi/ghe-2.17/operations/projects/get.json
+++ /dev/null
@@ -1,177 +0,0 @@
-{
- "summary": "Get a project",
- "description": "Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-get",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/#get-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/list-cards.json b/openapi/ghe-2.17/operations/projects/list-cards.json
deleted file mode 100644
index eba7841b3c..0000000000
--- a/openapi/ghe-2.17/operations/projects/list-cards.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List project cards",
- "description": "",
- "operationId": "projects-list-cards",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/cards/#list-project-cards"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- },
- {
- "name": "archived_state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "archived",
- "not_archived"
- ],
- "default": "not_archived"
- },
- "required": false,
- "description": "Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//cards"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/list-collaborators.json b/openapi/ghe-2.17/operations/projects/list-collaborators.json
deleted file mode 100644
index cc71cb1e40..0000000000
--- a/openapi/ghe-2.17/operations/projects/list-collaborators.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List collaborators",
- "description": "Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators.",
- "operationId": "projects-list-collaborators",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/collaborators/#list-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "outside",
- "direct",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filters the collaborators by their affiliation. Can be one of: \n\\* `outside`: Outside collaborators of a project that are not a member of the project's organization. \n\\* `direct`: Collaborators with permissions to a project, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/list-columns.json b/openapi/ghe-2.17/operations/projects/list-columns.json
deleted file mode 100644
index 98bd8f1205..0000000000
--- a/openapi/ghe-2.17/operations/projects/list-columns.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "List project columns",
- "description": "",
- "operationId": "projects-list-columns",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/columns/#list-project-columns"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//columns"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/list-for-org.json b/openapi/ghe-2.17/operations/projects/list-for-org.json
deleted file mode 100644
index ebd06db7c2..0000000000
--- a/openapi/ghe-2.17/operations/projects/list-for-org.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List organization projects",
- "description": "Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.\n\ns",
- "operationId": "projects-list-for-org",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/#list-organization-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/orgs//projects"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/list-for-repo.json b/openapi/ghe-2.17/operations/projects/list-for-repo.json
deleted file mode 100644
index f69ced3d15..0000000000
--- a/openapi/ghe-2.17/operations/projects/list-for-repo.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "List repository projects",
- "description": "Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-list-for-repo",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/#list-repository-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/projects"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/list-for-user.json b/openapi/ghe-2.17/operations/projects/list-for-user.json
deleted file mode 100644
index 05813ce26a..0000000000
--- a/openapi/ghe-2.17/operations/projects/list-for-user.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "List user projects",
- "description": "",
- "operationId": "projects-list-for-user",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/#list-user-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/users//projects"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/move-card.json b/openapi/ghe-2.17/operations/projects/move-card.json
deleted file mode 100644
index c1bb3d04b3..0000000000
--- a/openapi/ghe-2.17/operations/projects/move-card.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Move a project card",
- "description": "",
- "operationId": "projects-move-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/cards/#move-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "position": {
- "description": "Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`.",
- "type": "string",
- "pattern": "^(top|bottom|after:\\d+)$"
- },
- "column_id": {
- "description": "The `id` value of a column in the same project.",
- "type": "integer"
- }
- },
- "required": [
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards//moves \\\n -d '{\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/move-column.json b/openapi/ghe-2.17/operations/projects/move-column.json
deleted file mode 100644
index 41b716cf1e..0000000000
--- a/openapi/ghe-2.17/operations/projects/move-column.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Move a project column",
- "description": "",
- "operationId": "projects-move-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/columns/#move-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "position": {
- "description": "Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project.",
- "type": "string",
- "pattern": "^(first|last|after:\\d+)$"
- }
- },
- "required": [
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns//moves \\\n -d '{\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/remove-collaborator.json b/openapi/ghe-2.17/operations/projects/remove-collaborator.json
deleted file mode 100644
index 9f82a28372..0000000000
--- a/openapi/ghe-2.17/operations/projects/remove-collaborator.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Remove user as a collaborator",
- "description": "Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator.",
- "operationId": "projects-remove-collaborator",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/collaborators/#remove-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/review-user-permission-level.json b/openapi/ghe-2.17/operations/projects/review-user-permission-level.json
deleted file mode 100644
index c5880b9896..0000000000
--- a/openapi/ghe-2.17/operations/projects/review-user-permission-level.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "summary": "Review a user's permission level",
- "description": "Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level.",
- "operationId": "projects-review-user-permission-level",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/collaborators/#review-a-users-permission-level"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "permission": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects//collaborators/:username/permission"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/update-card.json b/openapi/ghe-2.17/operations/projects/update-card.json
deleted file mode 100644
index 4dc53a1b6a..0000000000
--- a/openapi/ghe-2.17/operations/projects/update-card.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "summary": "Update a project card",
- "description": "",
- "operationId": "projects-update-card",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/cards/#update-a-project-card"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "card_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "card_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "note": {
- "description": "The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`.",
- "type": "string"
- },
- "archived": {
- "description": "Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/cards/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n card_id: 'card_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/update-column.json b/openapi/ghe-2.17/operations/projects/update-column.json
deleted file mode 100644
index 2f6c69c8e8..0000000000
--- a/openapi/ghe-2.17/operations/projects/update-column.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Update a project column",
- "description": "",
- "operationId": "projects-update-column",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/columns/#update-a-project-column"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "column_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "column_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new name of the column.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/columns/ \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n column_id: 'column_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/projects/update.json b/openapi/ghe-2.17/operations/projects/update.json
deleted file mode 100644
index 1eebbb6298..0000000000
--- a/openapi/ghe-2.17/operations/projects/update.json
+++ /dev/null
@@ -1,212 +0,0 @@
-{
- "summary": "Update a project",
- "description": "Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.",
- "operationId": "projects-update",
- "tags": [
- "projects"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/projects/#update-a-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the project.",
- "type": "string"
- },
- "body": {
- "description": "The description of the project.",
- "type": "string"
- },
- "state": {
- "description": "State of the project. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "organization_permission": {
- "description": "The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/enterprise/2.17/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/enterprise/2.17/v3/projects/collaborators/#add-user-as-a-collaborator). \n \n**Note:** Updating a project's `organization_permission` requires `admin` access to the project. \n \nCan be one of: \n\\* `read` - Organization members can read, but not write to or administer this project. \n\\* `write` - Organization members can read and write, but not administer this project. \n\\* `admin` - Organization members can read, write and administer this project. \n\\* `none` - Organization members can only see this project if it is public.",
- "type": "string"
- },
- "private": {
- "description": "Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. \n \nCan be one of: \n\\* `false` - Anyone can see the project. \n\\* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/projects/"
- },
- {
- "lang": "JS",
- "source": "octokit.projects.get({\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/pulls/check-if-merged.json b/openapi/ghe-2.17/operations/pulls/check-if-merged.json
deleted file mode 100644
index 2e55d4296a..0000000000
--- a/openapi/ghe-2.17/operations/pulls/check-if-merged.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "summary": "Get if a pull request has been merged",
- "description": "",
- "operationId": "pulls-check-if-merged",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/#get-if-a-pull-request-has-been-merged"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/merge"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/create-comment-reply.json b/openapi/ghe-2.17/operations/pulls/create-comment-reply.json
deleted file mode 100644
index dde1efb141..0000000000
--- a/openapi/ghe-2.17/operations/pulls/create-comment-reply.json
+++ /dev/null
@@ -1,248 +0,0 @@
-{
- "summary": "Create a comment reply",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.17/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.17/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-comment-reply",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- },
- "in_reply_to": {
- "description": "The comment ID to reply to. **Note**: This must be the ID of a _top-level comment_, not a reply to that comment. Replies to replies are not supported.",
- "type": "integer"
- }
- },
- "required": [
- "body",
- "in_reply_to"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments \\\n -d '{\"body\":\"body\",\"in_reply_to\":\"in_reply_to\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n body: 'body',\n in_reply_to: 'in_reply_to'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/create-comment.json b/openapi/ghe-2.17/operations/pulls/create-comment.json
deleted file mode 100644
index 4e52038df8..0000000000
--- a/openapi/ghe-2.17/operations/pulls/create-comment.json
+++ /dev/null
@@ -1,258 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.17/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.17/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- },
- "commit_id": {
- "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.",
- "type": "string"
- },
- "path": {
- "description": "The relative path to the file that necessitates a comment.",
- "type": "string"
- },
- "position": {
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "type": "integer"
- }
- },
- "required": [
- "body",
- "commit_id",
- "path",
- "position"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments \\\n -d '{\"body\":\"body\",\"commit_id\":\"commit_id\",\"path\":\"path\",\"position\":\"position\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n body: 'body',\n commit_id: 'commit_id',\n path: 'path',\n position: 'position'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/create-from-issue.json b/openapi/ghe-2.17/operations/pulls/create-from-issue.json
deleted file mode 100644
index a3799b2342..0000000000
--- a/openapi/ghe-2.17/operations/pulls/create-from-issue.json
+++ /dev/null
@@ -1,1541 +0,0 @@
-{
- "summary": "Create a Pull Request from an Issue",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create-from-issue",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/#create-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "issue": {
- "description": "The issue number in this repository to turn into a Pull Request.",
- "type": "integer"
- },
- "head": {
- "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "type": "string"
- },
- "base": {
- "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- },
- "draft": {
- "description": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://help.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.",
- "type": "boolean"
- }
- },
- "required": [
- "issue",
- "head",
- "base"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls \\\n -d '{\"issue\":\"issue\",\"head\":\"head\",\"base\":\"base\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue: 'issue',\n head: 'head',\n base: 'base'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/pulls/create-review-request.json b/openapi/ghe-2.17/operations/pulls/create-review-request.json
deleted file mode 100644
index d92d372ecb..0000000000
--- a/openapi/ghe-2.17/operations/pulls/create-review-request.json
+++ /dev/null
@@ -1,1477 +0,0 @@
-{
- "summary": "Create a review request",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create-review-request",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/review_requests/#create-a-review-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reviewers": {
- "description": "An array of user `login`s that will be requested.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "team_reviewers": {
- "description": "An array of team `slug`s that will be requested.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/create-review.json b/openapi/ghe-2.17/operations/pulls/create-review.json
deleted file mode 100644
index 9759f4ed2e..0000000000
--- a/openapi/ghe-2.17/operations/pulls/create-review.json
+++ /dev/null
@@ -1,244 +0,0 @@
-{
- "summary": "Create a pull request review",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/enterprise/2.17/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/enterprise/2.17/v3/pulls/#get-a-single-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.",
- "operationId": "pulls-create-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/reviews/#create-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "commit_id": {
- "description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.",
- "type": "string"
- },
- "body": {
- "description": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.",
- "type": "string"
- },
- "event": {
- "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/enterprise/2.17/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready.",
- "type": "string",
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- },
- "comments": {
- "description": "Use the following table to specify the location, destination, and contents of the draft review comment.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "path": {
- "description": "The relative path to the file that necessitates a review comment.",
- "type": "string"
- },
- "position": {
- "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.",
- "type": "integer"
- },
- "body": {
- "description": "Text of the review comment.",
- "type": "string"
- }
- },
- "required": [
- "path",
- "position",
- "body"
- ]
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews \\\n -d '{\"comments[].path\":\"comments[].path\",\"comments[].position\":\"comments[].position\",\"comments[].body\":\"comments[].body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n 'comments[].path': 'comments[].path',\n 'comments[].position': 'comments[].position',\n 'comments[].body': 'comments[].body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/create.json b/openapi/ghe-2.17/operations/pulls/create.json
deleted file mode 100644
index 4cb9576eea..0000000000
--- a/openapi/ghe-2.17/operations/pulls/create.json
+++ /dev/null
@@ -1,1545 +0,0 @@
-{
- "summary": "Create a pull request",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-create",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/#create-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the pull request.",
- "type": "string"
- },
- "head": {
- "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.",
- "type": "string"
- },
- "base": {
- "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the pull request.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- },
- "draft": {
- "description": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://help.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.",
- "type": "boolean"
- }
- },
- "required": [
- "title",
- "head",
- "base"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls \\\n -d '{\"title\":\"title\",\"head\":\"head\",\"base\":\"base\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n title: 'title',\n head: 'head',\n base: 'base'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/pulls/delete-comment.json b/openapi/ghe-2.17/operations/pulls/delete-comment.json
deleted file mode 100644
index 6c33fe0826..0000000000
--- a/openapi/ghe-2.17/operations/pulls/delete-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "",
- "operationId": "pulls-delete-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/pulls/delete-pending-review.json b/openapi/ghe-2.17/operations/pulls/delete-pending-review.json
deleted file mode 100644
index 738c0d6e0d..0000000000
--- a/openapi/ghe-2.17/operations/pulls/delete-pending-review.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Delete a pending review",
- "description": "",
- "operationId": "pulls-delete-pending-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/reviews/#delete-a-pending-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/delete-review-request.json b/openapi/ghe-2.17/operations/pulls/delete-review-request.json
deleted file mode 100644
index ea66f4f691..0000000000
--- a/openapi/ghe-2.17/operations/pulls/delete-review-request.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "summary": "Delete a review request",
- "description": "",
- "operationId": "pulls-delete-review-request",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/review_requests/#delete-a-review-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "reviewers": {
- "description": "An array of user `login`s that will be removed.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "team_reviewers": {
- "description": "An array of team `slug`s that will be removed.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/dismiss-review.json b/openapi/ghe-2.17/operations/pulls/dismiss-review.json
deleted file mode 100644
index 19cd2be80d..0000000000
--- a/openapi/ghe-2.17/operations/pulls/dismiss-review.json
+++ /dev/null
@@ -1,217 +0,0 @@
-{
- "summary": "Dismiss a pull request review",
- "description": "**Note:** To dismiss a pull request review on a [protected branch](https://developer.github.com/enterprise/2.17/v3/repos/branches/), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.",
- "operationId": "pulls-dismiss-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/reviews/#dismiss-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The message for the pull request review dismissal",
- "type": "string"
- }
- },
- "required": [
- "message"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/dismissals \\\n -d '{\"message\":\"message\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id',\n message: 'message'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/get-comment.json b/openapi/ghe-2.17/operations/pulls/get-comment.json
deleted file mode 100644
index 08a3ff56f0..0000000000
--- a/openapi/ghe-2.17/operations/pulls/get-comment.json
+++ /dev/null
@@ -1,215 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "",
- "operationId": "pulls-get-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/pulls/get-comments-for-review.json b/openapi/ghe-2.17/operations/pulls/get-comments-for-review.json
deleted file mode 100644
index 02d28c4a43..0000000000
--- a/openapi/ghe-2.17/operations/pulls/get-comments-for-review.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "summary": "Get comments for a single review",
- "description": "",
- "operationId": "pulls-get-comments-for-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/reviews/#get-comments-for-a-single-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/get-review.json b/openapi/ghe-2.17/operations/pulls/get-review.json
deleted file mode 100644
index dd929aba85..0000000000
--- a/openapi/ghe-2.17/operations/pulls/get-review.json
+++ /dev/null
@@ -1,199 +0,0 @@
-{
- "summary": "Get a single review",
- "description": "",
- "operationId": "pulls-get-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/reviews/#get-a-single-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/get.json b/openapi/ghe-2.17/operations/pulls/get.json
deleted file mode 100644
index 656852846e..0000000000
--- a/openapi/ghe-2.17/operations/pulls/get.json
+++ /dev/null
@@ -1,1524 +0,0 @@
-{
- "summary": "Get a single pull request",
- "description": "Lists details of a pull request by providing its number.\n\nWhen you get, [create](https://developer.github.com/enterprise/2.17/v3/pulls/#create-a-pull-request), or [edit](https://developer.github.com/enterprise/2.17/v3/pulls/#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see \"[Checking mergeability of pull requests](https://developer.github.com/enterprise/2.17/v3/git/#checking-mergeability-of-pull-requests)\".\n\nThe value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit.\n\nThe value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request:\n\n* If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit.\n* If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch.\n* If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to.\n\nPass the appropriate [media type](https://developer.github.com/enterprise/2.17/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.",
- "operationId": "pulls-get",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/#get-a-single-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/list-comments-for-repo.json b/openapi/ghe-2.17/operations/pulls/list-comments-for-repo.json
deleted file mode 100644
index a6dce84544..0000000000
--- a/openapi/ghe-2.17/operations/pulls/list-comments-for-repo.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "summary": "List comments in a repository",
- "description": "By default, review comments are ordered by ascending ID.",
- "operationId": "pulls-list-comments-for-repo",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/comments/#list-comments-in-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Can be either `created` or `updated` comments."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/pulls/list-comments.json b/openapi/ghe-2.17/operations/pulls/list-comments.json
deleted file mode 100644
index a2bfbad2dd..0000000000
--- a/openapi/ghe-2.17/operations/pulls/list-comments.json
+++ /dev/null
@@ -1,142 +0,0 @@
-{
- "summary": "List comments on a pull request",
- "description": "By default, review comments are ordered by ascending ID.",
- "operationId": "pulls-list-comments",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/comments/#list-comments-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Can be either `created` or `updated` comments."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/list-commits.json b/openapi/ghe-2.17/operations/pulls/list-commits.json
deleted file mode 100644
index 31efec4726..0000000000
--- a/openapi/ghe-2.17/operations/pulls/list-commits.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List commits on a pull request",
- "description": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [Commit List API](https://developer.github.com/enterprise/2.17/v3/repos/commits/#list-commits-on-a-repository).",
- "operationId": "pulls-list-commits",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/#list-commits-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/list-files.json b/openapi/ghe-2.17/operations/pulls/list-files.json
deleted file mode 100644
index 854c041ed4..0000000000
--- a/openapi/ghe-2.17/operations/pulls/list-files.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List pull requests files",
- "description": "**Note:** The response includes a maximum of 300 files.",
- "operationId": "pulls-list-files",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests-files"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/files"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/list-review-requests.json b/openapi/ghe-2.17/operations/pulls/list-review-requests.json
deleted file mode 100644
index e60e507ed1..0000000000
--- a/openapi/ghe-2.17/operations/pulls/list-review-requests.json
+++ /dev/null
@@ -1,212 +0,0 @@
-{
- "summary": "List review requests",
- "description": "",
- "operationId": "pulls-list-review-requests",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/review_requests/#list-review-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/requested_reviewers"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/list-reviews.json b/openapi/ghe-2.17/operations/pulls/list-reviews.json
deleted file mode 100644
index e12ad5a377..0000000000
--- a/openapi/ghe-2.17/operations/pulls/list-reviews.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List reviews on a pull request",
- "description": "The list of reviews returns in chronological order.",
- "operationId": "pulls-list-reviews",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/reviews/#list-reviews-on-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/list.json b/openapi/ghe-2.17/operations/pulls/list.json
deleted file mode 100644
index c472e9bfcb..0000000000
--- a/openapi/ghe-2.17/operations/pulls/list.json
+++ /dev/null
@@ -1,149 +0,0 @@
-{
- "summary": "List pull requests",
- "description": "",
- "operationId": "pulls-list",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "state",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed",
- "all"
- ],
- "default": "open"
- },
- "required": false,
- "description": "Either `open`, `closed`, or `all` to filter by state."
- },
- {
- "name": "head",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`."
- },
- {
- "name": "base",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter pulls by base branch name. Example: `gh-pages`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "popularity",
- "long-running"
- ],
- "default": "created"
- },
- "required": false,
- "description": "What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month)."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/pulls/merge.json b/openapi/ghe-2.17/operations/pulls/merge.json
deleted file mode 100644
index 201954399a..0000000000
--- a/openapi/ghe-2.17/operations/pulls/merge.json
+++ /dev/null
@@ -1,113 +0,0 @@
-{
- "summary": "Merge a pull request (Merge Button)",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "pulls-merge",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/#merge-a-pull-request-merge-button"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "commit_title": {
- "description": "Title for the automatic commit message.",
- "type": "string"
- },
- "commit_message": {
- "description": "Extra detail to append to automatic commit message.",
- "type": "string"
- },
- "sha": {
- "description": "SHA that pull request head must match to allow merge.",
- "type": "string"
- },
- "merge_method": {
- "description": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.",
- "type": "string",
- "enum": [
- "merge",
- "squash",
- "rebase"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/merge"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/submit-review.json b/openapi/ghe-2.17/operations/pulls/submit-review.json
deleted file mode 100644
index e6b211ee57..0000000000
--- a/openapi/ghe-2.17/operations/pulls/submit-review.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Submit a pull request review",
- "description": "",
- "operationId": "pulls-submit-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/reviews/#submit-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The body text of the pull request review",
- "type": "string"
- },
- "event": {
- "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.",
- "type": "string",
- "enum": [
- "APPROVE",
- "REQUEST_CHANGES",
- "COMMENT"
- ]
- }
- },
- "required": [
- "event"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id/events \\\n -d '{\"event\":\"event\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id',\n event: 'event'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/update-comment.json b/openapi/ghe-2.17/operations/pulls/update-comment.json
deleted file mode 100644
index b284fd9b85..0000000000
--- a/openapi/ghe-2.17/operations/pulls/update-comment.json
+++ /dev/null
@@ -1,233 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "",
- "operationId": "pulls-update-comment",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The text of the comment.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "pull_request_review_id": {
- "type": "number"
- },
- "diff_hunk": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "original_position": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "original_commit_id": {
- "type": "string"
- },
- "in_reply_to_id": {
- "type": "number"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/pulls/update-review.json b/openapi/ghe-2.17/operations/pulls/update-review.json
deleted file mode 100644
index f9913a8cf6..0000000000
--- a/openapi/ghe-2.17/operations/pulls/update-review.json
+++ /dev/null
@@ -1,217 +0,0 @@
-{
- "summary": "Update a pull request review",
- "description": "Update the review summary comment with new text.",
- "operationId": "pulls-update-review",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/reviews/#update-a-pull-request-review"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- },
- {
- "name": "review_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "review_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The body text of the pull request review.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "commit_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "pull_request_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "pull_request": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number/reviews/:review_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number',\n review_id: 'review_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/pulls/update.json b/openapi/ghe-2.17/operations/pulls/update.json
deleted file mode 100644
index 3d2b1d32db..0000000000
--- a/openapi/ghe-2.17/operations/pulls/update.json
+++ /dev/null
@@ -1,1559 +0,0 @@
-{
- "summary": "Update a pull request",
- "description": "",
- "operationId": "pulls-update",
- "tags": [
- "pulls"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/pulls/#update-a-pull-request"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "pull_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "pull_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The title of the pull request.",
- "type": "string"
- },
- "body": {
- "description": "The contents of the pull request.",
- "type": "string"
- },
- "state": {
- "description": "State of this Pull Request. Either `open` or `closed`.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "base": {
- "description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.",
- "type": "string"
- },
- "maintainer_can_modify": {
- "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "diff_url": {
- "type": "string"
- },
- "patch_url": {
- "type": "string"
- },
- "issue_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "review_comments_url": {
- "type": "string"
- },
- "review_comment_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "locked": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "color": {
- "type": "string"
- },
- "default": {
- "type": "boolean"
- }
- }
- }
- },
- "milestone": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "open_issues": {
- "type": "number"
- },
- "closed_issues": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "due_on": {
- "type": "string"
- }
- }
- },
- "active_lock_reason": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "merged_at": {
- "type": "string"
- },
- "merge_commit_sha": {
- "type": "string"
- },
- "assignee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assignees": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- },
- "required": [
- "login",
- "id",
- "node_id",
- "avatar_url",
- "gravatar_id",
- "url",
- "html_url",
- "followers_url",
- "following_url",
- "gists_url",
- "starred_url",
- "subscriptions_url",
- "organizations_url",
- "repos_url",
- "events_url",
- "received_events_url",
- "type",
- "site_admin"
- ]
- }
- },
- "requested_reviewers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "requested_teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- },
- "head": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "base": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "repo": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "html": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "issue": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comments": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "review_comment": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "commits": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- },
- "statuses": {
- "type": "object",
- "properties": {
- "href": {
- "type": "string"
- }
- }
- }
- }
- },
- "author_association": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "merged": {
- "type": "boolean"
- },
- "mergeable": {
- "type": "boolean"
- },
- "rebaseable": {
- "type": "boolean"
- },
- "mergeable_state": {
- "type": "string"
- },
- "merged_by": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "comments": {
- "type": "number"
- },
- "review_comments": {
- "type": "number"
- },
- "maintainer_can_modify": {
- "type": "boolean"
- },
- "commits": {
- "type": "number"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changed_files": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/:pull_number"
- },
- {
- "lang": "JS",
- "source": "octokit.pulls.get({\n owner: 'octocat',\n repo: 'hello-world',\n pull_number: 'pull_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"pull_number\"",
- "meta": {
- "before": "number",
- "after": "pull_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/rate_limit/get.json b/openapi/ghe-2.17/operations/rate_limit/get.json
deleted file mode 100644
index e9e8b65d52..0000000000
--- a/openapi/ghe-2.17/operations/rate_limit/get.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "summary": "Get your current rate limit status",
- "description": "**Note:** Accessing this endpoint does not count against your REST API rate limit.\n\n**Understanding your rate limit status**\n\nThe Search API has a [custom rate limit](https://developer.github.com/enterprise/2.17/v3/search/#rate-limit), separate from the rate limit governing the rest of the REST API. The GraphQL API also has a [custom rate limit](https://developer.github.com/enterprise/2.17/v4/guides/resource-limitations/#rate-limit) that is separate from and calculated differently than rate limits in the REST API.\n\nFor these reasons, the Rate Limit API response categorizes your rate limit. Under `resources`, you'll see four objects:\n\n* The `core` object provides your rate limit status for all non-search-related resources in the REST API.\n* The `search` object provides your rate limit status for the [Search API](https://developer.github.com/enterprise/2.17/v3/search/).\n* The `graphql` object provides your rate limit status for the [GraphQL API](https://developer.github.com/enterprise/2.17/v4/).\n* The `integration_manifest` object provides your rate limit status for the [GitHub App Manifest code conversion](https://developer.github.com/enterprise/2.17/apps/building-github-apps/creating-github-apps-from-a-manifest/#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration) endpoint.\n\nFor more information on the headers and values in the rate limit response, see \"[Rate limiting](https://developer.github.com/enterprise/2.17/v3/#rate-limiting).\"\n\nThe `rate` object (shown at the bottom of the response above) is deprecated.\n\nIf you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object.",
- "operationId": "rate_limit-get",
- "tags": [
- "rate_limit"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/rate_limit/#get-your-current-rate-limit-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "resources": {
- "type": "object",
- "properties": {
- "core": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- },
- "search": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- },
- "graphql": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- },
- "integration_manifest": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- }
- }
- },
- "rate": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number"
- },
- "remaining": {
- "type": "number"
- },
- "reset": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/rate_limit"
- },
- {
- "lang": "JS",
- "source": "octokit.rate_limit.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/create-for-commit-comment.json b/openapi/ghe-2.17/operations/reactions/create-for-commit-comment.json
deleted file mode 100644
index 1db0e98950..0000000000
--- a/openapi/ghe-2.17/operations/reactions/create-for-commit-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a commit comment",
- "description": "Create a reaction to a [commit comment](https://developer.github.com/enterprise/2.17/v3/repos/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment.",
- "operationId": "reactions-create-for-commit-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#create-reaction-for-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types) to add to the commit comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/create-for-issue-comment.json b/openapi/ghe-2.17/operations/reactions/create-for-issue-comment.json
deleted file mode 100644
index 5683e8237d..0000000000
--- a/openapi/ghe-2.17/operations/reactions/create-for-issue-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for an issue comment",
- "description": "Create a reaction to an [issue comment](https://developer.github.com/enterprise/2.17/v3/issues/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment.",
- "operationId": "reactions-create-for-issue-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#create-reaction-for-an-issue-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types) to add to the issue comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/create-for-issue.json b/openapi/ghe-2.17/operations/reactions/create-for-issue.json
deleted file mode 100644
index ccac67d040..0000000000
--- a/openapi/ghe-2.17/operations/reactions/create-for-issue.json
+++ /dev/null
@@ -1,189 +0,0 @@
-{
- "summary": "Create reaction for an issue",
- "description": "Create a reaction to an [issue](https://developer.github.com/enterprise/2.17/v3/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue.",
- "operationId": "reactions-create-for-issue",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#create-reaction-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types) to add to the issue.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1,\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/reactions/create-for-pull-request-review-comment.json b/openapi/ghe-2.17/operations/reactions/create-for-pull-request-review-comment.json
deleted file mode 100644
index fd2f339201..0000000000
--- a/openapi/ghe-2.17/operations/reactions/create-for-pull-request-review-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a pull request review comment",
- "description": "Create a reaction to a [pull request review comment](https://developer.github.com/enterprise/2.17/v3/pulls/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment.",
- "operationId": "reactions-create-for-pull-request-review-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#create-reaction-for-a-pull-request-review-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types) to add to the pull request review comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/create-for-team-discussion-comment.json b/openapi/ghe-2.17/operations/reactions/create-for-team-discussion-comment.json
deleted file mode 100644
index af90de48b5..0000000000
--- a/openapi/ghe-2.17/operations/reactions/create-for-team-discussion-comment.json
+++ /dev/null
@@ -1,179 +0,0 @@
-{
- "summary": "Create reaction for a team discussion comment",
- "description": "Create a reaction to a [team discussion comment](https://developer.github.com/enterprise/2.17/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment.",
- "operationId": "reactions-create-for-team-discussion-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#create-reaction-for-a-team-discussion-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types) to add to the team discussion comment.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/create-for-team-discussion.json b/openapi/ghe-2.17/operations/reactions/create-for-team-discussion.json
deleted file mode 100644
index 94c5c4b62a..0000000000
--- a/openapi/ghe-2.17/operations/reactions/create-for-team-discussion.json
+++ /dev/null
@@ -1,170 +0,0 @@
-{
- "summary": "Create reaction for a team discussion",
- "description": "Create a reaction to a [team discussion](https://developer.github.com/enterprise/2.17/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion.",
- "operationId": "reactions-create-for-team-discussion",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#create-reaction-for-a-team-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "content": {
- "description": "The [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types) to add to the team discussion.",
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- }
- },
- "required": [
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "content": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/reactions \\\n -d '{\"content\":\"content\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n content: 'content'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/delete.json b/openapi/ghe-2.17/operations/reactions/delete.json
deleted file mode 100644
index 141f22a4d3..0000000000
--- a/openapi/ghe-2.17/operations/reactions/delete.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "summary": "Delete a reaction",
- "description": "OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/enterprise/2.17/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/enterprise/2.17/v3/teams/discussion_comments/).",
- "operationId": "reactions-delete",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#delete-a-reaction"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "reaction_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "reaction_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/reactions/"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n reaction_id: 'reaction_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/list-for-commit-comment.json b/openapi/ghe-2.17/operations/reactions/list-for-commit-comment.json
deleted file mode 100644
index 50b92a0938..0000000000
--- a/openapi/ghe-2.17/operations/reactions/list-for-commit-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a commit comment",
- "description": "List the reactions to a [commit comment](https://developer.github.com/enterprise/2.17/v3/repos/comments/).",
- "operationId": "reactions-list-for-commit-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#list-reactions-for-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/list-for-issue-comment.json b/openapi/ghe-2.17/operations/reactions/list-for-issue-comment.json
deleted file mode 100644
index ee587228e4..0000000000
--- a/openapi/ghe-2.17/operations/reactions/list-for-issue-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for an issue comment",
- "description": "List the reactions to an [issue comment](https://developer.github.com/enterprise/2.17/v3/issues/comments/).",
- "operationId": "reactions-list-for-issue-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#list-reactions-for-an-issue-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/list-for-issue.json b/openapi/ghe-2.17/operations/reactions/list-for-issue.json
deleted file mode 100644
index 66d856db45..0000000000
--- a/openapi/ghe-2.17/operations/reactions/list-for-issue.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "summary": "List reactions for an issue",
- "description": "List the reactions to an [issue](https://developer.github.com/enterprise/2.17/v3/issues/).",
- "operationId": "reactions-list-for-issue",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#list-reactions-for-an-issue"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "issue_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "issue_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/issues/:issue_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n issue_number: 1\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"number\" parameter renamed to \"issue_number\"",
- "meta": {
- "before": "number",
- "after": "issue_number"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/reactions/list-for-pull-request-review-comment.json b/openapi/ghe-2.17/operations/reactions/list-for-pull-request-review-comment.json
deleted file mode 100644
index a84bb0af06..0000000000
--- a/openapi/ghe-2.17/operations/reactions/list-for-pull-request-review-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a pull request review comment",
- "description": "List the reactions to a [pull request review comment](https://developer.github.com/enterprise/2.17/v3/pulls/comments/).",
- "operationId": "reactions-list-for-pull-request-review-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#list-reactions-for-a-pull-request-review-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pulls/comments/:comment_id/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/list-for-team-discussion-comment.json b/openapi/ghe-2.17/operations/reactions/list-for-team-discussion-comment.json
deleted file mode 100644
index 906201b9ca..0000000000
--- a/openapi/ghe-2.17/operations/reactions/list-for-team-discussion-comment.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "List reactions for a team discussion comment",
- "description": "List the reactions to a [team discussion comment](https://developer.github.com/enterprise/2.17/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "reactions-list-for-team-discussion-comment",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#list-reactions-for-a-team-discussion-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/reactions/list-for-team-discussion.json b/openapi/ghe-2.17/operations/reactions/list-for-team-discussion.json
deleted file mode 100644
index 9e4066399a..0000000000
--- a/openapi/ghe-2.17/operations/reactions/list-for-team-discussion.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "summary": "List reactions for a team discussion",
- "description": "List the reactions to a [team discussion](https://developer.github.com/enterprise/2.17/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "reactions-list-for-team-discussion",
- "tags": [
- "reactions"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/reactions/#list-reactions-for-a-team-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "content",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "+1",
- "-1",
- "laugh",
- "confused",
- "heart",
- "hooray",
- "rocket",
- "eyes"
- ]
- },
- "required": false,
- "description": "Returns a single [reaction type](https://developer.github.com/enterprise/2.17/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/reactions"
- },
- {
- "lang": "JS",
- "source": "octokit.reactions.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/accept-invitation.json b/openapi/ghe-2.17/operations/repos/accept-invitation.json
deleted file mode 100644
index 793aa28d1d..0000000000
--- a/openapi/ghe-2.17/operations/repos/accept-invitation.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Accept a repository invitation",
- "description": "",
- "operationId": "repos-accept-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/invitations/#accept-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations/"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/add-collaborator.json b/openapi/ghe-2.17/operations/repos/add-collaborator.json
deleted file mode 100644
index d1584dd1f6..0000000000
--- a/openapi/ghe-2.17/operations/repos/add-collaborator.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "Add user as a collaborator",
- "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "repos-add-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/collaborators/#add-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: \n\\* `pull` - can pull, but not push to or administer this repository. \n\\* `push` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push and administer this repository.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "push"
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/add-deploy-key.json b/openapi/ghe-2.17/operations/repos/add-deploy-key.json
deleted file mode 100644
index 893473ea61..0000000000
--- a/openapi/ghe-2.17/operations/repos/add-deploy-key.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "summary": "Add a new deploy key",
- "description": "Here's how you can create a read-only deploy key:\n\n",
- "operationId": "repos-add-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/keys/#add-a-new-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "A name for the key.",
- "type": "string"
- },
- "key": {
- "description": "The contents of the key.",
- "type": "string"
- },
- "read_only": {
- "description": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/).\"",
- "type": "boolean"
- }
- },
- "required": [
- "key"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys \\\n -d '{\"key\":\"key\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key: 'key'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/add-protected-branch-admin-enforcement.json b/openapi/ghe-2.17/operations/repos/add-protected-branch-admin-enforcement.json
deleted file mode 100644
index 8d5fbe1d6a..0000000000
--- a/openapi/ghe-2.17/operations/repos/add-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Add admin enforcement of protected branch",
- "description": "Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-add-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#add-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/add-protected-branch-required-signatures.json b/openapi/ghe-2.17/operations/repos/add-protected-branch-required-signatures.json
deleted file mode 100644
index e309161727..0000000000
--- a/openapi/ghe-2.17/operations/repos/add-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "summary": "Add required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits.",
- "operationId": "repos-add-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#add-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/add-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.17/operations/repos/add-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 9f50acf974..0000000000
--- a/openapi/ghe-2.17/operations/repos/add-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-add-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/add-protected-branch-team-restrictions.json b/openapi/ghe-2.17/operations/repos/add-protected-branch-team-restrictions.json
deleted file mode 100644
index f6ef4a213a..0000000000
--- a/openapi/ghe-2.17/operations/repos/add-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add team restrictions of protected branch",
- "description": "Grants the specified teams push access for this branch. If you pass the `hellcat-preview` media type, you can also give push access to child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-add-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#add-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/add-protected-branch-user-restrictions.json b/openapi/ghe-2.17/operations/repos/add-protected-branch-user-restrictions.json
deleted file mode 100644
index 56a98eb238..0000000000
--- a/openapi/ghe-2.17/operations/repos/add-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Add user restrictions of protected branch",
- "description": "Grants the specified people push access for this branch.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-add-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#add-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/check-collaborator.json b/openapi/ghe-2.17/operations/repos/check-collaborator.json
deleted file mode 100644
index c933f8d1bd..0000000000
--- a/openapi/ghe-2.17/operations/repos/check-collaborator.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check if a user is a collaborator",
- "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
- "operationId": "repos-check-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/collaborators/#check-if-a-user-is-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/compare-commits.json b/openapi/ghe-2.17/operations/repos/compare-commits.json
deleted file mode 100644
index 38822a3ce0..0000000000
--- a/openapi/ghe-2.17/operations/repos/compare-commits.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Compare two commits",
- "description": "Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`.\n\nThe response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://developer.github.com/enterprise/2.17/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.\n\nThe response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.\n\n**Working with large comparisons**\n\nThe response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [Commit List API](https://developer.github.com/enterprise/2.17/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the range.\n\nFor comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long to generate. You can typically resolve this error by using a smaller commit range.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "repos-compare-commits",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/commits/#compare-two-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "base",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "base parameter"
- },
- {
- "name": "head",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "head parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/compare/:base...:head"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n base: 'base',\n head: 'head'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-commit-comment.json b/openapi/ghe-2.17/operations/repos/create-commit-comment.json
deleted file mode 100644
index 5459685040..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-commit-comment.json
+++ /dev/null
@@ -1,211 +0,0 @@
-{
- "summary": "Create a commit comment",
- "description": "Create a comment for a commit using its `:commit_sha`.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "repos-create-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/comments/#create-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment.",
- "type": "string"
- },
- "path": {
- "description": "Relative path of the file to comment on.",
- "type": "string"
- },
- "position": {
- "description": "Line index in the diff to comment on.",
- "type": "integer"
- },
- "line": {
- "description": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.",
- "type": "integer"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-06-07",
- "note": "\"sha\" parameter renamed to \"commit_sha\"",
- "meta": {
- "before": "sha",
- "after": "commit_sha"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-deployment-status.json b/openapi/ghe-2.17/operations/repos/create-deployment-status.json
deleted file mode 100644
index 0883aeab1e..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-deployment-status.json
+++ /dev/null
@@ -1,238 +0,0 @@
-{
- "summary": "Create a deployment status",
- "description": "Users with `push` access can create deployment statuses for a given deployment.\n\nGitHub Apps require `read & write` access to \"Deployments\" and `read-only` access to \"Repo contents\" (for private repos). OAuth Apps require the `repo_deployment` scope.",
- "operationId": "repos-create-deployment-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/deployments/#create-a-deployment-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state of the status. Can be one of `error`, `failure`, `inactive`, `in_progress`, `queued` `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/enterprise/2.17/v3/previews/#enhanced-deployments) custom media type. To use the `in_progress` and `queued` states, you must provide the [`application/vnd.github.flash-preview+json`](https://developer.github.com/enterprise/2.17/v3/previews/#deployment-statuses) custom media type.",
- "type": "string",
- "enum": [
- "error",
- "failure",
- "inactive",
- "in_progress",
- "queued",
- "pending",
- "success"
- ]
- },
- "target_url": {
- "description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "type": "string",
- "default": ""
- },
- "log_url": {
- "description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "type": "string",
- "default": ""
- },
- "description": {
- "description": "A short description of the status. The maximum description length is 140 characters.",
- "type": "string",
- "default": ""
- },
- "environment": {
- "description": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. **Note:** This parameter requires you to use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/enterprise/2.17/v3/previews/#deployment-statuses) custom media type.",
- "type": "string",
- "enum": [
- "production",
- "staging",
- "qa"
- ]
- },
- "environment_url": {
- "description": "Sets the URL for accessing your environment.",
- "type": "string",
- "default": ""
- },
- "auto_inactive": {
- "description": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` \n**Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/enterprise/2.17/v3/previews/#deployment-statuses) custom media type. **Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/enterprise/2.17/v3/previews/#deployment-statuses) custom media type.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "environment": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "deployment_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "environment_url": {
- "type": "string"
- },
- "log_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-deployment.json b/openapi/ghe-2.17/operations/repos/create-deployment.json
deleted file mode 100644
index 2bcb7dc94f..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-deployment.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "summary": "Create a deployment",
- "description": "Deployments offer a few configurable parameters with sane defaults.\n\nThe `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them before we merge a pull request.\n\nThe `environment` parameter allows deployments to be issued to different runtime environments. Teams often have multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter makes it easier to track which environments have requested deployments. The default environment is `production`.\n\nThe `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will return a failure response.\n\nBy default, [commit statuses](https://developer.github.com/enterprise/2.17/v3/repos/statuses) for every submitted context must be in a `success` state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do not require any contexts or create any commit statuses, the deployment will always succeed.\n\nThe `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text field that will be passed on when a deployment event is dispatched.\n\nThe `task` parameter is used by the deployment system to allow different execution paths. In the web world this might be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an application with debugging enabled.\n\nUsers with `repo` or `repo_deployment` scopes can create a deployment for a given ref:\n\nA simple example putting the user and room into the payload to notify back to chat networks.\n\nA more advanced example specifying required commit statuses and bypassing auto-merging.\n\nYou will see this response when GitHub automatically merges the base branch into the topic branch instead of creating a deployment. This auto-merge happens when:\n\n* Auto-merge option is enabled in the repository\n* Topic branch does not include the latest changes on the base branch, which is `master`in the response example\n* There are no merge conflicts\n\nIf there are no new commits in the base branch, a new request to create a deployment should give a successful response.\n\nThis error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts.\n\nThis error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`.",
- "operationId": "repos-create-deployment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/deployments/#create-a-deployment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "ref": {
- "description": "The ref to deploy. This can be a branch, tag, or SHA.",
- "type": "string"
- },
- "task": {
- "description": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).",
- "type": "string",
- "default": "deploy"
- },
- "auto_merge": {
- "description": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.",
- "type": "boolean",
- "default": true
- },
- "required_contexts": {
- "description": "The [status](https://developer.github.com/enterprise/2.17/v3/repos/statuses/) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "payload": {
- "description": "JSON payload with extra information about the deployment.",
- "type": "string",
- "default": ""
- },
- "environment": {
- "description": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).",
- "type": "string",
- "default": "production"
- },
- "description": {
- "description": "Short description of the deployment.",
- "type": "string",
- "default": ""
- },
- "transient_environment": {
- "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future.",
- "type": "boolean",
- "default": false
- },
- "production_environment": {
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
- "type": "boolean"
- }
- },
- "required": [
- "ref"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments \\\n -d '{\"ref\":\"ref\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-for-authenticated-user.json b/openapi/ghe-2.17/operations/repos/create-for-authenticated-user.json
deleted file mode 100644
index 99656c84c3..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-for-authenticated-user.json
+++ /dev/null
@@ -1,431 +0,0 @@
-{
- "summary": "Create a new repository for the authenticated user",
- "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/enterprise/2.17/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/enterprise/2.17/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
- "operationId": "repos-create-for-authenticated-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#create"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "team_id": {
- "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "type": "integer"
- },
- "auto_init": {
- "description": "Pass `true` to create an initial commit with empty README.",
- "type": "boolean",
- "default": false
- },
- "gitignore_template": {
- "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "type": "string"
- },
- "license_template": {
- "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repos \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-fork.json b/openapi/ghe-2.17/operations/repos/create-fork.json
deleted file mode 100644
index b22fa756ff..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-fork.json
+++ /dev/null
@@ -1,386 +0,0 @@
-{
- "summary": "Create a fork",
- "description": "Create a fork for the authenticated user.\n\n**Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Enterprise Support](https://enterprise.github.com/support).",
- "operationId": "repos-create-fork",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/forks/#create-a-fork"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "organization": {
- "description": "Optional parameter to specify the organization name if forking into an organization.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/forks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-hook.json b/openapi/ghe-2.17/operations/repos/create-hook.json
deleted file mode 100644
index d86250e009..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-hook.json
+++ /dev/null
@@ -1,190 +0,0 @@
-{
- "summary": "Create a hook",
- "description": "Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can share the same `config` as long as those webhooks do not have any `events` that overlap.\n\n**Note:** GitHub Enterprise release 2.17 and higher no longer allows admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.17/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nHere's how you can create a hook that posts payloads in JSON format:",
- "operationId": "repos-create-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/hooks/#create-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "Use `web` to create a webhook.",
- "type": "string",
- "default": "web"
- },
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.17/v3/repos/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.17/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "config"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks \\\n -d '{\"config\":\"config\",\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n config: 'config',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-in-org.json b/openapi/ghe-2.17/operations/repos/create-in-org.json
deleted file mode 100644
index be73292968..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-in-org.json
+++ /dev/null
@@ -1,440 +0,0 @@
-{
- "summary": "Create a new repository in this organization",
- "description": "**Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/enterprise/2.17/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/enterprise/2.17/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository",
- "operationId": "repos-create-in-org",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#create"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "team_id": {
- "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.",
- "type": "integer"
- },
- "auto_init": {
- "description": "Pass `true` to create an initial commit with empty README.",
- "type": "boolean",
- "default": false
- },
- "gitignore_template": {
- "description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, \"Haskell\".",
- "type": "string"
- },
- "license_template": {
- "description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, \"mit\" or \"mpl-2.0\".",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//repos \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-or-update-file.json b/openapi/ghe-2.17/operations/repos/create-or-update-file.json
deleted file mode 100644
index 2628017fc4..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-or-update-file.json
+++ /dev/null
@@ -1,299 +0,0 @@
-{
- "summary": "Create or update a file",
- "description": "Creates a new file or updates an existing file in a repository.",
- "operationId": "repos-create-or-update-file",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/contents/#create-or-update-a-file"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message.",
- "type": "string"
- },
- "content": {
- "description": "The new file content, using Base64 encoding.",
- "type": "string"
- },
- "sha": {
- "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.",
- "type": "string"
- },
- "branch": {
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
- "type": "string"
- },
- "committer": {
- "description": "The person that committed the file. Default: the authenticated user.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- },
- "email": {
- "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "email"
- ]
- },
- "author": {
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- },
- "email": {
- "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "email"
- ]
- }
- },
- "required": [
- "message",
- "content"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "self": {
- "type": "string"
- },
- "git": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path \\\n -d '{\"message\":\"message\",\"content\":\"content\",\"committer.name\":\"committer.name\",\"committer.email\":\"committer.email\",\"author.name\":\"author.name\",\"author.email\":\"author.email\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path',\n message: 'message',\n content: 'content',\n 'committer.name': 'committer.name',\n 'committer.email': 'committer.email',\n 'author.name': 'author.name',\n 'author.email': 'author.email'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2019-06-07",
- "note": "\"Create a file\" replaced by \"Create or update a file\"",
- "meta": {
- "before": {
- "idName": "create-file"
- },
- "after": {
- "idName": "create-or-update-file"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-release.json b/openapi/ghe-2.17/operations/repos/create-release.json
deleted file mode 100644
index 875a3ada72..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-release.json
+++ /dev/null
@@ -1,221 +0,0 @@
-{
- "summary": "Create a release",
- "description": "Users with push access to the repository can create a release.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "repos-create-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#create-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string"
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "type": "string"
- },
- "name": {
- "description": "The name of the release.",
- "type": "string"
- },
- "body": {
- "description": "Text describing the contents of the tag.",
- "type": "string"
- },
- "draft": {
- "description": "`true` to create a draft (unpublished) release, `false` to create a published one.",
- "type": "boolean",
- "default": false
- },
- "prerelease": {
- "description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "tag_name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {}
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases \\\n -d '{\"tag_name\":\"tag_name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag_name: 'tag_name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/create-status.json b/openapi/ghe-2.17/operations/repos/create-status.json
deleted file mode 100644
index 77860bb865..0000000000
--- a/openapi/ghe-2.17/operations/repos/create-status.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "summary": "Create a status",
- "description": "Users with push access in a repository can create commit statuses for a given SHA.\n\nNote: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error.",
- "operationId": "repos-create-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/statuses/#create-a-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "sha parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state of the status. Can be one of `error`, `failure`, `pending`, or `success`.",
- "type": "string",
- "enum": [
- "error",
- "failure",
- "pending",
- "success"
- ]
- },
- "target_url": {
- "description": "The target URL to associate with this status. This URL will be linked from the GitHub Enterprise Server UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`",
- "type": "string"
- },
- "description": {
- "description": "A short description of the status.",
- "type": "string"
- },
- "context": {
- "description": "A string label to differentiate this status from the status of other systems.",
- "type": "string",
- "default": "default"
- }
- },
- "required": [
- "state"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "context": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/statuses/:sha \\\n -d '{\"state\":\"state\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n sha: 'sha',\n state: 'state'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/decline-invitation.json b/openapi/ghe-2.17/operations/repos/decline-invitation.json
deleted file mode 100644
index 4a65e7464d..0000000000
--- a/openapi/ghe-2.17/operations/repos/decline-invitation.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Decline a repository invitation",
- "description": "",
- "operationId": "repos-decline-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/invitations/#decline-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations/"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/delete-commit-comment.json b/openapi/ghe-2.17/operations/repos/delete-commit-comment.json
deleted file mode 100644
index 7ae949dff5..0000000000
--- a/openapi/ghe-2.17/operations/repos/delete-commit-comment.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a commit comment",
- "description": "",
- "operationId": "repos-delete-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/comments/#delete-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/delete-download.json b/openapi/ghe-2.17/operations/repos/delete-download.json
deleted file mode 100644
index 2cfd471186..0000000000
--- a/openapi/ghe-2.17/operations/repos/delete-download.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a download",
- "description": "",
- "operationId": "repos-delete-download",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/downloads/#delete-a-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "download_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "download_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads/:download_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 'download_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/delete-file.json b/openapi/ghe-2.17/operations/repos/delete-file.json
deleted file mode 100644
index 9e345fb502..0000000000
--- a/openapi/ghe-2.17/operations/repos/delete-file.json
+++ /dev/null
@@ -1,230 +0,0 @@
-{
- "summary": "Delete a file",
- "description": "Deletes a file in a repository.\n\nYou can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.",
- "operationId": "repos-delete-file",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/contents/#delete-a-file"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "message": {
- "description": "The commit message.",
- "type": "string"
- },
- "sha": {
- "description": "The blob SHA of the file being replaced.",
- "type": "string"
- },
- "branch": {
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
- "type": "string"
- },
- "committer": {
- "description": "object containing information about the committer.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- }
- }
- },
- "author": {
- "description": "object containing information about the author.",
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the author (or committer) of the commit",
- "type": "string"
- },
- "email": {
- "description": "The email of the author (or committer) of the commit",
- "type": "string"
- }
- }
- }
- },
- "required": [
- "message",
- "sha"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "content": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "date": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path \\\n -d '{\"message\":\"message\",\"sha\":\"sha\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path',\n message: 'message',\n sha: 'sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/delete-hook.json b/openapi/ghe-2.17/operations/repos/delete-hook.json
deleted file mode 100644
index 2550f6cc89..0000000000
--- a/openapi/ghe-2.17/operations/repos/delete-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a hook",
- "description": "",
- "operationId": "repos-delete-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/hooks/#delete-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/delete-invitation.json b/openapi/ghe-2.17/operations/repos/delete-invitation.json
deleted file mode 100644
index ffb3491bac..0000000000
--- a/openapi/ghe-2.17/operations/repos/delete-invitation.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a repository invitation",
- "description": "",
- "operationId": "repos-delete-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/invitations/#delete-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations/:invitation_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/delete-release-asset.json b/openapi/ghe-2.17/operations/repos/delete-release-asset.json
deleted file mode 100644
index f15783dfa0..0000000000
--- a/openapi/ghe-2.17/operations/repos/delete-release-asset.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a release asset",
- "description": "",
- "operationId": "repos-delete-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#delete-a-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/delete-release.json b/openapi/ghe-2.17/operations/repos/delete-release.json
deleted file mode 100644
index 487b3e6c6f..0000000000
--- a/openapi/ghe-2.17/operations/repos/delete-release.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Delete a release",
- "description": "Users with push access to the repository can delete a release.",
- "operationId": "repos-delete-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#delete-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/delete.json b/openapi/ghe-2.17/operations/repos/delete.json
deleted file mode 100644
index 8a177d6f0c..0000000000
--- a/openapi/ghe-2.17/operations/repos/delete.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Delete a repository",
- "description": "Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.\n\nIf an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:\n\nIf a site admin has configured the enterprise appliance to prevent users from deleting organization-owned repositories, a user will get this response:",
- "operationId": "repos-delete",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#delete-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/disable-pages-site.json b/openapi/ghe-2.17/operations/repos/disable-pages-site.json
deleted file mode 100644
index 382bf6aaf1..0000000000
--- a/openapi/ghe-2.17/operations/repos/disable-pages-site.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Disable a Pages site",
- "description": "",
- "operationId": "repos-disable-pages-site",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/pages/#disable-a-pages-site"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.switcheroo-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.switcheroo-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/enable-pages-site.json b/openapi/ghe-2.17/operations/repos/enable-pages-site.json
deleted file mode 100644
index d5ebffab9c..0000000000
--- a/openapi/ghe-2.17/operations/repos/enable-pages-site.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "summary": "Enable a Pages site",
- "description": "",
- "operationId": "repos-enable-pages-site",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/pages/#enable-a-pages-site"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.switcheroo-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "source": {
- "description": "source parameter",
- "type": "object",
- "properties": {
- "branch": {
- "description": "The repository branch used to publish your [site's source files](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/). Can be either `master` or `gh-pages`.",
- "type": "string",
- "enum": [
- "master",
- "gh-pages"
- ]
- },
- "path": {
- "description": "The repository directory that includes the source files for the Pages site. When `branch` is `master`, you can change `path` to `/docs`. When `branch` is `gh-pages`, you are unable to specify a `path` other than `/`.",
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "cname": {
- "type": "string"
- },
- "custom_404": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "source": {
- "type": "object",
- "properties": {
- "branch": {
- "type": "string"
- },
- "directory": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.switcheroo-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-archive-link.json b/openapi/ghe-2.17/operations/repos/get-archive-link.json
deleted file mode 100644
index d640eca9ee..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-archive-link.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "summary": "Get archive link",
- "description": "Gets a redirect URL to download an archive for a repository. The `:archive_format` can be either `tarball` or `zipball`. The `:ref` must be a valid Git reference. If you omit `:ref`, the repository’s default branch (usually `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request.\n\n_Note_: For private repositories, these links are temporary and expire after five minutes.\n\nTo follow redirects with curl, use the `-L` switch:\n\n",
- "operationId": "repos-get-archive-link",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/contents/#get-archive-link"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "archive_format",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "archive_format parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "302": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/:archive_format/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n archive_format: 'archive_format',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-branch-protection.json b/openapi/ghe-2.17/operations/repos/get-branch-protection.json
deleted file mode 100644
index 3cd71f33d9..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-branch-protection.json
+++ /dev/null
@@ -1,364 +0,0 @@
-{
- "summary": "Get branch protection",
- "description": "",
- "operationId": "repos-get-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#get-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- },
- "enforce_admins": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "required_pull_request_reviews": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- },
- "restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-branch.json b/openapi/ghe-2.17/operations/repos/get-branch.json
deleted file mode 100644
index 85c18480fc..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-branch.json
+++ /dev/null
@@ -1,260 +0,0 @@
-{
- "summary": "Get branch",
- "description": "",
- "operationId": "repos-get-branch",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#get-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "name": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "url": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "date": {
- "type": "string"
- },
- "email": {
- "type": "string"
- }
- }
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- },
- "author": {
- "type": "object",
- "properties": {
- "gravatar_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "login": {
- "type": "string"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "sha",
- "url"
- ]
- }
- },
- "url": {
- "type": "string"
- },
- "committer": {
- "type": "object",
- "properties": {
- "gravatar_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "login": {
- "type": "string"
- }
- }
- }
- }
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "string"
- },
- "self": {
- "type": "string"
- }
- }
- },
- "protected": {
- "type": "boolean"
- },
- "protection": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "enforcement_level": {
- "type": "string"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "protection_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-code-frequency-stats.json b/openapi/ghe-2.17/operations/repos/get-code-frequency-stats.json
deleted file mode 100644
index 8cbc1323f3..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-code-frequency-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the number of additions and deletions per week",
- "description": "Returns a weekly aggregate of the number of additions and deletions pushed to a repository.\n\n",
- "operationId": "repos-get-code-frequency-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/code_frequency"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-collaborator-permission-level.json b/openapi/ghe-2.17/operations/repos/get-collaborator-permission-level.json
deleted file mode 100644
index 8aa6087ce6..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-collaborator-permission-level.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Review a user's permission level",
- "description": "Possible values for the `permission` key: `admin`, `write`, `read`, `none`.",
- "operationId": "repos-get-collaborator-permission-level",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/collaborators/#review-a-users-permission-level"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username/permission"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-combined-status-for-ref.json b/openapi/ghe-2.17/operations/repos/get-combined-status-for-ref.json
deleted file mode 100644
index d6c53f96c1..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-combined-status-for-ref.json
+++ /dev/null
@@ -1,346 +0,0 @@
-{
- "summary": "Get the combined status for a specific ref",
- "description": "Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.\n\nThe most recent status for each context is returned, up to 100. This field [paginates](https://developer.github.com/enterprise/2.17/v3/#pagination) if there are over 100 contexts.\n\nAdditionally, a combined `state` is returned. The `state` is one of:\n\n* **failure** if any of the contexts report as `error` or `failure`\n* **pending** if there are no statuses or a context is `pending`\n* **success** if the latest status for all contexts is `success`",
- "operationId": "repos-get-combined-status-for-ref",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "state": {
- "type": "string"
- },
- "statuses": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "context": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "url",
- "avatar_url",
- "id",
- "node_id",
- "state",
- "description",
- "target_url",
- "context",
- "created_at",
- "updated_at"
- ]
- }
- },
- "sha": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "commit_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/status"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-commit-activity-stats.json b/openapi/ghe-2.17/operations/repos/get-commit-activity-stats.json
deleted file mode 100644
index c52e2d086f..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-commit-activity-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the last year of commit activity data",
- "description": "Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`.\n\n",
- "operationId": "repos-get-commit-activity-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/statistics/#get-the-last-year-of-commit-activity-data"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/commit_activity"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-commit-comment.json b/openapi/ghe-2.17/operations/repos/get-commit-comment.json
deleted file mode 100644
index 67ee2e5f2b..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-commit-comment.json
+++ /dev/null
@@ -1,171 +0,0 @@
-{
- "summary": "Get a single commit comment",
- "description": "",
- "operationId": "repos-get-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/comments/#get-a-single-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-commit.json b/openapi/ghe-2.17/operations/repos/get-commit.json
deleted file mode 100644
index 12cd949d0d..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-commit.json
+++ /dev/null
@@ -1,361 +0,0 @@
-{
- "summary": "Get a single commit",
- "description": "Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.\n\nYou can pass the appropriate [media type](https://developer.github.com/enterprise/2.17/v3/media/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.\n\nTo return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://developer.github.com/enterprise/2.17/v3/media/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |\n\n",
- "operationId": "repos-get-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/commits/#get-a-single-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commit": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "date": {
- "type": "string"
- }
- }
- },
- "message": {
- "type": "string"
- },
- "tree": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- },
- "comment_count": {
- "type": "number"
- },
- "verification": {
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "signature": {
- "type": "string"
- },
- "payload": {
- "type": "string"
- }
- }
- }
- }
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "committer": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- }
- }
- }
- },
- "stats": {
- "type": "object",
- "properties": {
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- }
- },
- "files": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "changes": {
- "type": "number"
- },
- "status": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "blob_url": {
- "type": "string"
- },
- "patch": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-04-10",
- "note": "\"sha\" parameter renamed to \"ref\"",
- "meta": {
- "before": "sha",
- "after": "commit_sha"
- }
- },
- {
- "type": "parameter",
- "date": "2019-06-21",
- "note": "\"commit_sha\" parameter renamed to \"ref\"",
- "meta": {
- "before": "commit_sha",
- "after": "ref"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-contents.json b/openapi/ghe-2.17/operations/repos/get-contents.json
deleted file mode 100644
index 45739d1902..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-contents.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "summary": "Get contents",
- "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit `:path`, you will receive the contents of all files in the repository.\n\nFiles and symlinks support [a custom media type](https://developer.github.com/enterprise/2.17/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML (when supported). All content types support [a custom media type](https://developer.github.com/enterprise/2.17/v3/repos/contents/#custom-media-types) to ensure the content is returned in a consistent object format.\n\n**Note**:\n\n* To get a repository's contents recursively, you can [recursively get the tree](https://developer.github.com/enterprise/2.17/v3/git/trees/).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees API](https://developer.github.com/enterprise/2.17/v3/git/trees/#get-a-tree).\n* This API supports files up to 1 megabyte in size.\n\nThe response will be an array of objects, one object for each item in the directory.\n\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value _should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as \"submodule\".\n\nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](https://developer.github.com/enterprise/2.17/v3/repos/contents/#response-if-content-is-a-file)).\n\nOtherwise, the API responds with an object describing the symlink itself:\n\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the github.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
- "operationId": "repos-get-contents",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/contents/#get-contents"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "path",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "path parameter"
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contents/:path"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n path: 'path'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-contributors-stats.json b/openapi/ghe-2.17/operations/repos/get-contributors-stats.json
deleted file mode 100644
index fe716dac2f..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-contributors-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get contributors list with additions, deletions, and commit counts",
- "description": "* `total` - The Total number of commits authored by the contributor.\n\nWeekly Hash (`weeks` array):\n\n* `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).\n* `a` - Number of additions\n* `d` - Number of deletions\n* `c` - Number of commits\n\n",
- "operationId": "repos-get-contributors-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/contributors"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-deploy-key.json b/openapi/ghe-2.17/operations/repos/get-deploy-key.json
deleted file mode 100644
index 8f6638a417..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-deploy-key.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "summary": "Get a deploy key",
- "description": "",
- "operationId": "repos-get-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/keys/#get-a-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys/:key_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-deployment-status.json b/openapi/ghe-2.17/operations/repos/get-deployment-status.json
deleted file mode 100644
index f9bc1ef6c0..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-deployment-status.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Get a single deployment status",
- "description": "Users with pull access can view a deployment status for a deployment:",
- "operationId": "repos-get-deployment-status",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/deployments/#get-a-single-deployment-status"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- },
- {
- "name": "status_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "status_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "environment": {
- "type": "string"
- },
- "target_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "deployment_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "environment_url": {
- "type": "string"
- },
- "log_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses/:status_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id',\n status_id: 'status_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-deployment.json b/openapi/ghe-2.17/operations/repos/get-deployment.json
deleted file mode 100644
index d9515e3e21..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-deployment.json
+++ /dev/null
@@ -1,191 +0,0 @@
-{
- "summary": "Get a single deployment",
- "description": "",
- "operationId": "repos-get-deployment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/deployments/#get-a-single-deployment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "ref": {
- "type": "string"
- },
- "task": {
- "type": "string"
- },
- "payload": {
- "type": "object",
- "properties": {
- "deploy": {
- "type": "string"
- }
- }
- },
- "original_environment": {
- "type": "string"
- },
- "environment": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "repository_url": {
- "type": "string"
- },
- "transient_environment": {
- "type": "boolean"
- },
- "production_environment": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-download.json b/openapi/ghe-2.17/operations/repos/get-download.json
deleted file mode 100644
index d14ef2ed37..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-download.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "summary": "Get a single download",
- "description": "",
- "operationId": "repos-get-download",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/downloads/#get-a-single-download"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "download_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "download_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "content_type": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads/:download_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 'download_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-hook.json b/openapi/ghe-2.17/operations/repos/get-hook.json
deleted file mode 100644
index 67157a8404..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-hook.json
+++ /dev/null
@@ -1,140 +0,0 @@
-{
- "summary": "Get single hook",
- "description": "",
- "operationId": "repos-get-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/hooks/#get-single-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-latest-pages-build.json b/openapi/ghe-2.17/operations/repos/get-latest-pages-build.json
deleted file mode 100644
index 5aa8b73a39..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-latest-pages-build.json
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "summary": "Get latest Pages build",
- "description": "",
- "operationId": "repos-get-latest-pages-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/pages/#get-latest-pages-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "error": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- }
- }
- },
- "pusher": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "commit": {
- "type": "string"
- },
- "duration": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-latest-release.json b/openapi/ghe-2.17/operations/repos/get-latest-release.json
deleted file mode 100644
index 08e57c46be..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-latest-release.json
+++ /dev/null
@@ -1,280 +0,0 @@
-{
- "summary": "Get the latest release",
- "description": "View the latest published full release for the repository.\n\nThe latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published.",
- "operationId": "repos-get-latest-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#get-the-latest-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/latest"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-pages-build.json b/openapi/ghe-2.17/operations/repos/get-pages-build.json
deleted file mode 100644
index 37bf93ee1f..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-pages-build.json
+++ /dev/null
@@ -1,164 +0,0 @@
-{
- "summary": "Get a specific Pages build",
- "description": "",
- "operationId": "repos-get-pages-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/pages/#get-a-specific-pages-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "build_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "build_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "error": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- }
- }
- },
- "pusher": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "commit": {
- "type": "string"
- },
- "duration": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds/:build_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n build_id: 'build_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-pages.json b/openapi/ghe-2.17/operations/repos/get-pages.json
deleted file mode 100644
index 6997b7af0f..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-pages.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "Get information about a Pages site",
- "description": "",
- "operationId": "repos-get-pages",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/pages/#get-information-about-a-pages-site"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "cname": {
- "type": "string"
- },
- "custom_404": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "source": {
- "type": "object",
- "properties": {
- "branch": {
- "type": "string"
- },
- "directory": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-participation-stats.json b/openapi/ghe-2.17/operations/repos/get-participation-stats.json
deleted file mode 100644
index 4da936016a..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-participation-stats.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get the weekly commit count for the repository owner and everyone else",
- "description": "Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`.\n\nThe array order is oldest week (index 0) to most recent week.\n\n",
- "operationId": "repos-get-participation-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "all": {
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- "owner": {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/participation"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-protected-branch-admin-enforcement.json b/openapi/ghe-2.17/operations/repos/get-protected-branch-admin-enforcement.json
deleted file mode 100644
index c601ebbc95..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get admin enforcement of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#get-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.17/operations/repos/get-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index 6da649d831..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get pull request review enforcement of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-protected-branch-required-signatures.json b/openapi/ghe-2.17/operations/repos/get-protected-branch-required-signatures.json
deleted file mode 100644
index 9c4436b2f9..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "summary": "Get required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help.\n\n**Note**: You must enable branch protection to require signed commits.",
- "operationId": "repos-get-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#get-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-protected-branch-required-status-checks.json b/openapi/ghe-2.17/operations/repos/get-protected-branch-required-status-checks.json
deleted file mode 100644
index b25a77ccee..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "summary": "Get required status checks of protected branch",
- "description": "",
- "operationId": "repos-get-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#get-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-protected-branch-restrictions.json b/openapi/ghe-2.17/operations/repos/get-protected-branch-restrictions.json
deleted file mode 100644
index 3a756da3cb..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-protected-branch-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Get restrictions of protected branch",
- "description": "**Note**: Teams and users `restrictions` are only available for organization-owned repositories.",
- "operationId": "repos-get-protected-branch-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#get-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-punch-card-stats.json b/openapi/ghe-2.17/operations/repos/get-punch-card-stats.json
deleted file mode 100644
index b706a51d68..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-punch-card-stats.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "summary": "Get the number of commits per hour in each day",
- "description": "Each array contains the day number, hour number, and number of commits:\n\n* `0-6`: Sunday - Saturday\n* `0-23`: Hour of day\n* Number of commits\n\nFor example, `[2, 14, 25]` indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits.",
- "operationId": "repos-get-punch-card-stats",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/stats/punch_card"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-readme.json b/openapi/ghe-2.17/operations/repos/get-readme.json
deleted file mode 100644
index d82892b6f8..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-readme.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "summary": "Get the README",
- "description": "Gets the preferred README for a repository.\n\nREADMEs support [custom media types](https://developer.github.com/enterprise/2.17/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML.",
- "operationId": "repos-get-readme",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/contents/#get-the-readme"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "sha": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "download_url": {
- "type": "string"
- },
- "_links": {
- "type": "object",
- "properties": {
- "git": {
- "type": "string"
- },
- "self": {
- "type": "string"
- },
- "html": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/readme"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-release-asset.json b/openapi/ghe-2.17/operations/repos/get-release-asset.json
deleted file mode 100644
index 0f2fb14abb..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-release-asset.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "summary": "Get a single release asset",
- "description": "To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://developer.github.com/enterprise/2.17/v3/media/#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response.",
- "operationId": "repos-get-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#get-a-single-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-release-by-tag.json b/openapi/ghe-2.17/operations/repos/get-release-by-tag.json
deleted file mode 100644
index ddc46e47bb..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-release-by-tag.json
+++ /dev/null
@@ -1,289 +0,0 @@
-{
- "summary": "Get a release by tag name",
- "description": "Get a published release with the specified tag.",
- "operationId": "repos-get-release-by-tag",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#get-a-release-by-tag-name"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "tag",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "tag parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/tags/:tag"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n tag: 'tag'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get-release.json b/openapi/ghe-2.17/operations/repos/get-release.json
deleted file mode 100644
index 623570fd9c..0000000000
--- a/openapi/ghe-2.17/operations/repos/get-release.json
+++ /dev/null
@@ -1,289 +0,0 @@
-{
- "summary": "Get a single release",
- "description": "**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://developer.github.com/enterprise/2.17/v3/#hypermedia).",
- "operationId": "repos-get-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#get-a-single-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/get.json b/openapi/ghe-2.17/operations/repos/get.json
deleted file mode 100644
index 1aa6ecb268..0000000000
--- a/openapi/ghe-2.17/operations/repos/get.json
+++ /dev/null
@@ -1,1059 +0,0 @@
-{
- "summary": "Get",
- "description": "The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.",
- "operationId": "repos-get",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#get"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- },
- "license": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "spdx_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- }
- }
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parent": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- }
- }
- },
- "source": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-assets-for-release.json b/openapi/ghe-2.17/operations/repos/list-assets-for-release.json
deleted file mode 100644
index e0a58ede57..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-assets-for-release.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List assets for a release",
- "description": "",
- "operationId": "repos-list-assets-for-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#list-assets-for-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id/assets"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-branches-for-head-commit.json b/openapi/ghe-2.17/operations/repos/list-branches-for-head-commit.json
deleted file mode 100644
index a10a5c52c2..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-branches-for-head-commit.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "summary": "List branches for HEAD commit",
- "description": "Returns all branches where the given commit SHA is the HEAD, or latest commit for the branch.",
- "operationId": "repos-list-branches-for-head-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/commits/#list-branches-for-head-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.groot-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.groot-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/branches-where-head"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-branches.json b/openapi/ghe-2.17/operations/repos/list-branches.json
deleted file mode 100644
index e167fb8e5b..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-branches.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List branches",
- "description": "",
- "operationId": "repos-list-branches",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#list-branches"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "protected",
- "in": "query",
- "schema": {
- "type": "boolean"
- },
- "required": false,
- "description": "Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-collaborators.json b/openapi/ghe-2.17/operations/repos/list-collaborators.json
deleted file mode 100644
index 4c3e8caa8e..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-collaborators.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List collaborators",
- "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nIf you pass the `hellcat-preview` media type, team members will include the members of child teams.",
- "operationId": "repos-list-collaborators",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/collaborators/#list-collaborators"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "outside",
- "direct",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filter collaborators returned by their affiliation. Can be one of: \n\\* `outside`: All outside collaborators of an organization-owned repository. \n\\* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-comments-for-commit.json b/openapi/ghe-2.17/operations/repos/list-comments-for-commit.json
deleted file mode 100644
index b350145c1e..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-comments-for-commit.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "summary": "List comments for a single commit",
- "description": "Use the `:commit_sha` to specify the commit that will have its comments listed.",
- "operationId": "repos-list-comments-for-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/comments/#list-comments-for-a-single-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "parameter",
- "date": "2019-06-07",
- "note": "\"ref\" parameter renamed to \"commit_sha\"",
- "meta": {
- "before": "ref",
- "after": "commit_sha"
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-commit-comments.json b/openapi/ghe-2.17/operations/repos/list-commit-comments.json
deleted file mode 100644
index 3702e72162..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-commit-comments.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List commit comments for a repository",
- "description": "Commit Comments use [these custom media types](https://developer.github.com/enterprise/2.17/v3/repos/comments/#custom-media-types). You can read more about the use of media types in the API [here](https://developer.github.com/enterprise/2.17/v3/media/).\n\nComments are ordered by ascending ID.",
- "operationId": "repos-list-commit-comments",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/comments/#list-commit-comments-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-commits.json b/openapi/ghe-2.17/operations/repos/list-commits.json
deleted file mode 100644
index 0469e28785..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-commits.json
+++ /dev/null
@@ -1,132 +0,0 @@
-{
- "summary": "List commits on a repository",
- "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |",
- "operationId": "repos-list-commits",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/commits/#list-commits-on-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`)."
- },
- {
- "name": "path",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits containing this file path will be returned."
- },
- {
- "name": "author",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "GitHub login or email address by which to filter by commit author."
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits after this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "until",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-contributors.json b/openapi/ghe-2.17/operations/repos/list-contributors.json
deleted file mode 100644
index 457492d1f9..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-contributors.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "List contributors",
- "description": "Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance.\n\nGitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information.",
- "operationId": "repos-list-contributors",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#list-contributors"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "anon",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Set to `1` or `true` to include anonymous contributors in results."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/contributors"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-deploy-keys.json b/openapi/ghe-2.17/operations/repos/list-deploy-keys.json
deleted file mode 100644
index a5cf621bf4..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-deploy-keys.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List deploy keys",
- "description": "",
- "operationId": "repos-list-deploy-keys",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/keys/#list-deploy-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-deployment-statuses.json b/openapi/ghe-2.17/operations/repos/list-deployment-statuses.json
deleted file mode 100644
index b4da1c021f..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-deployment-statuses.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List deployment statuses",
- "description": "Users with pull access can view deployment statuses for a deployment:",
- "operationId": "repos-list-deployment-statuses",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/deployments/#list-deployment-statuses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "deployment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "deployment_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments/:deployment_id/statuses"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n deployment_id: 'deployment_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-deployments.json b/openapi/ghe-2.17/operations/repos/list-deployments.json
deleted file mode 100644
index 86216154c5..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-deployments.json
+++ /dev/null
@@ -1,127 +0,0 @@
-{
- "summary": "List deployments",
- "description": "Simple filtering of deployments is available via query parameters:",
- "operationId": "repos-list-deployments",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/deployments/#list-deployments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sha",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The SHA recorded at creation time."
- },
- {
- "name": "ref",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the ref. This can be a branch, tag, or SHA."
- },
- {
- "name": "task",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`)."
- },
- {
- "name": "environment",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "none"
- },
- "required": false,
- "description": "The name of the environment that was deployed to (e.g., `staging` or `production`)."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/deployments"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-downloads.json b/openapi/ghe-2.17/operations/repos/list-downloads.json
deleted file mode 100644
index 0dbea490d8..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-downloads.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List downloads for a repository",
- "description": "",
- "operationId": "repos-list-downloads",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/downloads/#list-downloads-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/downloads"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-for-org.json b/openapi/ghe-2.17/operations/repos/list-for-org.json
deleted file mode 100644
index 74ed920509..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-for-org.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "summary": "List organization repositories",
- "description": "List repositories for the specified org.",
- "operationId": "repos-list-for-org",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#list-organization-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "public",
- "private",
- "forks",
- "sources",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "created"
- },
- "required": false,
- "description": "Can be one of `created`, `updated`, `pushed`, `full_name`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc`"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-for-user.json b/openapi/ghe-2.17/operations/repos/list-for-user.json
deleted file mode 100644
index 63de42e5f0..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-for-user.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "summary": "List user repositories",
- "description": "List public repositories for the specified user.",
- "operationId": "repos-list-for-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#list-user-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "member"
- ],
- "default": "owner"
- },
- "required": false,
- "description": "Can be one of `all`, `owner`, `member`."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- },
- "required": false,
- "description": "Can be one of `created`, `updated`, `pushed`, `full_name`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-forks.json b/openapi/ghe-2.17/operations/repos/list-forks.json
deleted file mode 100644
index c5eb46924b..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-forks.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List forks",
- "description": "",
- "operationId": "repos-list-forks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/forks/#list-forks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "newest",
- "oldest",
- "stargazers"
- ],
- "default": "newest"
- },
- "required": false,
- "description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/forks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-hooks.json b/openapi/ghe-2.17/operations/repos/list-hooks.json
deleted file mode 100644
index 70be63b3da..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-hooks.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List hooks",
- "description": "",
- "operationId": "repos-list-hooks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/hooks/#list-hooks"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-invitations-for-authenticated-user.json b/openapi/ghe-2.17/operations/repos/list-invitations-for-authenticated-user.json
deleted file mode 100644
index 775ca62d77..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-invitations-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List a user's repository invitations",
- "description": "When authenticating as a user, this endpoint will list all currently open repository invitations for that user.\n\n",
- "operationId": "repos-list-invitations-for-authenticated-user",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/invitations/#list-a-users-repository-invitations"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repository_invitations"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-invitations.json b/openapi/ghe-2.17/operations/repos/list-invitations.json
deleted file mode 100644
index 2a4b6e4bae..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-invitations.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List invitations for a repository",
- "description": "When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations.\n\n",
- "operationId": "repos-list-invitations",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/invitations/#list-invitations-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-languages.json b/openapi/ghe-2.17/operations/repos/list-languages.json
deleted file mode 100644
index 3928e8a4f9..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-languages.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "List languages",
- "description": "Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language.",
- "operationId": "repos-list-languages",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#list-languages"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "C": {
- "type": "number"
- },
- "Python": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/languages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-pages-builds.json b/openapi/ghe-2.17/operations/repos/list-pages-builds.json
deleted file mode 100644
index 03fe4866fb..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-pages-builds.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List Pages builds",
- "description": "",
- "operationId": "repos-list-pages-builds",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/pages/#list-pages-builds"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.17/operations/repos/list-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index daf0a4050f..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "List required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-list-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-protected-branch-team-restrictions.json b/openapi/ghe-2.17/operations/repos/list-protected-branch-team-restrictions.json
deleted file mode 100644
index ac9b6d2306..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "List team restrictions of protected branch",
- "description": "Lists the teams who have push access to this branch. If you pass the `hellcat-preview` media type, the list includes child teams.",
- "operationId": "repos-list-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#list-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-protected-branch-user-restrictions.json b/openapi/ghe-2.17/operations/repos/list-protected-branch-user-restrictions.json
deleted file mode 100644
index 7d47e4f61c..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "List user restrictions of protected branch",
- "description": "Lists the people who have push access to this branch.",
- "operationId": "repos-list-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#list-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-public.json b/openapi/ghe-2.17/operations/repos/list-public.json
deleted file mode 100644
index b0bd6bcf77..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-public.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "summary": "List all public repositories",
- "description": "This provides a dump of every public repository, in the order that they were created.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.17/v3/#link-header) to get the URL for the next page of repositories.\n\nIf you are an [authenticated](https://developer.github.com/enterprise/2.17/v3/#authentication) site administrator for your Enterprise appliance, you will be able to list all repositories including private repositories.",
- "operationId": "repos-list-public",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#list-all-public-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last Repository that you've seen."
- },
- {
- "name": "visibility",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "public"
- },
- "required": false,
- "description": "To include private repositories as well set to `all`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-pull-requests-associated-with-commit.json b/openapi/ghe-2.17/operations/repos/list-pull-requests-associated-with-commit.json
deleted file mode 100644
index 472bbe6ded..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-pull-requests-associated-with-commit.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "List pull requests associated with commit",
- "description": "Lists all pull requests containing the provided commit SHA, which can be from any point in the commit history. The results will include open and closed pull requests. Additional preview headers may be required to see certain details for associated pull requests, such as whether a pull request is in a draft state. For more information about previews that might affect this endpoint, see the [List pull requests](https://developer.github.com/enterprise/2.17/v3/pulls/#list-pull-requests) endpoint.",
- "operationId": "repos-list-pull-requests-associated-with-commit",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/commits/#list-pull-requests-associated-with-commit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.groot-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "commit_sha",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "commit_sha parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.groot-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:commit_sha/pulls"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n commit_sha: 'commit_sha'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-releases.json b/openapi/ghe-2.17/operations/repos/list-releases.json
deleted file mode 100644
index 9ea496a691..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-releases.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List releases for a repository",
- "description": "This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://developer.github.com/enterprise/2.17/v3/repos/#list-tags).\n\nInformation about published releases are available to everyone. Only users with push access will receive listings for draft releases.",
- "operationId": "repos-list-releases",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#list-releases-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-statuses-for-ref.json b/openapi/ghe-2.17/operations/repos/list-statuses-for-ref.json
deleted file mode 100644
index 19f8f722a8..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-statuses-for-ref.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "summary": "List statuses for a specific ref",
- "description": "Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.\n\nThis resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`.",
- "operationId": "repos-list-statuses-for-ref",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/statuses/#list-statuses-for-a-specific-ref"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "ref",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "ref parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/commits/:ref/statuses"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n ref: 'ref'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-tags.json b/openapi/ghe-2.17/operations/repos/list-tags.json
deleted file mode 100644
index bd6b491db0..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-tags.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List tags",
- "description": "",
- "operationId": "repos-list-tags",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#list-tags"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/tags"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-teams.json b/openapi/ghe-2.17/operations/repos/list-teams.json
deleted file mode 100644
index b7414ff9ce..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-teams.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "summary": "List teams",
- "description": "",
- "operationId": "repos-list-teams",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#list-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list-topics.json b/openapi/ghe-2.17/operations/repos/list-topics.json
deleted file mode 100644
index dbf777e4c7..0000000000
--- a/openapi/ghe-2.17/operations/repos/list-topics.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "summary": "List all topics for a repository",
- "description": "",
- "operationId": "repos-list-topics",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#list-all-topics-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/topics"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/list.json b/openapi/ghe-2.17/operations/repos/list.json
deleted file mode 100644
index 8dafd7c59b..0000000000
--- a/openapi/ghe-2.17/operations/repos/list.json
+++ /dev/null
@@ -1,135 +0,0 @@
-{
- "summary": "List your repositories",
- "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.",
- "operationId": "repos-list",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#list-your-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "visibility",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "public",
- "private"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `public`, or `private`."
- },
- {
- "name": "affiliation",
- "in": "query",
- "schema": {
- "type": "string",
- "default": "owner,collaborator,organization_member"
- },
- "required": false,
- "description": "Comma-separated list of values. Can include: \n\\* `owner`: Repositories that are owned by the authenticated user. \n\\* `collaborator`: Repositories that the user has been added to as a collaborator. \n\\* `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on."
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "all",
- "owner",
- "public",
- "private",
- "member"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Can be one of `all`, `owner`, `public`, `private`, `member`. Default: `all` \n \nWill cause a `422` error if used in the same request as **visibility** or **affiliation**. Will cause a `422` error if used in the same request as **visibility** or **affiliation**."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated",
- "pushed",
- "full_name"
- ],
- "default": "full_name"
- },
- "required": false,
- "description": "Can be one of `created`, `updated`, `pushed`, `full_name`."
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/repos"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/merge.json b/openapi/ghe-2.17/operations/repos/merge.json
deleted file mode 100644
index 50226acb0f..0000000000
--- a/openapi/ghe-2.17/operations/repos/merge.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Perform a merge",
- "description": "",
- "operationId": "repos-merge",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/merging/#perform-a-merge"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "base": {
- "description": "The name of the base branch that the head will be merged into.",
- "type": "string"
- },
- "head": {
- "description": "The head to merge. This can be a branch name or a commit SHA1.",
- "type": "string"
- },
- "commit_message": {
- "description": "Commit message to use for the merge commit. If omitted, a default message will be used.",
- "type": "string"
- }
- },
- "required": [
- "base",
- "head"
- ]
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/merges \\\n -d '{\"base\":\"base\",\"head\":\"head\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n base: 'base',\n head: 'head'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/ping-hook.json b/openapi/ghe-2.17/operations/repos/ping-hook.json
deleted file mode 100644
index 24d2289a9c..0000000000
--- a/openapi/ghe-2.17/operations/repos/ping-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Ping a hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher no longer allows admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.17/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nThis will trigger a [ping event](https://developer.github.com/enterprise/2.17/webhooks/#ping-event) to be sent to the hook.",
- "operationId": "repos-ping-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/hooks/#ping-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id/pings"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-branch-protection.json b/openapi/ghe-2.17/operations/repos/remove-branch-protection.json
deleted file mode 100644
index eb19ab526e..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-branch-protection.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove branch protection",
- "description": "",
- "operationId": "repos-remove-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#remove-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-collaborator.json b/openapi/ghe-2.17/operations/repos/remove-collaborator.json
deleted file mode 100644
index e6e5bce3b9..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-collaborator.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove user as a collaborator",
- "description": "",
- "operationId": "repos-remove-collaborator",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/collaborators/#remove-user-as-a-collaborator"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/collaborators/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-deploy-key.json b/openapi/ghe-2.17/operations/repos/remove-deploy-key.json
deleted file mode 100644
index 88dae75732..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-deploy-key.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove a deploy key",
- "description": "",
- "operationId": "repos-remove-deploy-key",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/keys/#remove-a-deploy-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/keys/:key_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-protected-branch-admin-enforcement.json b/openapi/ghe-2.17/operations/repos/remove-protected-branch-admin-enforcement.json
deleted file mode 100644
index affd5f66bd..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-protected-branch-admin-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove admin enforcement of protected branch",
- "description": "Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-remove-protected-branch-admin-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#remove-admin-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/enforce_admins"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.17/operations/repos/remove-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index 36e93361a4..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove pull request review enforcement of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-protected-branch-required-signatures.json b/openapi/ghe-2.17/operations/repos/remove-protected-branch-required-signatures.json
deleted file mode 100644
index 9c3836fcbc..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-protected-branch-required-signatures.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Remove required signatures of protected branch",
- "description": "When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits.",
- "operationId": "repos-remove-protected-branch-required-signatures",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#remove-required-signatures-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.zzzax-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.zzzax-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_signatures"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.17/operations/repos/remove-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index 70bbbee246..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-protected-branch-required-status-checks.json b/openapi/ghe-2.17/operations/repos/remove-protected-branch-required-status-checks.json
deleted file mode 100644
index 0409873aec..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove required status checks of protected branch",
- "description": "",
- "operationId": "repos-remove-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#remove-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-protected-branch-restrictions.json b/openapi/ghe-2.17/operations/repos/remove-protected-branch-restrictions.json
deleted file mode 100644
index c71c796d10..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-protected-branch-restrictions.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove restrictions of protected branch",
- "description": "Disables the ability to restrict who can push to this branch.",
- "operationId": "repos-remove-protected-branch-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#remove-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-protected-branch-team-restrictions.json b/openapi/ghe-2.17/operations/repos/remove-protected-branch-team-restrictions.json
deleted file mode 100644
index 7ee1a755f5..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove team restrictions of protected branch",
- "description": "Removes the ability of a team to push to this branch. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-remove-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#remove-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/remove-protected-branch-user-restrictions.json b/openapi/ghe-2.17/operations/repos/remove-protected-branch-user-restrictions.json
deleted file mode 100644
index 8c029ea99b..0000000000
--- a/openapi/ghe-2.17/operations/repos/remove-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Remove user restrictions of protected branch",
- "description": "Removes the ability of a team to push to this branch.\n\n| Type | Description |\n| ------- | -------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames of the people who should no longer have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-remove-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#remove-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/replace-protected-branch-required-status-checks-contexts.json b/openapi/ghe-2.17/operations/repos/replace-protected-branch-required-status-checks-contexts.json
deleted file mode 100644
index e24ac52b73..0000000000
--- a/openapi/ghe-2.17/operations/repos/replace-protected-branch-required-status-checks-contexts.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace required status checks contexts of protected branch",
- "description": "",
- "operationId": "repos-replace-protected-branch-required-status-checks-contexts",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "contexts parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks/contexts \\\n -d '{\"contexts\":\"contexts\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n contexts: 'contexts'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "contexts"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/replace-protected-branch-team-restrictions.json b/openapi/ghe-2.17/operations/repos/replace-protected-branch-team-restrictions.json
deleted file mode 100644
index 8c4aa626df..0000000000
--- a/openapi/ghe-2.17/operations/repos/replace-protected-branch-team-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace team restrictions of protected branch",
- "description": "Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. If you pass the `hellcat-preview` media type, you can include child teams.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-replace-protected-branch-team-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#replace-team-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "teams parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/teams \\\n -d '{\"teams\":\"teams\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n teams: 'teams'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "teams"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/replace-protected-branch-user-restrictions.json b/openapi/ghe-2.17/operations/repos/replace-protected-branch-user-restrictions.json
deleted file mode 100644
index 250d560da7..0000000000
--- a/openapi/ghe-2.17/operations/repos/replace-protected-branch-user-restrictions.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "summary": "Replace user restrictions of protected branch",
- "description": "Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. |",
- "operationId": "repos-replace-protected-branch-user-restrictions",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#replace-user-restrictions-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "users parameter"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/restrictions/users \\\n -d '{\"users\":\"users\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n users: 'users'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false,
- "requestBodyParameterName": "users"
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/replace-topics.json b/openapi/ghe-2.17/operations/repos/replace-topics.json
deleted file mode 100644
index 375a254d10..0000000000
--- a/openapi/ghe-2.17/operations/repos/replace-topics.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "summary": "Replace all topics for a repository",
- "description": "",
- "operationId": "repos-replace-topics",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#replace-all-topics-for-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "names": {
- "description": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "names"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/topics \\\n -d '{\"names\":\"names\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n names: 'names'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/request-page-build.json b/openapi/ghe-2.17/operations/repos/request-page-build.json
deleted file mode 100644
index a3b78c6188..0000000000
--- a/openapi/ghe-2.17/operations/repos/request-page-build.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "summary": "Request a page build",
- "description": "You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures.\n\nBuild requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes.",
- "operationId": "repos-request-page-build",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/pages/#request-a-page-build"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.mister-fantastic-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.mister-fantastic-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages/builds"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/test-push-hook.json b/openapi/ghe-2.17/operations/repos/test-push-hook.json
deleted file mode 100644
index bca6a32810..0000000000
--- a/openapi/ghe-2.17/operations/repos/test-push-hook.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Test a push hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher no longer allows admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.17/v3/guides/replacing-github-services) to help you update your services to webhooks.\n\nThis will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated.\n\n**Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test`",
- "operationId": "repos-test-push-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/hooks/#test-a-push-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id/tests"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/transfer.json b/openapi/ghe-2.17/operations/repos/transfer.json
deleted file mode 100644
index 413d490344..0000000000
--- a/openapi/ghe-2.17/operations/repos/transfer.json
+++ /dev/null
@@ -1,394 +0,0 @@
-{
- "summary": "Transfer a repository",
- "description": "A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/).",
- "operationId": "repos-transfer",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#transfer-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.nightshade-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "new_owner": {
- "description": "**Required:** The username or organization name the repository will be transferred to.",
- "type": "string"
- },
- "team_ids": {
- "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "202": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.nightshade-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo/transfer"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update-branch-protection.json b/openapi/ghe-2.17/operations/repos/update-branch-protection.json
deleted file mode 100644
index f5328349cb..0000000000
--- a/openapi/ghe-2.17/operations/repos/update-branch-protection.json
+++ /dev/null
@@ -1,468 +0,0 @@
-{
- "summary": "Update branch protection",
- "description": "Protecting a branch requires admin or owner permissions to the repository.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.\n\n**Note**: The list of users and teams in total is limited to 100 items.",
- "operationId": "repos-update-branch-protection",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#update-branch-protection"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "required_status_checks": {
- "description": "Require status checks to pass before merging. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "strict": {
- "description": "Require branches to be up to date before merging.",
- "type": "boolean"
- },
- "contexts": {
- "description": "The list of status checks to require in order to merge into this branch",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "strict",
- "contexts"
- ]
- },
- "enforce_admins": {
- "description": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.",
- "type": "boolean",
- "nullable": true
- },
- "required_pull_request_reviews": {
- "description": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "dismissal_restrictions": {
- "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
- "type": "object",
- "properties": {
- "users": {
- "description": "The list of user `login`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) review them.",
- "type": "boolean"
- },
- "required_approving_review_count": {
- "description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "type": "integer"
- }
- }
- },
- "restrictions": {
- "description": "Restrict who can push to this branch. Team and user `restrictions` are only available for organization-owned repositories. Set to `null` to disable.",
- "type": "object",
- "nullable": true,
- "properties": {
- "users": {
- "description": "The list of user `login`s with push access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with push access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- },
- "required": [
- "required_status_checks",
- "enforce_admins",
- "required_pull_request_reviews",
- "restrictions"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- },
- "enforce_admins": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "required_pull_request_reviews": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- },
- "restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection \\\n -d '{\"required_status_checks\":\"required_status_checks\",\"required_status_checks.strict\":\"required_status_checks.strict\",\"required_status_checks.contexts\":\"required_status_checks.contexts\",\"enforce_admins\":\"enforce_admins\",\"required_pull_request_reviews\":\"required_pull_request_reviews\",\"restrictions\":\"restrictions\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n required_status_checks: 'required_status_checks',\n 'required_status_checks.strict': 'required_status_checks.strict',\n 'required_status_checks.contexts': 'required_status_checks.contexts',\n enforce_admins: 'enforce_admins',\n required_pull_request_reviews: 'required_pull_request_reviews',\n restrictions: 'restrictions'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update-commit-comment.json b/openapi/ghe-2.17/operations/repos/update-commit-comment.json
deleted file mode 100644
index 070f270fea..0000000000
--- a/openapi/ghe-2.17/operations/repos/update-commit-comment.json
+++ /dev/null
@@ -1,189 +0,0 @@
-{
- "summary": "Update a commit comment",
- "description": "",
- "operationId": "repos-update-commit-comment",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/comments/#update-a-commit-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "comment_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The contents of the comment",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "html_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "position": {
- "type": "number"
- },
- "line": {
- "type": "number"
- },
- "commit_id": {
- "type": "string"
- },
- "user": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/comments/:comment_id \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n comment_id: 'comment_id',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update-hook.json b/openapi/ghe-2.17/operations/repos/update-hook.json
deleted file mode 100644
index 092072d03f..0000000000
--- a/openapi/ghe-2.17/operations/repos/update-hook.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "summary": "Edit a hook",
- "description": "**Note:** GitHub Enterprise release 2.17 and higher no longer allows admins to install new GitHub Services, and existing services will stop working in GitHub Enterprise release 2.20 and higher. You can use the [Replacing GitHub Services guide](https://developer.github.com/enterprise/2.17/v3/guides/replacing-github-services) to help you update your services to webhooks.",
- "operationId": "repos-update-hook",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/hooks/#edit-a-hook"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "hook_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "hook_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "config": {
- "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/enterprise/2.17/v3/repos/hooks/#create-hook-config-params).",
- "type": "object",
- "properties": {
- "url": {
- "description": "The URL to which the payloads will be delivered.",
- "type": "string"
- },
- "content_type": {
- "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
- "type": "string"
- },
- "secret": {
- "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/enterprise/2.17/webhooks/#delivery-headers) header.",
- "type": "string"
- },
- "insecure_ssl": {
- "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**",
- "type": "string"
- }
- },
- "required": [
- "url"
- ]
- },
- "events": {
- "description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "type": "array",
- "default": [
- "push"
- ],
- "items": {
- "type": "string"
- }
- },
- "add_events": {
- "description": "Determines a list of events to be added to the list of events that the Hook triggers for.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "remove_events": {
- "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "active": {
- "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.",
- "type": "boolean",
- "default": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "type": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "active": {
- "type": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "config": {
- "type": "object",
- "properties": {
- "content_type": {
- "type": "string"
- },
- "insecure_ssl": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "updated_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "test_url": {
- "type": "string"
- },
- "ping_url": {
- "type": "string"
- },
- "last_response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/hooks/:hook_id \\\n -d '{\"config.url\":\"config.url\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 'hook_id',\n 'config.url': 'config.url'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update-information-about-pages-site.json b/openapi/ghe-2.17/operations/repos/update-information-about-pages-site.json
deleted file mode 100644
index 0b2bcf4d3d..0000000000
--- a/openapi/ghe-2.17/operations/repos/update-information-about-pages-site.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Update information about a Pages site",
- "description": "",
- "operationId": "repos-update-information-about-pages-site",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/pages/#update-information-about-a-pages-site"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "source": {
- "description": "Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `\"gh-pages\"`, `\"master\"`, and `\"master /docs\"`.",
- "type": "string",
- "enum": [
- "\"gh-pages\"",
- "\"master\"",
- "\"master /docs\""
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/pages"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update-invitation.json b/openapi/ghe-2.17/operations/repos/update-invitation.json
deleted file mode 100644
index 843cb4aee6..0000000000
--- a/openapi/ghe-2.17/operations/repos/update-invitation.json
+++ /dev/null
@@ -1,434 +0,0 @@
-{
- "summary": "Update a repository invitation",
- "description": "",
- "operationId": "repos-update-invitation",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/invitations/#update-a-repository-invitation"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "invitation_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "invitation_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permissions": {
- "description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "repository": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- }
- }
- },
- "invitee": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "inviter": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "permissions": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/invitations/:invitation_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n invitation_id: 'invitation_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update-protected-branch-pull-request-review-enforcement.json b/openapi/ghe-2.17/operations/repos/update-protected-branch-pull-request-review-enforcement.json
deleted file mode 100644
index e1cdde541d..0000000000
--- a/openapi/ghe-2.17/operations/repos/update-protected-branch-pull-request-review-enforcement.json
+++ /dev/null
@@ -1,251 +0,0 @@
-{
- "summary": "Update pull request review enforcement of protected branch",
- "description": "Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.",
- "operationId": "repos-update-protected-branch-pull-request-review-enforcement",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "dismissal_restrictions": {
- "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.",
- "type": "object",
- "properties": {
- "users": {
- "description": "The list of user `login`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "teams": {
- "description": "The list of team `slug`s with dismissal access",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.",
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed.",
- "type": "boolean"
- },
- "required_approving_review_count": {
- "description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.",
- "type": "integer"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "users_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean"
- },
- "require_code_owner_reviews": {
- "type": "boolean"
- },
- "required_approving_review_count": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update-protected-branch-required-status-checks.json b/openapi/ghe-2.17/operations/repos/update-protected-branch-required-status-checks.json
deleted file mode 100644
index 58e17b821a..0000000000
--- a/openapi/ghe-2.17/operations/repos/update-protected-branch-required-status-checks.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "summary": "Update required status checks of protected branch",
- "description": "Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled.",
- "operationId": "repos-update-protected-branch-required-status-checks",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/branches/#update-required-status-checks-of-protected-branch"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "branch",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "branch parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "strict": {
- "description": "Require branches to be up to date before merging.",
- "type": "boolean"
- },
- "contexts": {
- "description": "The list of status checks to require in order to merge into this branch",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "strict": {
- "type": "boolean"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/branches/:branch/protection/required_status_checks"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update-release-asset.json b/openapi/ghe-2.17/operations/repos/update-release-asset.json
deleted file mode 100644
index c0c28cd078..0000000000
--- a/openapi/ghe-2.17/operations/repos/update-release-asset.json
+++ /dev/null
@@ -1,193 +0,0 @@
-{
- "summary": "Edit a release asset",
- "description": "Users with push access to the repository can edit a release asset.",
- "operationId": "repos-update-release-asset",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#edit-a-release-asset"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "asset_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "asset_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The file name of the asset.",
- "type": "string"
- },
- "label": {
- "description": "An alternate short description of the asset. Used in place of the filename.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/assets/:asset_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n asset_id: 'asset_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update-release.json b/openapi/ghe-2.17/operations/repos/update-release.json
deleted file mode 100644
index 62386d1015..0000000000
--- a/openapi/ghe-2.17/operations/repos/update-release.json
+++ /dev/null
@@ -1,324 +0,0 @@
-{
- "summary": "Edit a release",
- "description": "Users with push access to the repository can edit a release.",
- "operationId": "repos-update-release",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/releases/#edit-a-release"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- },
- {
- "name": "release_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "release_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "tag_name": {
- "description": "The name of the tag.",
- "type": "string"
- },
- "target_commitish": {
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
- "type": "string"
- },
- "name": {
- "description": "The name of the release.",
- "type": "string"
- },
- "body": {
- "description": "Text describing the contents of the tag.",
- "type": "string"
- },
- "draft": {
- "description": "`true` makes the release a draft, and `false` publishes the release.",
- "type": "boolean"
- },
- "prerelease": {
- "description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.",
- "type": "boolean"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "assets_url": {
- "type": "string"
- },
- "upload_url": {
- "type": "string"
- },
- "tarball_url": {
- "type": "string"
- },
- "zipball_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "tag_name": {
- "type": "string"
- },
- "target_commitish": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "draft": {
- "type": "boolean"
- },
- "prerelease": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "published_at": {
- "type": "string"
- },
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "assets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "browser_download_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "state": {
- "type": "string"
- },
- "content_type": {
- "type": "string"
- },
- "size": {
- "type": "number"
- },
- "download_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "uploader": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/repos/octocat/:repo/releases/:release_id"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 'release_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/repos/update.json b/openapi/ghe-2.17/operations/repos/update.json
deleted file mode 100644
index 10940b8f50..0000000000
--- a/openapi/ghe-2.17/operations/repos/update.json
+++ /dev/null
@@ -1,1115 +0,0 @@
-{
- "summary": "Edit",
- "description": "**Note**: To edit a repository's topics, use the [`topics` endpoint](https://developer.github.com/enterprise/2.17/v3/repos/#replace-all-topics-for-a-repository).",
- "operationId": "repos-update",
- "tags": [
- "repos"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/repos/#edit"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.x-ray-preview+json"
- },
- "required": true
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the repository.",
- "type": "string"
- },
- "description": {
- "description": "A short description of the repository.",
- "type": "string"
- },
- "homepage": {
- "description": "A URL with more information about the repository.",
- "type": "string"
- },
- "private": {
- "description": "Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private, or if the \"Users Can Change Repo Visibility\" appliance setting is disabled and you are not a hosted site admin. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private, or if the \"Users Can Change Repo Visibility\" appliance setting is disabled and you are not a hosted site admin.",
- "type": "boolean",
- "default": false
- },
- "has_issues": {
- "description": "Either `true` to enable issues for this repository or `false` to disable them.",
- "type": "boolean",
- "default": true
- },
- "has_projects": {
- "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.",
- "type": "boolean",
- "default": true
- },
- "has_wiki": {
- "description": "Either `true` to enable the wiki for this repository or `false` to disable it.",
- "type": "boolean",
- "default": true
- },
- "default_branch": {
- "description": "Updates the default branch for this repository.",
- "type": "string"
- },
- "allow_squash_merge": {
- "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.",
- "type": "boolean",
- "default": true
- },
- "allow_merge_commit": {
- "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.",
- "type": "boolean",
- "default": true
- },
- "allow_rebase_merge": {
- "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.",
- "type": "boolean",
- "default": true
- },
- "archived": {
- "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
- "type": "boolean",
- "default": false
- },
- "anonymous_access_enabled": {
- "description": "Either `true` to allow anonymous Git access to a public repository, or `false` to disable it. This feature is only available to site and repository administrators in GitHub Enterprise Server instances that have private mode enabled.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "parent": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- }
- }
- },
- "source": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "full_name": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "private": {
- "type": "boolean"
- },
- "html_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "fork": {
- "type": "boolean"
- },
- "url": {
- "type": "string"
- },
- "archive_url": {
- "type": "string"
- },
- "assignees_url": {
- "type": "string"
- },
- "blobs_url": {
- "type": "string"
- },
- "branches_url": {
- "type": "string"
- },
- "collaborators_url": {
- "type": "string"
- },
- "comments_url": {
- "type": "string"
- },
- "commits_url": {
- "type": "string"
- },
- "compare_url": {
- "type": "string"
- },
- "contents_url": {
- "type": "string"
- },
- "contributors_url": {
- "type": "string"
- },
- "deployments_url": {
- "type": "string"
- },
- "downloads_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "forks_url": {
- "type": "string"
- },
- "git_commits_url": {
- "type": "string"
- },
- "git_refs_url": {
- "type": "string"
- },
- "git_tags_url": {
- "type": "string"
- },
- "git_url": {
- "type": "string"
- },
- "issue_comment_url": {
- "type": "string"
- },
- "issue_events_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "keys_url": {
- "type": "string"
- },
- "labels_url": {
- "type": "string"
- },
- "languages_url": {
- "type": "string"
- },
- "merges_url": {
- "type": "string"
- },
- "milestones_url": {
- "type": "string"
- },
- "notifications_url": {
- "type": "string"
- },
- "pulls_url": {
- "type": "string"
- },
- "releases_url": {
- "type": "string"
- },
- "ssh_url": {
- "type": "string"
- },
- "stargazers_url": {
- "type": "string"
- },
- "statuses_url": {
- "type": "string"
- },
- "subscribers_url": {
- "type": "string"
- },
- "subscription_url": {
- "type": "string"
- },
- "tags_url": {
- "type": "string"
- },
- "teams_url": {
- "type": "string"
- },
- "trees_url": {
- "type": "string"
- },
- "clone_url": {
- "type": "string"
- },
- "mirror_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "svn_url": {
- "type": "string"
- },
- "homepage": {
- "type": "string"
- },
- "language": {
- "type": "string"
- },
- "forks_count": {
- "type": "number"
- },
- "stargazers_count": {
- "type": "number"
- },
- "watchers_count": {
- "type": "number"
- },
- "size": {
- "type": "number"
- },
- "default_branch": {
- "type": "string"
- },
- "open_issues_count": {
- "type": "number"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "has_issues": {
- "type": "boolean"
- },
- "has_projects": {
- "type": "boolean"
- },
- "has_wiki": {
- "type": "boolean"
- },
- "has_pages": {
- "type": "boolean"
- },
- "has_downloads": {
- "type": "boolean"
- },
- "archived": {
- "type": "boolean"
- },
- "disabled": {
- "type": "boolean"
- },
- "pushed_at": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "admin": {
- "type": "boolean"
- },
- "push": {
- "type": "boolean"
- },
- "pull": {
- "type": "boolean"
- }
- }
- },
- "allow_rebase_merge": {
- "type": "boolean"
- },
- "allow_squash_merge": {
- "type": "boolean"
- },
- "allow_merge_commit": {
- "type": "boolean"
- },
- "subscribers_count": {
- "type": "number"
- },
- "network_count": {
- "type": "number"
- },
- "anonymous_access_enabled": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.x-ray-preview+json\" \\\n https://developer.github.com/repos/octocat/:repo \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.repos.get({\n owner: 'octocat',\n repo: 'hello-world',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/code.json b/openapi/ghe-2.17/operations/search/code.json
deleted file mode 100644
index cdb99c1210..0000000000
--- a/openapi/ghe-2.17/operations/search/code.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "summary": "Search code",
- "description": "Find file contents via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.17/v3/#pagination).\n\nWhen searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.17/v3/search/#text-match-metadata).\n\n**Note:** You must [authenticate](https://developer.github.com/enterprise/2.17/v3/#authentication) to search for code across all public repositories.\n\n**Considerations for code search**\n\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:\n\n* Only the _default branch_ is considered. In most cases, this will be the `master` branch.\n* Only files smaller than 10 MB are searchable.\n\nSuppose you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery). Your query would look something like this:\n\nHere, we're searching for the keyword `addClass` within a file's contents. We're making sure that we're only looking in files where the language is JavaScript. And we're scoping the search to the `repo:jquery/jquery` repository.",
- "operationId": "search-code",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/#search-code"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.17/v3/search/#constructing-a-search-query). See \"[Searching code](https://help.github.com/articles/searching-code/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "indexed"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/code"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/commits.json b/openapi/ghe-2.17/operations/search/commits.json
deleted file mode 100644
index 33ef2f872b..0000000000
--- a/openapi/ghe-2.17/operations/search/commits.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "summary": "Search commits",
- "description": "Find commits via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.17/v3/#pagination).\n\nWhen searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.17/v3/search/#text-match-metadata).\n\n**Considerations for commit search**\n\nOnly the _default branch_ is considered. In most cases, this will be the `master` branch.\n\nSuppose you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:",
- "operationId": "search-commits",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/#search-commits"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.cloak-preview+json"
- },
- "required": true
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.17/v3/search/#constructing-a-search-query). See \"[Searching commits](https://help.github.com/articles/searching-commits/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "author-date",
- "committer-date"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.cloak-preview+json\" \\\n https://developer.github.com/search/commits"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/email-legacy.json b/openapi/ghe-2.17/operations/search/email-legacy.json
deleted file mode 100644
index 91cd4f2765..0000000000
--- a/openapi/ghe-2.17/operations/search/email-legacy.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Email search",
- "description": "This API call is added for compatibility reasons only. There's no guarantee that full email searches will always be available. The `@` character in the address must be left unencoded. Searches only against public email addresses (as configured on the user's GitHub Enterprise Server profile).",
- "operationId": "search-email-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/legacy/#email-search"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "email",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The email address."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/user/email/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n email: 'email'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/issues-and-pull-requests.json b/openapi/ghe-2.17/operations/search/issues-and-pull-requests.json
deleted file mode 100644
index 12854625ad..0000000000
--- a/openapi/ghe-2.17/operations/search/issues-and-pull-requests.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "summary": "Search issues and pull requests",
- "description": "Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.17/v3/#pagination).\n\nWhen searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.17/v3/search/#text-match-metadata).\n\nLet's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.\n\nIn this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results.",
- "operationId": "search-issues-and-pull-requests",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/#search-issues-and-pull-requests"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.17/v3/search/#constructing-a-search-query). See \"[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "comments",
- "reactions",
- "reactions-+1",
- "reactions--1",
- "reactions-smile",
- "reactions-thinking_face",
- "reactions-heart",
- "reactions-tada",
- "interactions",
- "created",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/issues"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": [
- {
- "type": "idName",
- "date": "2018-12-27",
- "note": "\"Search issues\" has been renamed to \"Search issues and pull requests\"",
- "meta": {
- "before": {
- "idName": "issues"
- },
- "after": {
- "idName": "issues-and-pull-requests"
- }
- }
- }
- ]
-}
diff --git a/openapi/ghe-2.17/operations/search/issues-legacy.json b/openapi/ghe-2.17/operations/search/issues-legacy.json
deleted file mode 100644
index fa83cf9c84..0000000000
--- a/openapi/ghe-2.17/operations/search/issues-legacy.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "summary": "Search issues",
- "description": "Find issues by state and keyword.",
- "operationId": "search-issues-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/legacy/#search-issues"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repository",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repository parameter"
- },
- {
- "name": "state",
- "in": "path",
- "schema": {
- "type": "string",
- "enum": [
- "open",
- "closed"
- ]
- },
- "required": true,
- "description": "Indicates the state of the issues to return. Can be either `open` or `closed`."
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/issues/search/octocat/:repository/:state/:keyword"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n owner: 'octocat',\n repository: 'repository',\n state: 'state',\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/labels.json b/openapi/ghe-2.17/operations/search/labels.json
deleted file mode 100644
index 7cfc7eb63f..0000000000
--- a/openapi/ghe-2.17/operations/search/labels.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Search labels",
- "description": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://developer.github.com/enterprise/2.17/v3/#pagination).\n\nWhen searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.17/v3/search/#text-match-metadata).\n\nSuppose you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:\n\nThe labels that best match for the query appear first in the search results.",
- "operationId": "search-labels",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/#search-labels"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "repository_id",
- "in": "query",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "The id of the repository."
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.17/v3/search/#constructing-a-search-query)."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "created",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/labels"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n repository_id: 'repository_id',\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/repos-legacy.json b/openapi/ghe-2.17/operations/search/repos-legacy.json
deleted file mode 100644
index 9c85bf74e7..0000000000
--- a/openapi/ghe-2.17/operations/search/repos-legacy.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "summary": "Search repositories",
- "description": "Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the `start_page` parameter.",
- "operationId": "search-repos-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/legacy/#search-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- },
- {
- "name": "language",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Filter results by language."
- },
- {
- "name": "start_page",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The page number to fetch."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "updated"
- ]
- },
- "required": false,
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match."
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/repos/search/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/repos.json b/openapi/ghe-2.17/operations/search/repos.json
deleted file mode 100644
index a04d3ba6a5..0000000000
--- a/openapi/ghe-2.17/operations/search/repos.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "Search repositories",
- "description": "Find repositories via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.17/v3/#pagination).\n\nWhen searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.17/v3/search/#text-match-metadata).\n\nSuppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this.\n\nYou can search for multiple topics by adding more `topic:` instances, and including the `mercy-preview` header. For example:\n\nIn this request, we're searching for repositories with the word `tetris` in the name, the description, or the README. We're limiting the results to only find repositories where the primary language is Assembly. We're sorting by stars in descending order, so that the most popular repositories appear first in the search results.",
- "operationId": "search-repos",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/#search-repositories"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.17/v3/search/#constructing-a-search-query). See \"[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "help-wanted-issues",
- "updated"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/repositories"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/topics.json b/openapi/ghe-2.17/operations/search/topics.json
deleted file mode 100644
index 7b2ef80905..0000000000
--- a/openapi/ghe-2.17/operations/search/topics.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Search topics",
- "description": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.17/v3/#pagination).\n\nWhen searching for topics, you can get text match metadata for the topic's **short\\_description**, **description**, **name**, or **display\\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.17/v3/search/#text-match-metadata).\n\nSee \"[Searching topics](https://help.github.com/articles/searching-topics/)\" for a detailed list of qualifiers.\n\nSuppose you want to search for topics related to Ruby that are featured on [https://github.com/topics](https://github.com/topics). Your query might look like this:\n\nIn this request, we're searching for topics with the keyword `ruby`, and we're limiting the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.\n\n**Note:** A search for featured Ruby topics only has 6 total results, so a [Link header](https://developer.github.com/enterprise/2.17/v3/#link-header) indicating pagination is not included in the response.",
- "operationId": "search-topics",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/#search-topics"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.17/v3/search/#constructing-a-search-query)."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/topics"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/users-legacy.json b/openapi/ghe-2.17/operations/search/users-legacy.json
deleted file mode 100644
index 808abc0f2b..0000000000
--- a/openapi/ghe-2.17/operations/search/users-legacy.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "summary": "Search users",
- "description": "Find users by keyword.",
- "operationId": "search-users-legacy",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/legacy/#search-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "keyword",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The search term."
- },
- {
- "name": "start_page",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The page number to fetch."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "stars",
- "forks",
- "updated"
- ]
- },
- "required": false,
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match."
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ]
- },
- "required": false,
- "description": "The sort field. if `sort` param is provided. Can be either `asc` or `desc`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/legacy/user/search/"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n keyword: 'keyword'\n})"
- }
- ],
- "x-github": {
- "legacy": true,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/search/users.json b/openapi/ghe-2.17/operations/search/users.json
deleted file mode 100644
index a31861c671..0000000000
--- a/openapi/ghe-2.17/operations/search/users.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "summary": "Search users",
- "description": "Find users via various criteria. This method returns up to 100 results [per page](https://developer.github.com/enterprise/2.17/v3/#pagination).\n\nWhen searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://developer.github.com/enterprise/2.17/v3/search/#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/enterprise/2.17/v3/search/#text-match-metadata).\n\nImagine you're looking for a list of popular users. You might try out this query:\n\nHere, we're looking at users with the name Tom. We're only interested in those with more than 42 repositories, and only if they have over 1,000 followers.",
- "operationId": "search-users",
- "tags": [
- "search"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/search/#search-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "q",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/enterprise/2.17/v3/search/#constructing-a-search-query). See \"[Searching users](https://help.github.com/articles/searching-users/)\" for a detailed list of qualifiers."
- },
- {
- "name": "sort",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "followers",
- "repositories",
- "joined"
- ]
- },
- "required": false,
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)"
- },
- {
- "name": "order",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "desc",
- "asc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/search/users"
- },
- {
- "lang": "JS",
- "source": "octokit.search.get({\n q: 'q'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/add-member.json b/openapi/ghe-2.17/operations/teams/add-member.json
deleted file mode 100644
index 4b470ec610..0000000000
--- a/openapi/ghe-2.17/operations/teams/add-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Add team member",
- "description": "The \"Add team member\" API (described below) is deprecated.\n\nWe recommend using the [Add team membership API](https://developer.github.com/enterprise/2.17/v3/teams/members/#add-or-update-team-membership) instead. It allows you to invite new organization members to your teams.\n\nTo add someone to a team, the authenticated user must be a team maintainer in the team they're changing or be an owner of the organization that the team is associated with. The person being added to the team must be a member of the team's organization.\n\nNote that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "teams-add-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/members/#add-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/add-or-update-membership.json b/openapi/ghe-2.17/operations/teams/add-or-update-membership.json
deleted file mode 100644
index f4bbf859a9..0000000000
--- a/openapi/ghe-2.17/operations/teams/add-or-update-membership.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Add or update team membership",
- "description": "If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a maintainer of the team.\n\nIf the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the \"pending\" state until the user accepts the invitation, at which point the membership will transition to the \"active\" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.\n\nIf the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a maintainer of the team.",
- "operationId": "teams-add-or-update-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/members/#add-or-update-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "role": {
- "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.",
- "type": "string",
- "enum": [
- "member",
- "maintainer"
- ],
- "default": "member"
- }
- }
- }
- }
- }
- },
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/add-or-update-project.json b/openapi/ghe-2.17/operations/teams/add-or-update-project.json
deleted file mode 100644
index f3a1ac307a..0000000000
--- a/openapi/ghe-2.17/operations/teams/add-or-update-project.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "summary": "Add or update team project",
- "description": "Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.",
- "operationId": "teams-add-or-update-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#add-or-update-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\" \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team.",
- "type": "string",
- "enum": [
- "read",
- "write",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/add-or-update-repo.json b/openapi/ghe-2.17/operations/teams/add-or-update-repo.json
deleted file mode 100644
index 615397ac72..0000000000
--- a/openapi/ghe-2.17/operations/teams/add-or-update-repo.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "summary": "Add or update team repository",
- "description": "To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.\n\nIf you pass the `hellcat-preview` media type, you can modify repository permissions of child teams.\n\nNote that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"",
- "operationId": "teams-add-or-update-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#add-or-update-team-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "permission": {
- "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ]
- }
- }
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/check-manages-repo.json b/openapi/ghe-2.17/operations/teams/check-manages-repo.json
deleted file mode 100644
index 70eab2d55e..0000000000
--- a/openapi/ghe-2.17/operations/teams/check-manages-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Check if a team manages a repository",
- "description": "**Note**: If you pass the `hellcat-preview` media type, repositories inherited through a parent team will be checked.\n\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/enterprise/2.17/v3/media/) via the `Accept` header:",
- "operationId": "teams-check-manages-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#check-if-a-team-manages-a-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/create-discussion-comment.json b/openapi/ghe-2.17/operations/teams/create-discussion-comment.json
deleted file mode 100644
index de920372ac..0000000000
--- a/openapi/ghe-2.17/operations/teams/create-discussion-comment.json
+++ /dev/null
@@ -1,210 +0,0 @@
-{
- "summary": "Create a comment",
- "description": "Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "teams-create-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussion_comments/#create-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The discussion comment's body text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/create-discussion.json b/openapi/ghe-2.17/operations/teams/create-discussion.json
deleted file mode 100644
index fa8b0773b0..0000000000
--- a/openapi/ghe-2.17/operations/teams/create-discussion.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Create a discussion",
- "description": "Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://developer.github.com/enterprise/2.17/v3/#abuse-rate-limits)\" for details.",
- "operationId": "teams-create-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussions/#create-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The discussion post's title.",
- "type": "string"
- },
- "body": {
- "description": "The discussion post's body text.",
- "type": "string"
- },
- "private": {
- "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.",
- "type": "boolean",
- "default": false
- }
- },
- "required": [
- "title",
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n title: 'title',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/create.json b/openapi/ghe-2.17/operations/teams/create.json
deleted file mode 100644
index 2ac4336a11..0000000000
--- a/openapi/ghe-2.17/operations/teams/create.json
+++ /dev/null
@@ -1,254 +0,0 @@
-{
- "summary": "Create team",
- "description": "To create a team, the authenticated user must be a member or owner of `:org`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see \"[Setting team creation permissions](https://help.github.com/en/articles/setting-team-creation-permissions-in-your-organization).\"",
- "operationId": "teams-create",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#create-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the team.",
- "type": "string"
- },
- "description": {
- "description": "The description of the team.",
- "type": "string"
- },
- "maintainers": {
- "description": "The logins of organization members to add as maintainers of the team.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "repo_names": {
- "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "privacy": {
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
- "type": "string",
- "enum": [
- "secret",
- "closed"
- ]
- },
- "permission": {
- "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- "parent_team_id": {
- "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
- "type": "integer"
- },
- "ldap_dn": {
- "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team. [LDAP synchronization](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync) must be enabled to map LDAP entries to a team. Use the [Update LDAP mapping for a team](https://developer.github.com/enterprise/2.17/v3/enterprise-admin/ldap/#update-ldap-mapping-for-a-team) endpoint to change the LDAP DN.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//teams \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n org: 'org',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/delete-discussion-comment.json b/openapi/ghe-2.17/operations/teams/delete-discussion-comment.json
deleted file mode 100644
index 0ff8c18a5c..0000000000
--- a/openapi/ghe-2.17/operations/teams/delete-discussion-comment.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": "Delete a comment",
- "description": "Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-delete-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussion_comments/#delete-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/delete-discussion.json b/openapi/ghe-2.17/operations/teams/delete-discussion.json
deleted file mode 100644
index 5073ea4244..0000000000
--- a/openapi/ghe-2.17/operations/teams/delete-discussion.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "summary": "Delete a discussion",
- "description": "Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-delete-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussions/#delete-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/delete.json b/openapi/ghe-2.17/operations/teams/delete.json
deleted file mode 100644
index b228340684..0000000000
--- a/openapi/ghe-2.17/operations/teams/delete.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete team",
- "description": "To delete a team, the authenticated user must be a team maintainer or an owner of the org associated with the team.\n\nIf you are an organization owner and you pass the `hellcat-preview` media type, deleting a parent team will delete all of its child teams as well.",
- "operationId": "teams-delete",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#delete-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/get-by-name.json b/openapi/ghe-2.17/operations/teams/get-by-name.json
deleted file mode 100644
index a8e3b38acc..0000000000
--- a/openapi/ghe-2.17/operations/teams/get-by-name.json
+++ /dev/null
@@ -1,201 +0,0 @@
-{
- "summary": "Get team by name",
- "description": "Gets a team using the team's `slug`. GitHub generates the `slug` from the team `name`.",
- "operationId": "teams-get-by-name",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#get-team-by-name"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "team_slug",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "team_slug parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//teams/:team_slug"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n org: 'org',\n team_slug: 'team_slug'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/get-discussion-comment.json b/openapi/ghe-2.17/operations/teams/get-discussion-comment.json
deleted file mode 100644
index 9490cbfcb3..0000000000
--- a/openapi/ghe-2.17/operations/teams/get-discussion-comment.json
+++ /dev/null
@@ -1,201 +0,0 @@
-{
- "summary": "Get a single comment",
- "description": "Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-get-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussion_comments/#get-a-single-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/get-discussion.json b/openapi/ghe-2.17/operations/teams/get-discussion.json
deleted file mode 100644
index bd953bac27..0000000000
--- a/openapi/ghe-2.17/operations/teams/get-discussion.json
+++ /dev/null
@@ -1,207 +0,0 @@
-{
- "summary": "Get a single discussion",
- "description": "Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-get-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussions/#get-a-single-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/get-member.json b/openapi/ghe-2.17/operations/teams/get-member.json
deleted file mode 100644
index e0d9a8ab28..0000000000
--- a/openapi/ghe-2.17/operations/teams/get-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get team member",
- "description": "The \"Get team member\" API (described below) is deprecated.\n\nWe recommend using the [Get team membership API](https://developer.github.com/enterprise/2.17/v3/teams/members/#get-team-membership) instead. It allows you to get both active and pending memberships.\n\nTo list members in a team, the team must be visible to the authenticated user.",
- "operationId": "teams-get-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/members/#get-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/get-membership.json b/openapi/ghe-2.17/operations/teams/get-membership.json
deleted file mode 100644
index 847783a149..0000000000
--- a/openapi/ghe-2.17/operations/teams/get-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Get team membership",
- "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.\n\nTo get a user's membership with a team, the team must be visible to the authenticated user.\n\n**Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/enterprise/2.17/v3/teams#create-team).",
- "operationId": "teams-get-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/members/#get-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/get.json b/openapi/ghe-2.17/operations/teams/get.json
deleted file mode 100644
index 83ec01ba6c..0000000000
--- a/openapi/ghe-2.17/operations/teams/get.json
+++ /dev/null
@@ -1,192 +0,0 @@
-{
- "summary": "Get team",
- "description": "",
- "operationId": "teams-get",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#get-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/list-child.json b/openapi/ghe-2.17/operations/teams/list-child.json
deleted file mode 100644
index 7cab65c21c..0000000000
--- a/openapi/ghe-2.17/operations/teams/list-child.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "summary": "List child teams",
- "description": "At this time, the `hellcat-preview` media type is required to use this endpoint.\n\n",
- "operationId": "teams-list-child",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#list-child-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.hellcat-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.hellcat-preview+json\" \\\n https://developer.github.com/teams//teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/list-discussion-comments.json b/openapi/ghe-2.17/operations/teams/list-discussion-comments.json
deleted file mode 100644
index 2f5e7a857b..0000000000
--- a/openapi/ghe-2.17/operations/teams/list-discussion-comments.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "summary": "List comments",
- "description": "List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-list-discussion-comments",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussion_comments/#list-comments"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/list-discussions.json b/openapi/ghe-2.17/operations/teams/list-discussions.json
deleted file mode 100644
index 31fc9703cd..0000000000
--- a/openapi/ghe-2.17/operations/teams/list-discussions.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "List discussions",
- "description": "List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-list-discussions",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussions/#list-discussions"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "direction",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc"
- },
- "required": false,
- "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/list-for-authenticated-user.json b/openapi/ghe-2.17/operations/teams/list-for-authenticated-user.json
deleted file mode 100644
index 874ca239b3..0000000000
--- a/openapi/ghe-2.17/operations/teams/list-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List user teams",
- "description": "List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/).",
- "operationId": "teams-list-for-authenticated-user",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#list-user-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/list-members.json b/openapi/ghe-2.17/operations/teams/list-members.json
deleted file mode 100644
index 4e2fa29aa0..0000000000
--- a/openapi/ghe-2.17/operations/teams/list-members.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "summary": "List team members",
- "description": "If you pass the `hellcat-preview` media type, team members will include the members of child teams.\n\nTo list members in a team, the team must be visible to the authenticated user.",
- "operationId": "teams-list-members",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/members/#list-team-members"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "member",
- "maintainer",
- "all"
- ],
- "default": "all"
- },
- "required": false,
- "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/list-projects.json b/openapi/ghe-2.17/operations/teams/list-projects.json
deleted file mode 100644
index c6063c8c1a..0000000000
--- a/openapi/ghe-2.17/operations/teams/list-projects.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "summary": "List team projects",
- "description": "Lists the organization projects for a team. If you are an [authenticated](https://developer.github.com/enterprise/2.17/v3/#authentication) site administrator for your Enterprise instance, you will be able to list all projects for the team. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team.",
- "operationId": "teams-list-projects",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#list-team-projects"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/list-repos.json b/openapi/ghe-2.17/operations/teams/list-repos.json
deleted file mode 100644
index 7beeb435b1..0000000000
--- a/openapi/ghe-2.17/operations/teams/list-repos.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List team repos",
- "description": "**Note**: If you pass the `hellcat-preview` media type, the response will include any repositories inherited through a parent team.\n\nIf you are an [authenticated](https://developer.github.com/enterprise/2.17/v3/#authentication) site administrator for your Enterprise instance, you will be able to list all repositories for the team.",
- "operationId": "teams-list-repos",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#list-team-repos"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/list.json b/openapi/ghe-2.17/operations/teams/list.json
deleted file mode 100644
index 1fe8483d6e..0000000000
--- a/openapi/ghe-2.17/operations/teams/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List teams",
- "description": "",
- "operationId": "teams-list",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#list-teams"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "org",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "org parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/orgs//teams"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n org: 'org'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/remove-member.json b/openapi/ghe-2.17/operations/teams/remove-member.json
deleted file mode 100644
index d2c55af6ad..0000000000
--- a/openapi/ghe-2.17/operations/teams/remove-member.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team member",
- "description": "The \"Remove team member\" API (described below) is deprecated.\n\nWe recommend using the [Remove team membership endpoint](https://developer.github.com/enterprise/2.17/v3/teams/members/#remove-team-membership) instead. It allows you to remove both active and pending memberships.\n\nTo remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.",
- "operationId": "teams-remove-member",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/members/#remove-team-member"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//members/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/remove-membership.json b/openapi/ghe-2.17/operations/teams/remove-membership.json
deleted file mode 100644
index 50bbfc3e5f..0000000000
--- a/openapi/ghe-2.17/operations/teams/remove-membership.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team membership",
- "description": "To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.",
- "operationId": "teams-remove-membership",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/members/#remove-team-membership"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//memberships/:username"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/remove-project.json b/openapi/ghe-2.17/operations/teams/remove-project.json
deleted file mode 100644
index fcc7e90835..0000000000
--- a/openapi/ghe-2.17/operations/teams/remove-project.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Remove team project",
- "description": "Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it.",
- "operationId": "teams-remove-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#remove-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/remove-repo.json b/openapi/ghe-2.17/operations/teams/remove-repo.json
deleted file mode 100644
index c3673c21b6..0000000000
--- a/openapi/ghe-2.17/operations/teams/remove-repo.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "summary": "Remove team repository",
- "description": "If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.",
- "operationId": "teams-remove-repo",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#remove-team-repository"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "owner",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "owner parameter"
- },
- {
- "name": "repo",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "repo parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams//repos/:owner/:repo"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n owner: 'octocat',\n repo: 'hello-world'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/review-project.json b/openapi/ghe-2.17/operations/teams/review-project.json
deleted file mode 100644
index c0e1e10fb6..0000000000
--- a/openapi/ghe-2.17/operations/teams/review-project.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "summary": "Review a team project",
- "description": "Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team.",
- "operationId": "teams-review-project",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#review-a-team-project"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.inertia-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "project_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "project_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "owner_url": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "columns_url": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "state": {
- "type": "string"
- },
- "creator": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization_permission": {
- "type": "string"
- },
- "private": {
- "type": "boolean"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "read": {
- "type": "boolean"
- },
- "write": {
- "type": "boolean"
- },
- "admin": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.inertia-preview+json\" \\\n https://developer.github.com/teams//projects/:project_id"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n project_id: 'project_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/update-discussion-comment.json b/openapi/ghe-2.17/operations/teams/update-discussion-comment.json
deleted file mode 100644
index 2ba30df215..0000000000
--- a/openapi/ghe-2.17/operations/teams/update-discussion-comment.json
+++ /dev/null
@@ -1,219 +0,0 @@
-{
- "summary": "Edit a comment",
- "description": "Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-update-discussion-comment",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussion_comments/#edit-a-comment"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- },
- {
- "name": "comment_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "comment_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "body": {
- "description": "The discussion comment's body text.",
- "type": "string"
- }
- },
- "required": [
- "body"
- ]
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "discussion_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number/comments/:comment_number \\\n -d '{\"body\":\"body\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number',\n comment_number: 'comment_number',\n body: 'body'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/update-discussion.json b/openapi/ghe-2.17/operations/teams/update-discussion.json
deleted file mode 100644
index fe327f4d46..0000000000
--- a/openapi/ghe-2.17/operations/teams/update-discussion.json
+++ /dev/null
@@ -1,226 +0,0 @@
-{
- "summary": "Edit a discussion",
- "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "teams-update-discussion",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/discussions/#edit-a-discussion"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.echo-preview+json"
- },
- "required": true
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- },
- {
- "name": "discussion_number",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "discussion_number parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "The discussion post's title.",
- "type": "string"
- },
- "body": {
- "description": "The discussion post's body text.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "author": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- },
- "body": {
- "type": "string"
- },
- "body_html": {
- "type": "string"
- },
- "body_version": {
- "type": "string"
- },
- "comments_count": {
- "type": "number"
- },
- "comments_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "last_edited_at": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "number": {
- "type": "number"
- },
- "pinned": {
- "type": "boolean"
- },
- "private": {
- "type": "boolean"
- },
- "team_url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "reactions": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "total_count": {
- "type": "number"
- },
- "+1": {
- "type": "number"
- },
- "-1": {
- "type": "number"
- },
- "laugh": {
- "type": "number"
- },
- "confused": {
- "type": "number"
- },
- "heart": {
- "type": "number"
- },
- "hooray": {
- "type": "number"
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.echo-preview+json\" \\\n https://developer.github.com/teams//discussions/:discussion_number"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n discussion_number: 'discussion_number'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/teams/update.json b/openapi/ghe-2.17/operations/teams/update.json
deleted file mode 100644
index a2bf782dc1..0000000000
--- a/openapi/ghe-2.17/operations/teams/update.json
+++ /dev/null
@@ -1,236 +0,0 @@
-{
- "summary": "Edit team",
- "description": "To edit a team, the authenticated user must either be an owner of the org that the team is associated with, or a maintainer of the team.\n\n**Note:** With nested teams, the `privacy` for parent teams cannot be `secret`.",
- "operationId": "teams-update",
- "tags": [
- "teams"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/teams/#edit-team"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "team_id parameter"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The name of the team.",
- "type": "string"
- },
- "description": {
- "description": "The description of the team.",
- "type": "string"
- },
- "privacy": {
- "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
- "type": "string",
- "enum": [
- "secret",
- "closed"
- ]
- },
- "permission": {
- "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.",
- "type": "string",
- "enum": [
- "pull",
- "push",
- "admin"
- ],
- "default": "pull"
- },
- "parent_team_id": {
- "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.",
- "type": "integer"
- }
- },
- "required": [
- "name"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string"
- },
- "members_count": {
- "type": "number"
- },
- "repos_count": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "organization": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "has_organization_projects": {
- "type": "boolean"
- },
- "has_repository_projects": {
- "type": "boolean"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "ldap_dn": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/teams/ \\\n -d '{\"name\":\"name\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.teams.get({\n team_id: 'team_id',\n name: 'name'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/add-emails.json b/openapi/ghe-2.17/operations/users/add-emails.json
deleted file mode 100644
index fe56082bff..0000000000
--- a/openapi/ghe-2.17/operations/users/add-emails.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "summary": "Add email address(es)",
- "description": "If your GitHub Enterprise Server instance has [LDAP Sync enabled and the option to synchronize emails enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync), this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add or delete an email address via the API with these options enabled.\n\nThis endpoint is accessible with the `user` scope.",
- "operationId": "users-add-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/emails/#add-email-addresses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "emails": {
- "description": "Adds one or more email addresses to your GitHub Enterprise Server account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "emails"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails \\\n -d '{\"emails\":\"emails\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n emails: 'emails'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/check-following-for-user.json b/openapi/ghe-2.17/operations/users/check-following-for-user.json
deleted file mode 100644
index 7456deb1c2..0000000000
--- a/openapi/ghe-2.17/operations/users/check-following-for-user.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "summary": "Check if one user follows another",
- "description": "",
- "operationId": "users-check-following-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/followers/#check-if-one-user-follows-another"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "target_user",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "target_user parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//following/:target_user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username',\n target_user: 'target_user'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/check-following.json b/openapi/ghe-2.17/operations/users/check-following.json
deleted file mode 100644
index aa0d566fcd..0000000000
--- a/openapi/ghe-2.17/operations/users/check-following.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Check if you are following a user",
- "description": "",
- "operationId": "users-check-following",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/followers/#check-if-you-are-following-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/create-gpg-key.json b/openapi/ghe-2.17/operations/users/create-gpg-key.json
deleted file mode 100644
index d61424153e..0000000000
--- a/openapi/ghe-2.17/operations/users/create-gpg-key.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "summary": "Create a GPG key",
- "description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-create-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/gpg_keys/#create-a-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "armored_public_key": {
- "description": "Your GPG key, generated in ASCII-armored format. See \"[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)\" for help creating a GPG key.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "string"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- }
- }
- }
- },
- "subkeys": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "number"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {}
- },
- "subkeys": {
- "type": "array",
- "items": {}
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/create-public-key.json b/openapi/ghe-2.17/operations/users/create-public-key.json
deleted file mode 100644
index e23fda11cf..0000000000
--- a/openapi/ghe-2.17/operations/users/create-public-key.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "summary": "Create a public key",
- "description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nIf your GitHub Enterprise Server appliance has [LDAP Sync enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add an SSH key address via the API with these options enabled.",
- "operationId": "users-create-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/keys/#create-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "title": {
- "description": "A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key \"Personal MacBook Air\".",
- "type": "string"
- },
- "key": {
- "description": "The public SSH key to add to your GitHub account. See \"[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)\" for guidance on how to create a public SSH key.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPOST \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/delete-emails.json b/openapi/ghe-2.17/operations/users/delete-emails.json
deleted file mode 100644
index af0a9fffdd..0000000000
--- a/openapi/ghe-2.17/operations/users/delete-emails.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "summary": "Delete email address(es)",
- "description": "If your GitHub Enterprise Server instance has [LDAP Sync enabled and the option to synchronize emails enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap/#enabling-ldap-sync), this API is disabled and will return a `403` response. Users managed in LDAP won't be able to add or delete an email address via the API with these options enabled.\n\nThis endpoint is accessible with the `user` scope.",
- "operationId": "users-delete-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/emails/#delete-email-addresses"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "emails": {
- "description": "Deletes one or more email addresses from your GitHub Enterprise Server account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "emails"
- ]
- }
- }
- }
- },
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails \\\n -d '{\"emails\":\"emails\"}'"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n emails: 'emails'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/delete-gpg-key.json b/openapi/ghe-2.17/operations/users/delete-gpg-key.json
deleted file mode 100644
index ccd354df7d..0000000000
--- a/openapi/ghe-2.17/operations/users/delete-gpg-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a GPG key",
- "description": "Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-delete-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/gpg_keys/#delete-a-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gpg_key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "gpg_key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n gpg_key_id: 'gpg_key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/delete-public-key.json b/openapi/ghe-2.17/operations/users/delete-public-key.json
deleted file mode 100644
index e3cbff3cb3..0000000000
--- a/openapi/ghe-2.17/operations/users/delete-public-key.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Delete a public key",
- "description": "Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nIf your GitHub Enterprise Server appliance has [LDAP Sync enabled](https://help.github.com/enterprise/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a `403` response. Users managed in LDAP won't be able to remove an SSH key address via the API with these options enabled.",
- "operationId": "users-delete-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/keys/#delete-a-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/follow.json b/openapi/ghe-2.17/operations/users/follow.json
deleted file mode 100644
index eb4a9226b2..0000000000
--- a/openapi/ghe-2.17/operations/users/follow.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Follow a user",
- "description": "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/enterprise/2.17/v3/#http-verbs).\"\n\nFollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
- "operationId": "users-follow",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/followers/#follow-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPUT \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/get-authenticated.json b/openapi/ghe-2.17/operations/users/get-authenticated.json
deleted file mode 100644
index 25eede8ea3..0000000000
--- a/openapi/ghe-2.17/operations/users/get-authenticated.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "summary": "Get the authenticated user",
- "description": "Lists public and private profile information when authenticated through basic auth or OAuth with the `user` scope.\n\nLists public profile information when authenticated through OAuth without the `user` scope.",
- "operationId": "users-get-authenticated",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/#get-the-authenticated-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/get-by-username.json b/openapi/ghe-2.17/operations/users/get-by-username.json
deleted file mode 100644
index 24840b6263..0000000000
--- a/openapi/ghe-2.17/operations/users/get-by-username.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "summary": "Get a single user",
- "description": "Provides publicly available information about someone with a GitHub Enterprise Server account.\n\nThe `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://developer.github.com/enterprise/2.17/v3/#authentication).\n\nThe Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"[Emails API](https://developer.github.com/enterprise/2.17/v3/users/emails/)\".",
- "operationId": "users-get-by-username",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/#get-a-single-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "hireable": {
- "type": "boolean"
- },
- "bio": {
- "type": "string"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/get-context-for-user.json b/openapi/ghe-2.17/operations/users/get-context-for-user.json
deleted file mode 100644
index d0fd75646c..0000000000
--- a/openapi/ghe-2.17/operations/users/get-context-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Get contextual information about a user",
- "description": "Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.\n\nThe `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this:",
- "operationId": "users-get-context-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/#get-contextual-information-about-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "This API is under preview and subject to change.",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.hagar-preview+json"
- },
- "required": true
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "subject_type",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "organization",
- "repository",
- "issue",
- "pull_request"
- ]
- },
- "required": false,
- "description": "Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`."
- },
- {
- "name": "subject_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`."
- }
- ],
- "responses": {
- "418": {
- "description": "Response definition missing"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.hagar-preview+json\" \\\n https://developer.github.com/users//hovercard"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/get-gpg-key.json b/openapi/ghe-2.17/operations/users/get-gpg-key.json
deleted file mode 100644
index 780a9c2458..0000000000
--- a/openapi/ghe-2.17/operations/users/get-gpg-key.json
+++ /dev/null
@@ -1,151 +0,0 @@
-{
- "summary": "Get a single GPG key",
- "description": "View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-get-gpg-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/gpg_keys/#get-a-single-gpg-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "gpg_key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "gpg_key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "string"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- }
- }
- }
- },
- "subkeys": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "number"
- },
- "primary_key_id": {
- "type": "number"
- },
- "key_id": {
- "type": "string"
- },
- "public_key": {
- "type": "string"
- },
- "emails": {
- "type": "array",
- "items": {}
- },
- "subkeys": {
- "type": "array",
- "items": {}
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- },
- "can_sign": {
- "type": "boolean"
- },
- "can_encrypt_comms": {
- "type": "boolean"
- },
- "can_encrypt_storage": {
- "type": "boolean"
- },
- "can_certify": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "expires_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n gpg_key_id: 'gpg_key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/get-public-key.json b/openapi/ghe-2.17/operations/users/get-public-key.json
deleted file mode 100644
index 40030f0018..0000000000
--- a/openapi/ghe-2.17/operations/users/get-public-key.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "summary": "Get a single public key",
- "description": "View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-get-public-key",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/keys/#get-a-single-public-key"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "key_id",
- "in": "path",
- "schema": {
- "type": "integer"
- },
- "required": true,
- "description": "key_id parameter"
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "id": {
- "type": "number"
- },
- "key": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "verified": {
- "type": "boolean"
- },
- "created_at": {
- "type": "string"
- },
- "read_only": {
- "type": "boolean"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n key_id: 'key_id'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-emails.json b/openapi/ghe-2.17/operations/users/list-emails.json
deleted file mode 100644
index bd048c02df..0000000000
--- a/openapi/ghe-2.17/operations/users/list-emails.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List email addresses for a user",
- "description": "Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope.",
- "operationId": "users-list-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/emails/#list-email-addresses-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-followers-for-authenticated-user.json b/openapi/ghe-2.17/operations/users/list-followers-for-authenticated-user.json
deleted file mode 100644
index 1c28647624..0000000000
--- a/openapi/ghe-2.17/operations/users/list-followers-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List the authenticated user's followers",
- "description": "",
- "operationId": "users-list-followers-for-authenticated-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/followers/#list-followers-of-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/followers"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-followers-for-user.json b/openapi/ghe-2.17/operations/users/list-followers-for-user.json
deleted file mode 100644
index fb96aa5038..0000000000
--- a/openapi/ghe-2.17/operations/users/list-followers-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List a user's followers",
- "description": "",
- "operationId": "users-list-followers-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/followers/#list-followers-of-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//followers"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-following-for-authenticated-user.json b/openapi/ghe-2.17/operations/users/list-following-for-authenticated-user.json
deleted file mode 100644
index e7257634bc..0000000000
--- a/openapi/ghe-2.17/operations/users/list-following-for-authenticated-user.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List who the authenticated user is following",
- "description": "",
- "operationId": "users-list-following-for-authenticated-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/followers/#list-users-followed-by-another-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-following-for-user.json b/openapi/ghe-2.17/operations/users/list-following-for-user.json
deleted file mode 100644
index 4e5a915af9..0000000000
--- a/openapi/ghe-2.17/operations/users/list-following-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List who a user is following",
- "description": "",
- "operationId": "users-list-following-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/followers/#list-users-followed-by-another-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//following"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-gpg-keys-for-user.json b/openapi/ghe-2.17/operations/users/list-gpg-keys-for-user.json
deleted file mode 100644
index a11e66bc48..0000000000
--- a/openapi/ghe-2.17/operations/users/list-gpg-keys-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List GPG keys for a user",
- "description": "Lists the GPG keys for a user. This information is accessible by anyone.",
- "operationId": "users-list-gpg-keys-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/gpg_keys/#list-gpg-keys-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-gpg-keys.json b/openapi/ghe-2.17/operations/users/list-gpg-keys.json
deleted file mode 100644
index 9af2552f00..0000000000
--- a/openapi/ghe-2.17/operations/users/list-gpg-keys.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your GPG keys",
- "description": "Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-list-gpg-keys",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/gpg_keys/#list-your-gpg-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/gpg_keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-public-emails.json b/openapi/ghe-2.17/operations/users/list-public-emails.json
deleted file mode 100644
index 5405db62a6..0000000000
--- a/openapi/ghe-2.17/operations/users/list-public-emails.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List public email addresses for a user",
- "description": "Lists your publicly visible email address. This endpoint is accessible with the `user:email` scope.",
- "operationId": "users-list-public-emails",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/emails/#list-public-email-addresses-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/public_emails"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-public-keys-for-user.json b/openapi/ghe-2.17/operations/users/list-public-keys-for-user.json
deleted file mode 100644
index f0a0ff6990..0000000000
--- a/openapi/ghe-2.17/operations/users/list-public-keys-for-user.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "List public keys for a user",
- "description": "Lists the _verified_ public SSH keys for a user. This is accessible by anyone.",
- "operationId": "users-list-public-keys-for-user",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/keys/#list-public-keys-for-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users//keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list-public-keys.json b/openapi/ghe-2.17/operations/users/list-public-keys.json
deleted file mode 100644
index 58dbbba73c..0000000000
--- a/openapi/ghe-2.17/operations/users/list-public-keys.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "summary": "List your public keys",
- "description": "Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/enterprise/2.17/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).",
- "operationId": "users-list-public-keys",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/keys/#list-your-public-keys"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/keys"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/list.json b/openapi/ghe-2.17/operations/users/list.json
deleted file mode 100644
index b7a1e330c3..0000000000
--- a/openapi/ghe-2.17/operations/users/list.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "summary": "Get all users",
- "description": "Lists all users, in the order that they signed up on GitHub Enterprise Server. This list includes personal user accounts and organization accounts.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/enterprise/2.17/v3/#link-header) to get the URL for the next page of users.",
- "operationId": "users-list",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/#get-all-users"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "since",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "The integer ID of the last User that you've seen."
- },
- {
- "name": "per_page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 30
- },
- "required": false,
- "description": "Results per page (max 100)"
- },
- {
- "name": "page",
- "in": "query",
- "schema": {
- "type": "integer",
- "default": 1
- },
- "required": false,
- "description": "Page number of the results to fetch."
- }
- ],
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {}
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/users"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": true,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/unfollow.json b/openapi/ghe-2.17/operations/users/unfollow.json
deleted file mode 100644
index 99ae9e52b7..0000000000
--- a/openapi/ghe-2.17/operations/users/unfollow.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "summary": "Unfollow a user",
- "description": "Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.",
- "operationId": "users-unfollow",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/followers/#unfollow-a-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- },
- {
- "name": "username",
- "in": "path",
- "schema": {
- "type": "string"
- },
- "required": true,
- "description": "username parameter"
- }
- ],
- "responses": {
- "204": {
- "description": "Empty response"
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user/following/"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get({\n username: 'username'\n})"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/openapi/ghe-2.17/operations/users/update-authenticated.json b/openapi/ghe-2.17/operations/users/update-authenticated.json
deleted file mode 100644
index 388a6f589b..0000000000
--- a/openapi/ghe-2.17/operations/users/update-authenticated.json
+++ /dev/null
@@ -1,222 +0,0 @@
-{
- "summary": "Update the authenticated user",
- "description": "**Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.",
- "operationId": "users-update-authenticated",
- "tags": [
- "users"
- ],
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://developer.github.com/enterprise/2.17/v3/users/#update-the-authenticated-user"
- },
- "parameters": [
- {
- "name": "accept",
- "description": "Setting to `application/vnd.github.v3+json` is recommended",
- "in": "header",
- "schema": {
- "type": "string",
- "default": "application/vnd.github.v3+json"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "description": "The new name of the user.",
- "type": "string"
- },
- "email": {
- "description": "The publicly visible email address of the user.",
- "type": "string"
- },
- "blog": {
- "description": "The new blog URL of the user.",
- "type": "string"
- },
- "company": {
- "description": "The new company of the user.",
- "type": "string"
- },
- "location": {
- "description": "The new location of the user.",
- "type": "string"
- },
- "hireable": {
- "description": "The new hiring availability of the user.",
- "type": "boolean"
- },
- "bio": {
- "description": "The new short biography of the user.",
- "type": "string"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "number"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "company": {
- "type": "string"
- },
- "blog": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "hireable": {
- "type": "boolean"
- },
- "bio": {
- "type": "string"
- },
- "public_repos": {
- "type": "number"
- },
- "public_gists": {
- "type": "number"
- },
- "followers": {
- "type": "number"
- },
- "following": {
- "type": "number"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "private_gists": {
- "type": "number"
- },
- "total_private_repos": {
- "type": "number"
- },
- "owned_private_repos": {
- "type": "number"
- },
- "disk_usage": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- },
- "two_factor_authentication": {
- "type": "boolean"
- },
- "plan": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "space": {
- "type": "number"
- },
- "private_repos": {
- "type": "number"
- },
- "collaborators": {
- "type": "number"
- }
- }
- },
- "suspended_at": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "x-code-samples": [
- {
- "lang": "Shell",
- "source": "curl \\\n -XPATCH \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n https://developer.github.com/user"
- },
- {
- "lang": "JS",
- "source": "octokit.users.get()"
- }
- ],
- "x-github": {
- "legacy": false,
- "enabledForApps": false,
- "githubCloudOnly": false
- },
- "x-changes": []
-}
diff --git a/routes/ghe-2.14/activity.json b/routes/ghe-2.14/activity.json
index bffc9f754d..ddfb5beda7 100644
--- a/routes/ghe-2.14/activity.json
+++ b/routes/ghe-2.14/activity.json
@@ -714,7 +714,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -755,7 +756,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.14/activity/mark-as-read.json b/routes/ghe-2.14/activity/mark-as-read.json
index 0f615aba4c..a596a4b239 100644
--- a/routes/ghe-2.14/activity/mark-as-read.json
+++ b/routes/ghe-2.14/activity/mark-as-read.json
@@ -8,7 +8,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.14/activity/mark-notifications-as-read-for-repo.json b/routes/ghe-2.14/activity/mark-notifications-as-read-for-repo.json
index 4ca884ab8d..4cec8daaa3 100644
--- a/routes/ghe-2.14/activity/mark-notifications-as-read-for-repo.json
+++ b/routes/ghe-2.14/activity/mark-notifications-as-read-for-repo.json
@@ -22,7 +22,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.14/checks.json b/routes/ghe-2.14/checks.json
index e8ff0bd459..48e1ae4528 100644
--- a/routes/ghe-2.14/checks.json
+++ b/routes/ghe-2.14/checks.json
@@ -223,7 +223,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.14/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#actions-object) description.",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/checks/create.json b/routes/ghe-2.14/checks/create.json
index 6f455fca92..aa9909a225 100644
--- a/routes/ghe-2.14/checks/create.json
+++ b/routes/ghe-2.14/checks/create.json
@@ -222,7 +222,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.14/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#actions-object) description.",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/enterprise-admin.json b/routes/ghe-2.14/enterprise-admin.json
index 9e79c6f6e1..29a88dfb93 100644
--- a/routes/ghe-2.14/enterprise-admin.json
+++ b/routes/ghe-2.14/enterprise-admin.json
@@ -257,7 +257,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -374,7 +375,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/enterprise-admin/create-global-hook.json b/routes/ghe-2.14/enterprise-admin/create-global-hook.json
index 72f30503e7..fa72a9c129 100644
--- a/routes/ghe-2.14/enterprise-admin/create-global-hook.json
+++ b/routes/ghe-2.14/enterprise-admin/create-global-hook.json
@@ -56,7 +56,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/enterprise-admin/update-global-hook.json b/routes/ghe-2.14/enterprise-admin/update-global-hook.json
index ccac448419..8588159d7c 100644
--- a/routes/ghe-2.14/enterprise-admin/update-global-hook.json
+++ b/routes/ghe-2.14/enterprise-admin/update-global-hook.json
@@ -56,7 +56,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/git.json b/routes/ghe-2.14/git.json
index f08fcf3ea2..9fa8e9ad21 100644
--- a/routes/ghe-2.14/git.json
+++ b/routes/ghe-2.14/git.json
@@ -79,7 +79,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.14/git/create-blob.json b/routes/ghe-2.14/git/create-blob.json
index 947ff194d8..e9087f36da 100644
--- a/routes/ghe-2.14/git/create-blob.json
+++ b/routes/ghe-2.14/git/create-blob.json
@@ -30,7 +30,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.14/index.json b/routes/ghe-2.14/index.json
index 81e49f6ed4..f6035c97df 100644
--- a/routes/ghe-2.14/index.json
+++ b/routes/ghe-2.14/index.json
@@ -715,7 +715,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -756,7 +757,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -3637,7 +3639,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.14/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#actions-object) description.",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.14/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -5925,7 +5927,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -6042,7 +6045,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -10017,7 +10021,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
@@ -18177,9 +18181,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -18295,9 +18297,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -20802,7 +20802,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
@@ -27951,7 +27952,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -28024,7 +28026,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -33197,7 +33200,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
@@ -33508,6 +33512,50 @@
"idName": "get-commit",
"documentationUrl": "https://developer.github.com/enterprise/2.14/v3/repos/commits/#get-a-single-commit"
},
+ {
+ "name": "Get the SHA-1 of a commit reference",
+ "enabledForApps": true,
+ "method": "GET",
+ "path": "/repos/:owner/:repo/commits/:ref",
+ "previews": [],
+ "params": [
+ {
+ "name": "owner",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "repo",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "ref",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ }
+ ],
+ "description": "**Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:\n\n```\napplication/vnd.github.VERSION.sha\n\n```\n\nReturns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag.\n\n",
+ "responses": [
+ {
+ "headers": {
+ "status": "200 OK"
+ }
+ }
+ ],
+ "idName": "get-commit-ref-sha",
+ "documentationUrl": "https://developer.github.com/enterprise/2.14/v3/repos/commits/#get-a-single-commit",
+ "deprecated": {
+ "date": "2019-05-22",
+ "message": "\"Get the SHA-1 of a commit reference\" will be removed. Use \"Get a single commit\" instead with media type format set to \"sha\" instead."
+ }
+ },
{
"name": "Compare two commits",
"enabledForApps": true,
@@ -33836,7 +33884,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -33902,7 +33951,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -33963,14 +34013,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -33991,7 +34043,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -34136,14 +34189,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -34164,7 +34219,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -34319,14 +34375,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -34347,7 +34405,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -34495,7 +34554,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
@@ -34923,7 +34983,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -34939,7 +34999,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -34954,7 +35014,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
@@ -35211,7 +35272,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35219,7 +35280,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35227,7 +35288,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35235,7 +35296,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35988,9 +36049,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -36122,9 +36181,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -37990,7 +38047,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -38125,7 +38183,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -39411,7 +39470,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
@@ -39477,7 +39537,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
@@ -39535,7 +39596,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
@@ -39598,7 +39660,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -39671,7 +39734,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -39748,7 +39812,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
@@ -39845,7 +39910,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
@@ -39945,7 +40011,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -39994,7 +40061,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -40234,7 +40302,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
@@ -40376,10 +40445,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.14/orgs.json b/routes/ghe-2.14/orgs.json
index 765a39414e..dcfe7452a2 100644
--- a/routes/ghe-2.14/orgs.json
+++ b/routes/ghe-2.14/orgs.json
@@ -571,9 +571,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -689,9 +687,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/orgs/create-hook.json b/routes/ghe-2.14/orgs/create-hook.json
index cffbf3b6d0..d909c435a2 100644
--- a/routes/ghe-2.14/orgs/create-hook.json
+++ b/routes/ghe-2.14/orgs/create-hook.json
@@ -58,9 +58,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/orgs/update-hook.json b/routes/ghe-2.14/orgs/update-hook.json
index a75cb21647..ed72cca696 100644
--- a/routes/ghe-2.14/orgs/update-hook.json
+++ b/routes/ghe-2.14/orgs/update-hook.json
@@ -58,9 +58,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/pulls.json b/routes/ghe-2.14/pulls.json
index 1813718299..23776fd913 100644
--- a/routes/ghe-2.14/pulls.json
+++ b/routes/ghe-2.14/pulls.json
@@ -75,7 +75,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.14/pulls/list.json b/routes/ghe-2.14/pulls/list.json
index e61c6387b3..f1ce783bc8 100644
--- a/routes/ghe-2.14/pulls/list.json
+++ b/routes/ghe-2.14/pulls/list.json
@@ -74,7 +74,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.14/repos.json b/routes/ghe-2.14/repos.json
index ee647bf1bf..71da425e03 100644
--- a/routes/ghe-2.14/repos.json
+++ b/routes/ghe-2.14/repos.json
@@ -59,7 +59,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -132,7 +133,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -5305,7 +5307,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
@@ -5616,6 +5619,50 @@
"idName": "get-commit",
"documentationUrl": "https://developer.github.com/enterprise/2.14/v3/repos/commits/#get-a-single-commit"
},
+ {
+ "name": "Get the SHA-1 of a commit reference",
+ "enabledForApps": true,
+ "method": "GET",
+ "path": "/repos/:owner/:repo/commits/:ref",
+ "previews": [],
+ "params": [
+ {
+ "name": "owner",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "repo",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "ref",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ }
+ ],
+ "description": "**Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:\n\n```\napplication/vnd.github.VERSION.sha\n\n```\n\nReturns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag.\n\n",
+ "responses": [
+ {
+ "headers": {
+ "status": "200 OK"
+ }
+ }
+ ],
+ "idName": "get-commit-ref-sha",
+ "documentationUrl": "https://developer.github.com/enterprise/2.14/v3/repos/commits/#get-a-single-commit",
+ "deprecated": {
+ "date": "2019-05-22",
+ "message": "\"Get the SHA-1 of a commit reference\" will be removed. Use \"Get a single commit\" instead with media type format set to \"sha\" instead."
+ }
+ },
{
"name": "Compare two commits",
"enabledForApps": true,
@@ -5944,7 +5991,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -6010,7 +6058,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -6071,14 +6120,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6099,7 +6150,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6244,14 +6296,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6272,7 +6326,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6427,14 +6482,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6455,7 +6512,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6603,7 +6661,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
@@ -7031,7 +7090,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7047,7 +7106,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7062,7 +7121,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
@@ -7319,7 +7379,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7327,7 +7387,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7335,7 +7395,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7343,7 +7403,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -8096,9 +8156,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -8230,9 +8288,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -10098,7 +10154,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -10233,7 +10290,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/repos/create-deployment-status.json b/routes/ghe-2.14/repos/create-deployment-status.json
index 1bcfb8b5bb..2e205e44e3 100644
--- a/routes/ghe-2.14/repos/create-deployment-status.json
+++ b/routes/ghe-2.14/repos/create-deployment-status.json
@@ -50,7 +50,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -58,7 +58,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -66,7 +66,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -74,7 +74,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/repos/create-deployment.json b/routes/ghe-2.14/repos/create-deployment.json
index 99aeaa1780..499228743f 100644
--- a/routes/ghe-2.14/repos/create-deployment.json
+++ b/routes/ghe-2.14/repos/create-deployment.json
@@ -59,7 +59,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -75,7 +75,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -90,7 +90,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.14/repos/create-file.json b/routes/ghe-2.14/repos/create-file.json
index 8867f8eb85..f9e531275c 100644
--- a/routes/ghe-2.14/repos/create-file.json
+++ b/routes/ghe-2.14/repos/create-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/repos/create-hook.json b/routes/ghe-2.14/repos/create-hook.json
index 672a18169d..553951c5cb 100644
--- a/routes/ghe-2.14/repos/create-hook.json
+++ b/routes/ghe-2.14/repos/create-hook.json
@@ -65,9 +65,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/repos/create-or-update-file.json b/routes/ghe-2.14/repos/create-or-update-file.json
index 5d47c7fc95..26984c1658 100644
--- a/routes/ghe-2.14/repos/create-or-update-file.json
+++ b/routes/ghe-2.14/repos/create-or-update-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/repos/create-release.json b/routes/ghe-2.14/repos/create-release.json
index 26fb21dd41..c23a1cc575 100644
--- a/routes/ghe-2.14/repos/create-release.json
+++ b/routes/ghe-2.14/repos/create-release.json
@@ -29,7 +29,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/repos/delete-file.json b/routes/ghe-2.14/repos/delete-file.json
index 7241182590..809eb1f598 100644
--- a/routes/ghe-2.14/repos/delete-file.json
+++ b/routes/ghe-2.14/repos/delete-file.json
@@ -43,7 +43,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/repos/get-contents.json b/routes/ghe-2.14/repos/get-contents.json
index 8d11b8d42d..c6a917b551 100644
--- a/routes/ghe-2.14/repos/get-contents.json
+++ b/routes/ghe-2.14/repos/get-contents.json
@@ -29,7 +29,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
diff --git a/routes/ghe-2.14/repos/get-readme.json b/routes/ghe-2.14/repos/get-readme.json
index d64336f56b..6afd4cde7a 100644
--- a/routes/ghe-2.14/repos/get-readme.json
+++ b/routes/ghe-2.14/repos/get-readme.json
@@ -22,7 +22,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
diff --git a/routes/ghe-2.14/repos/list-commits.json b/routes/ghe-2.14/repos/list-commits.json
index ccbd66fc1f..bcd7292456 100644
--- a/routes/ghe-2.14/repos/list-commits.json
+++ b/routes/ghe-2.14/repos/list-commits.json
@@ -22,7 +22,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
diff --git a/routes/ghe-2.14/repos/list-for-user.json b/routes/ghe-2.14/repos/list-for-user.json
index 663dcb2ef0..2e407169f2 100644
--- a/routes/ghe-2.14/repos/list-for-user.json
+++ b/routes/ghe-2.14/repos/list-for-user.json
@@ -42,7 +42,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.14/repos/list.json b/routes/ghe-2.14/repos/list.json
index 74ce23eda5..ecf6b83e65 100644
--- a/routes/ghe-2.14/repos/list.json
+++ b/routes/ghe-2.14/repos/list.json
@@ -58,7 +58,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.14/repos/update-file.json b/routes/ghe-2.14/repos/update-file.json
index f70bed0dd7..c15d076a15 100644
--- a/routes/ghe-2.14/repos/update-file.json
+++ b/routes/ghe-2.14/repos/update-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/repos/update-hook.json b/routes/ghe-2.14/repos/update-hook.json
index 0130fd37f8..0e8bdd160d 100644
--- a/routes/ghe-2.14/repos/update-hook.json
+++ b/routes/ghe-2.14/repos/update-hook.json
@@ -65,9 +65,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.14/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/repos/update-release.json b/routes/ghe-2.14/repos/update-release.json
index d6a0b1e524..b052bb36aa 100644
--- a/routes/ghe-2.14/repos/update-release.json
+++ b/routes/ghe-2.14/repos/update-release.json
@@ -36,7 +36,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.14/search.json b/routes/ghe-2.14/search.json
index 3dd9e46965..57b859850a 100644
--- a/routes/ghe-2.14/search.json
+++ b/routes/ghe-2.14/search.json
@@ -22,7 +22,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
@@ -88,7 +89,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
@@ -146,7 +148,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
@@ -209,7 +212,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -282,7 +286,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -359,7 +364,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
@@ -456,7 +462,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
@@ -556,7 +563,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -605,7 +613,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.14/search/code.json b/routes/ghe-2.14/search/code.json
index fad5a38d08..80104efc20 100644
--- a/routes/ghe-2.14/search/code.json
+++ b/routes/ghe-2.14/search/code.json
@@ -15,7 +15,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
diff --git a/routes/ghe-2.14/search/commits.json b/routes/ghe-2.14/search/commits.json
index fc94b03035..35d647ffc8 100644
--- a/routes/ghe-2.14/search/commits.json
+++ b/routes/ghe-2.14/search/commits.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
diff --git a/routes/ghe-2.14/search/issues-and-pull-requests.json b/routes/ghe-2.14/search/issues-and-pull-requests.json
index d85fe88d5d..0a6579e3db 100644
--- a/routes/ghe-2.14/search/issues-and-pull-requests.json
+++ b/routes/ghe-2.14/search/issues-and-pull-requests.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
diff --git a/routes/ghe-2.14/search/issues.json b/routes/ghe-2.14/search/issues.json
index 695d40f4b1..50d6e241db 100644
--- a/routes/ghe-2.14/search/issues.json
+++ b/routes/ghe-2.14/search/issues.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
diff --git a/routes/ghe-2.14/search/labels.json b/routes/ghe-2.14/search/labels.json
index e7984ae5ed..be46a2022a 100644
--- a/routes/ghe-2.14/search/labels.json
+++ b/routes/ghe-2.14/search/labels.json
@@ -28,7 +28,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
diff --git a/routes/ghe-2.14/search/repos-legacy.json b/routes/ghe-2.14/search/repos-legacy.json
index 3c02732c68..05dcc705da 100644
--- a/routes/ghe-2.14/search/repos-legacy.json
+++ b/routes/ghe-2.14/search/repos-legacy.json
@@ -29,7 +29,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.14/search/repos.json b/routes/ghe-2.14/search/repos.json
index 726e52cdc1..5f42303edd 100644
--- a/routes/ghe-2.14/search/repos.json
+++ b/routes/ghe-2.14/search/repos.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.14/search/users-legacy.json b/routes/ghe-2.14/search/users-legacy.json
index 3fd953fbc9..3373620617 100644
--- a/routes/ghe-2.14/search/users-legacy.json
+++ b/routes/ghe-2.14/search/users-legacy.json
@@ -22,7 +22,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.14/search/users.json b/routes/ghe-2.14/search/users.json
index e927c7471f..e6dd971081 100644
--- a/routes/ghe-2.14/search/users.json
+++ b/routes/ghe-2.14/search/users.json
@@ -15,7 +15,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise. Default: [best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise.",
+ "default": "[best match](https://developer.github.com/enterprise/2.14/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
diff --git a/routes/ghe-2.14/teams.json b/routes/ghe-2.14/teams.json
index 1a735b08de..c44f726091 100644
--- a/routes/ghe-2.14/teams.json
+++ b/routes/ghe-2.14/teams.json
@@ -193,7 +193,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
@@ -335,10 +336,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.14/teams/create.json b/routes/ghe-2.14/teams/create.json
index 83f746fb65..29723889f3 100644
--- a/routes/ghe-2.14/teams/create.json
+++ b/routes/ghe-2.14/teams/create.json
@@ -49,7 +49,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
diff --git a/routes/ghe-2.14/teams/update.json b/routes/ghe-2.14/teams/update.json
index d3a3b9d868..400e58c8d9 100644
--- a/routes/ghe-2.14/teams/update.json
+++ b/routes/ghe-2.14/teams/update.json
@@ -37,10 +37,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.15/activity.json b/routes/ghe-2.15/activity.json
index e34b66ac68..ace88fd8e4 100644
--- a/routes/ghe-2.15/activity.json
+++ b/routes/ghe-2.15/activity.json
@@ -714,7 +714,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -755,7 +756,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.15/activity/mark-as-read.json b/routes/ghe-2.15/activity/mark-as-read.json
index 679ca4de3b..0f4e71e94c 100644
--- a/routes/ghe-2.15/activity/mark-as-read.json
+++ b/routes/ghe-2.15/activity/mark-as-read.json
@@ -8,7 +8,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.15/activity/mark-notifications-as-read-for-repo.json b/routes/ghe-2.15/activity/mark-notifications-as-read-for-repo.json
index a0f11b3a8a..f145428211 100644
--- a/routes/ghe-2.15/activity/mark-notifications-as-read-for-repo.json
+++ b/routes/ghe-2.15/activity/mark-notifications-as-read-for-repo.json
@@ -22,7 +22,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.15/checks.json b/routes/ghe-2.15/checks.json
index 0c572d7e19..af594f9f47 100644
--- a/routes/ghe-2.15/checks.json
+++ b/routes/ghe-2.15/checks.json
@@ -230,7 +230,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.15/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -270,7 +270,7 @@
}
}
],
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
"responses": [
{
"headers": {
@@ -583,7 +583,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/checks/create.json b/routes/ghe-2.15/checks/create.json
index 3e39b15b75..ead68951cf 100644
--- a/routes/ghe-2.15/checks/create.json
+++ b/routes/ghe-2.15/checks/create.json
@@ -229,7 +229,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.15/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -269,7 +269,7 @@
}
}
],
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
"responses": [
{
"headers": {
diff --git a/routes/ghe-2.15/checks/update.json b/routes/ghe-2.15/checks/update.json
index 09322c62f5..ecda07e0bd 100644
--- a/routes/ghe-2.15/checks/update.json
+++ b/routes/ghe-2.15/checks/update.json
@@ -228,7 +228,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/enterprise-admin.json b/routes/ghe-2.15/enterprise-admin.json
index 97722e3113..fa6efa0880 100644
--- a/routes/ghe-2.15/enterprise-admin.json
+++ b/routes/ghe-2.15/enterprise-admin.json
@@ -257,7 +257,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -374,7 +375,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/enterprise-admin/create-global-hook.json b/routes/ghe-2.15/enterprise-admin/create-global-hook.json
index 6791e800dc..9cf8f765bf 100644
--- a/routes/ghe-2.15/enterprise-admin/create-global-hook.json
+++ b/routes/ghe-2.15/enterprise-admin/create-global-hook.json
@@ -56,7 +56,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/enterprise-admin/update-global-hook.json b/routes/ghe-2.15/enterprise-admin/update-global-hook.json
index cabb48ca37..2375a5f7a9 100644
--- a/routes/ghe-2.15/enterprise-admin/update-global-hook.json
+++ b/routes/ghe-2.15/enterprise-admin/update-global-hook.json
@@ -56,7 +56,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/git.json b/routes/ghe-2.15/git.json
index 1026a067bb..a8466167b7 100644
--- a/routes/ghe-2.15/git.json
+++ b/routes/ghe-2.15/git.json
@@ -79,7 +79,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.15/git/create-blob.json b/routes/ghe-2.15/git/create-blob.json
index ae48f11a8e..0b3aa08316 100644
--- a/routes/ghe-2.15/git/create-blob.json
+++ b/routes/ghe-2.15/git/create-blob.json
@@ -30,7 +30,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.15/index.json b/routes/ghe-2.15/index.json
index cf1cd2dc9d..18a80c051b 100644
--- a/routes/ghe-2.15/index.json
+++ b/routes/ghe-2.15/index.json
@@ -715,7 +715,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -756,7 +757,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -3644,7 +3646,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.15/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -3684,7 +3686,7 @@
}
}
],
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
"responses": [
{
"headers": {
@@ -3997,7 +3999,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.15/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.15/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -5943,7 +5945,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -6060,7 +6063,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -10035,7 +10039,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
@@ -18215,9 +18219,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -18333,9 +18335,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -20864,7 +20864,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
@@ -28013,7 +28014,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -28086,7 +28088,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -33259,7 +33262,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
@@ -33570,6 +33574,50 @@
"idName": "get-commit",
"documentationUrl": "https://developer.github.com/enterprise/2.15/v3/repos/commits/#get-a-single-commit"
},
+ {
+ "name": "Get the SHA-1 of a commit reference",
+ "enabledForApps": true,
+ "method": "GET",
+ "path": "/repos/:owner/:repo/commits/:ref",
+ "previews": [],
+ "params": [
+ {
+ "name": "owner",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "repo",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "ref",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ }
+ ],
+ "description": "**Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:\n\n```\napplication/vnd.github.VERSION.sha\n\n```\n\nReturns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag.\n\n",
+ "responses": [
+ {
+ "headers": {
+ "status": "200 OK"
+ }
+ }
+ ],
+ "idName": "get-commit-ref-sha",
+ "documentationUrl": "https://developer.github.com/enterprise/2.15/v3/repos/commits/#get-a-single-commit",
+ "deprecated": {
+ "date": "2019-05-22",
+ "message": "\"Get the SHA-1 of a commit reference\" will be removed. Use \"Get a single commit\" instead with media type format set to \"sha\" instead."
+ }
+ },
{
"name": "Compare two commits",
"enabledForApps": true,
@@ -33898,7 +33946,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -33964,7 +34013,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -34025,14 +34075,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -34053,7 +34105,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -34198,14 +34251,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -34226,7 +34281,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -34381,14 +34437,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -34409,7 +34467,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -34557,7 +34616,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
@@ -34985,7 +35045,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35001,7 +35061,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35016,7 +35076,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
@@ -35273,7 +35334,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35281,7 +35342,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35289,7 +35350,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35297,7 +35358,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -36051,9 +36112,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -36185,9 +36244,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -38110,7 +38167,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -38245,7 +38303,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -39513,7 +39572,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
@@ -39579,7 +39639,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
@@ -39637,7 +39698,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
@@ -39700,7 +39762,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -39773,7 +39836,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -39850,7 +39914,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
@@ -39947,7 +40012,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
@@ -40047,7 +40113,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -40096,7 +40163,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -40336,7 +40404,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
@@ -40478,10 +40547,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.15/orgs.json b/routes/ghe-2.15/orgs.json
index 01fc01b43d..44f8748c60 100644
--- a/routes/ghe-2.15/orgs.json
+++ b/routes/ghe-2.15/orgs.json
@@ -571,9 +571,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -689,9 +687,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/orgs/create-hook.json b/routes/ghe-2.15/orgs/create-hook.json
index 5a1206f448..ac0ec24954 100644
--- a/routes/ghe-2.15/orgs/create-hook.json
+++ b/routes/ghe-2.15/orgs/create-hook.json
@@ -58,9 +58,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/orgs/update-hook.json b/routes/ghe-2.15/orgs/update-hook.json
index 7db2ed5cde..b2000894c2 100644
--- a/routes/ghe-2.15/orgs/update-hook.json
+++ b/routes/ghe-2.15/orgs/update-hook.json
@@ -58,9 +58,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/pulls.json b/routes/ghe-2.15/pulls.json
index ed33f0ba3c..647b461e6f 100644
--- a/routes/ghe-2.15/pulls.json
+++ b/routes/ghe-2.15/pulls.json
@@ -75,7 +75,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.15/pulls/list.json b/routes/ghe-2.15/pulls/list.json
index a52e977afd..e35c3d3545 100644
--- a/routes/ghe-2.15/pulls/list.json
+++ b/routes/ghe-2.15/pulls/list.json
@@ -74,7 +74,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.15/repos.json b/routes/ghe-2.15/repos.json
index 2d4290c1f0..3e5b1daca5 100644
--- a/routes/ghe-2.15/repos.json
+++ b/routes/ghe-2.15/repos.json
@@ -59,7 +59,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -132,7 +133,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -5305,7 +5307,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
@@ -5616,6 +5619,50 @@
"idName": "get-commit",
"documentationUrl": "https://developer.github.com/enterprise/2.15/v3/repos/commits/#get-a-single-commit"
},
+ {
+ "name": "Get the SHA-1 of a commit reference",
+ "enabledForApps": true,
+ "method": "GET",
+ "path": "/repos/:owner/:repo/commits/:ref",
+ "previews": [],
+ "params": [
+ {
+ "name": "owner",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "repo",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "ref",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ }
+ ],
+ "description": "**Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:\n\n```\napplication/vnd.github.VERSION.sha\n\n```\n\nReturns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag.\n\n",
+ "responses": [
+ {
+ "headers": {
+ "status": "200 OK"
+ }
+ }
+ ],
+ "idName": "get-commit-ref-sha",
+ "documentationUrl": "https://developer.github.com/enterprise/2.15/v3/repos/commits/#get-a-single-commit",
+ "deprecated": {
+ "date": "2019-05-22",
+ "message": "\"Get the SHA-1 of a commit reference\" will be removed. Use \"Get a single commit\" instead with media type format set to \"sha\" instead."
+ }
+ },
{
"name": "Compare two commits",
"enabledForApps": true,
@@ -5944,7 +5991,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -6010,7 +6058,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -6071,14 +6120,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6099,7 +6150,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6244,14 +6296,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6272,7 +6326,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6427,14 +6482,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6455,7 +6512,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6603,7 +6661,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
@@ -7031,7 +7090,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7047,7 +7106,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7062,7 +7121,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
@@ -7319,7 +7379,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7327,7 +7387,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7335,7 +7395,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7343,7 +7403,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -8097,9 +8157,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -8231,9 +8289,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -10156,7 +10212,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -10291,7 +10348,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/repos/create-deployment-status.json b/routes/ghe-2.15/repos/create-deployment-status.json
index 8261f0c9c8..ccbca9272e 100644
--- a/routes/ghe-2.15/repos/create-deployment-status.json
+++ b/routes/ghe-2.15/repos/create-deployment-status.json
@@ -50,7 +50,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -58,7 +58,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -66,7 +66,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -74,7 +74,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/repos/create-deployment.json b/routes/ghe-2.15/repos/create-deployment.json
index 9fc0cbece5..c04ea02ad4 100644
--- a/routes/ghe-2.15/repos/create-deployment.json
+++ b/routes/ghe-2.15/repos/create-deployment.json
@@ -59,7 +59,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -75,7 +75,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -90,7 +90,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.15/repos/create-file.json b/routes/ghe-2.15/repos/create-file.json
index 0c73f9d3ef..c6fcc8c9ef 100644
--- a/routes/ghe-2.15/repos/create-file.json
+++ b/routes/ghe-2.15/repos/create-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/repos/create-hook.json b/routes/ghe-2.15/repos/create-hook.json
index b02ece659e..3a8fd01414 100644
--- a/routes/ghe-2.15/repos/create-hook.json
+++ b/routes/ghe-2.15/repos/create-hook.json
@@ -66,9 +66,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/repos/create-or-update-file.json b/routes/ghe-2.15/repos/create-or-update-file.json
index a1ade683b5..09d8bdf949 100644
--- a/routes/ghe-2.15/repos/create-or-update-file.json
+++ b/routes/ghe-2.15/repos/create-or-update-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/repos/create-release.json b/routes/ghe-2.15/repos/create-release.json
index 447cf62968..0f4f540b5e 100644
--- a/routes/ghe-2.15/repos/create-release.json
+++ b/routes/ghe-2.15/repos/create-release.json
@@ -29,7 +29,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/repos/delete-file.json b/routes/ghe-2.15/repos/delete-file.json
index 019a73918a..4c47605ca4 100644
--- a/routes/ghe-2.15/repos/delete-file.json
+++ b/routes/ghe-2.15/repos/delete-file.json
@@ -43,7 +43,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/repos/get-contents.json b/routes/ghe-2.15/repos/get-contents.json
index 6a4c0d83b7..6986845034 100644
--- a/routes/ghe-2.15/repos/get-contents.json
+++ b/routes/ghe-2.15/repos/get-contents.json
@@ -29,7 +29,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
diff --git a/routes/ghe-2.15/repos/get-readme.json b/routes/ghe-2.15/repos/get-readme.json
index cc1af6e8a7..5de0930edb 100644
--- a/routes/ghe-2.15/repos/get-readme.json
+++ b/routes/ghe-2.15/repos/get-readme.json
@@ -22,7 +22,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
diff --git a/routes/ghe-2.15/repos/list-commits.json b/routes/ghe-2.15/repos/list-commits.json
index 8cf989f93a..fe5cdd4de3 100644
--- a/routes/ghe-2.15/repos/list-commits.json
+++ b/routes/ghe-2.15/repos/list-commits.json
@@ -22,7 +22,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
diff --git a/routes/ghe-2.15/repos/list-for-user.json b/routes/ghe-2.15/repos/list-for-user.json
index 8d2e59fd6f..308ae3ed00 100644
--- a/routes/ghe-2.15/repos/list-for-user.json
+++ b/routes/ghe-2.15/repos/list-for-user.json
@@ -42,7 +42,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.15/repos/list.json b/routes/ghe-2.15/repos/list.json
index 54db8c7404..75c157b60c 100644
--- a/routes/ghe-2.15/repos/list.json
+++ b/routes/ghe-2.15/repos/list.json
@@ -58,7 +58,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.15/repos/update-file.json b/routes/ghe-2.15/repos/update-file.json
index 024629016d..aec67ed151 100644
--- a/routes/ghe-2.15/repos/update-file.json
+++ b/routes/ghe-2.15/repos/update-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/repos/update-hook.json b/routes/ghe-2.15/repos/update-hook.json
index df79cdb43a..71c2a93006 100644
--- a/routes/ghe-2.15/repos/update-hook.json
+++ b/routes/ghe-2.15/repos/update-hook.json
@@ -65,9 +65,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.15/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/repos/update-release.json b/routes/ghe-2.15/repos/update-release.json
index 4c9a814982..cb3aa3583a 100644
--- a/routes/ghe-2.15/repos/update-release.json
+++ b/routes/ghe-2.15/repos/update-release.json
@@ -36,7 +36,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.15/search.json b/routes/ghe-2.15/search.json
index f95f7bc44e..e9fa298612 100644
--- a/routes/ghe-2.15/search.json
+++ b/routes/ghe-2.15/search.json
@@ -22,7 +22,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
@@ -88,7 +89,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
@@ -146,7 +148,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
@@ -209,7 +212,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -282,7 +286,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -359,7 +364,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
@@ -456,7 +462,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
@@ -556,7 +563,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -605,7 +613,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.15/search/code.json b/routes/ghe-2.15/search/code.json
index ba0d9a5559..0e3b66bbff 100644
--- a/routes/ghe-2.15/search/code.json
+++ b/routes/ghe-2.15/search/code.json
@@ -15,7 +15,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
diff --git a/routes/ghe-2.15/search/commits.json b/routes/ghe-2.15/search/commits.json
index a589582818..b6641cf28e 100644
--- a/routes/ghe-2.15/search/commits.json
+++ b/routes/ghe-2.15/search/commits.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
diff --git a/routes/ghe-2.15/search/issues-and-pull-requests.json b/routes/ghe-2.15/search/issues-and-pull-requests.json
index 29b03b154a..9edb66fac7 100644
--- a/routes/ghe-2.15/search/issues-and-pull-requests.json
+++ b/routes/ghe-2.15/search/issues-and-pull-requests.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
diff --git a/routes/ghe-2.15/search/issues.json b/routes/ghe-2.15/search/issues.json
index 72b9e09d9d..59c09fb7ce 100644
--- a/routes/ghe-2.15/search/issues.json
+++ b/routes/ghe-2.15/search/issues.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
diff --git a/routes/ghe-2.15/search/labels.json b/routes/ghe-2.15/search/labels.json
index 3678c78b1d..b79f77c7c9 100644
--- a/routes/ghe-2.15/search/labels.json
+++ b/routes/ghe-2.15/search/labels.json
@@ -28,7 +28,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
diff --git a/routes/ghe-2.15/search/repos-legacy.json b/routes/ghe-2.15/search/repos-legacy.json
index e774b602ec..597a402aa8 100644
--- a/routes/ghe-2.15/search/repos-legacy.json
+++ b/routes/ghe-2.15/search/repos-legacy.json
@@ -29,7 +29,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.15/search/repos.json b/routes/ghe-2.15/search/repos.json
index 2190857500..e2a91efd42 100644
--- a/routes/ghe-2.15/search/repos.json
+++ b/routes/ghe-2.15/search/repos.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.15/search/users-legacy.json b/routes/ghe-2.15/search/users-legacy.json
index b0df507c18..0209968fda 100644
--- a/routes/ghe-2.15/search/users-legacy.json
+++ b/routes/ghe-2.15/search/users-legacy.json
@@ -22,7 +22,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.15/search/users.json b/routes/ghe-2.15/search/users.json
index 1a0e6ec4d9..481bf3f685 100644
--- a/routes/ghe-2.15/search/users.json
+++ b/routes/ghe-2.15/search/users.json
@@ -15,7 +15,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise. Default: [best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise.",
+ "default": "[best match](https://developer.github.com/enterprise/2.15/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
diff --git a/routes/ghe-2.15/teams.json b/routes/ghe-2.15/teams.json
index 65c1446ff0..e128da343e 100644
--- a/routes/ghe-2.15/teams.json
+++ b/routes/ghe-2.15/teams.json
@@ -193,7 +193,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
@@ -335,10 +336,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.15/teams/create.json b/routes/ghe-2.15/teams/create.json
index c41c9bc50d..0e03a583e4 100644
--- a/routes/ghe-2.15/teams/create.json
+++ b/routes/ghe-2.15/teams/create.json
@@ -49,7 +49,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
diff --git a/routes/ghe-2.15/teams/update.json b/routes/ghe-2.15/teams/update.json
index d6455725b0..1c1a200c4e 100644
--- a/routes/ghe-2.15/teams/update.json
+++ b/routes/ghe-2.15/teams/update.json
@@ -37,10 +37,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.16/activity.json b/routes/ghe-2.16/activity.json
index 194c04ac8f..82071817d9 100644
--- a/routes/ghe-2.16/activity.json
+++ b/routes/ghe-2.16/activity.json
@@ -714,7 +714,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -755,7 +756,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.16/activity/mark-as-read.json b/routes/ghe-2.16/activity/mark-as-read.json
index 79dc5a3de9..a1f0985045 100644
--- a/routes/ghe-2.16/activity/mark-as-read.json
+++ b/routes/ghe-2.16/activity/mark-as-read.json
@@ -8,7 +8,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.16/activity/mark-notifications-as-read-for-repo.json b/routes/ghe-2.16/activity/mark-notifications-as-read-for-repo.json
index 79712fbabd..269de5f69e 100644
--- a/routes/ghe-2.16/activity/mark-notifications-as-read-for-repo.json
+++ b/routes/ghe-2.16/activity/mark-notifications-as-read-for-repo.json
@@ -22,7 +22,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.16/checks.json b/routes/ghe-2.16/checks.json
index ec674cab27..e274551745 100644
--- a/routes/ghe-2.16/checks.json
+++ b/routes/ghe-2.16/checks.json
@@ -230,7 +230,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.16/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -270,7 +270,7 @@
}
}
],
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
"responses": [
{
"headers": {
@@ -583,7 +583,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/checks/create.json b/routes/ghe-2.16/checks/create.json
index 3938b574d8..4f368b3bfa 100644
--- a/routes/ghe-2.16/checks/create.json
+++ b/routes/ghe-2.16/checks/create.json
@@ -229,7 +229,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.16/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -269,7 +269,7 @@
}
}
],
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
"responses": [
{
"headers": {
diff --git a/routes/ghe-2.16/checks/update.json b/routes/ghe-2.16/checks/update.json
index 0449298110..49ada9ca49 100644
--- a/routes/ghe-2.16/checks/update.json
+++ b/routes/ghe-2.16/checks/update.json
@@ -228,7 +228,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/enterprise-admin.json b/routes/ghe-2.16/enterprise-admin.json
index 9b2124c48d..cfb160f1f6 100644
--- a/routes/ghe-2.16/enterprise-admin.json
+++ b/routes/ghe-2.16/enterprise-admin.json
@@ -257,7 +257,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -374,7 +375,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/enterprise-admin/create-global-hook.json b/routes/ghe-2.16/enterprise-admin/create-global-hook.json
index e6913a9742..a114088522 100644
--- a/routes/ghe-2.16/enterprise-admin/create-global-hook.json
+++ b/routes/ghe-2.16/enterprise-admin/create-global-hook.json
@@ -56,7 +56,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/enterprise-admin/update-global-hook.json b/routes/ghe-2.16/enterprise-admin/update-global-hook.json
index 5b4ba3a019..79e2a6f0fc 100644
--- a/routes/ghe-2.16/enterprise-admin/update-global-hook.json
+++ b/routes/ghe-2.16/enterprise-admin/update-global-hook.json
@@ -56,7 +56,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/git.json b/routes/ghe-2.16/git.json
index c94537da73..61bd2e00af 100644
--- a/routes/ghe-2.16/git.json
+++ b/routes/ghe-2.16/git.json
@@ -79,7 +79,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.16/git/create-blob.json b/routes/ghe-2.16/git/create-blob.json
index 2e98299a09..63788408a9 100644
--- a/routes/ghe-2.16/git/create-blob.json
+++ b/routes/ghe-2.16/git/create-blob.json
@@ -30,7 +30,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.16/index.json b/routes/ghe-2.16/index.json
index 300ac56736..006ec6071a 100644
--- a/routes/ghe-2.16/index.json
+++ b/routes/ghe-2.16/index.json
@@ -715,7 +715,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -756,7 +757,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -3763,7 +3765,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.16/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -3803,7 +3805,7 @@
}
}
],
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
"responses": [
{
"headers": {
@@ -4116,7 +4118,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.16/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.16/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -6062,7 +6064,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -6179,7 +6182,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -10154,7 +10158,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
@@ -18361,9 +18365,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -18479,9 +18481,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -21010,7 +21010,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
@@ -28159,7 +28160,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -28232,7 +28234,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -33405,7 +33408,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
@@ -33716,6 +33720,50 @@
"idName": "get-commit",
"documentationUrl": "https://developer.github.com/enterprise/2.16/v3/repos/commits/#get-a-single-commit"
},
+ {
+ "name": "Get the SHA-1 of a commit reference",
+ "enabledForApps": true,
+ "method": "GET",
+ "path": "/repos/:owner/:repo/commits/:ref",
+ "previews": [],
+ "params": [
+ {
+ "name": "owner",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "repo",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "ref",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ }
+ ],
+ "description": "**Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:\n\n```\napplication/vnd.github.VERSION.sha\n\n```\n\nReturns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag.\n\n",
+ "responses": [
+ {
+ "headers": {
+ "status": "200 OK"
+ }
+ }
+ ],
+ "idName": "get-commit-ref-sha",
+ "documentationUrl": "https://developer.github.com/enterprise/2.16/v3/repos/commits/#get-a-single-commit",
+ "deprecated": {
+ "date": "2019-05-22",
+ "message": "\"Get the SHA-1 of a commit reference\" will be removed. Use \"Get a single commit\" instead with media type format set to \"sha\" instead."
+ }
+ },
{
"name": "Compare two commits",
"enabledForApps": true,
@@ -34044,7 +34092,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -34110,7 +34159,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -34171,14 +34221,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -34199,7 +34251,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -34344,14 +34397,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -34372,7 +34427,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -34527,14 +34583,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -34555,7 +34613,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -34703,7 +34762,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
@@ -35133,7 +35193,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35149,7 +35209,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35164,7 +35224,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
@@ -35440,7 +35501,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35448,7 +35509,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35456,7 +35517,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -35476,7 +35537,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -36231,9 +36292,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -36365,9 +36424,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -38290,7 +38347,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -38425,7 +38483,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -39693,7 +39752,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
@@ -39759,7 +39819,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
@@ -39817,7 +39878,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
@@ -39880,7 +39942,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -39953,7 +40016,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -40030,7 +40094,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
@@ -40127,7 +40192,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
@@ -40227,7 +40293,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -40276,7 +40343,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -40516,7 +40584,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
@@ -40658,10 +40727,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.16/orgs.json b/routes/ghe-2.16/orgs.json
index 8cd1595292..87fe0e456b 100644
--- a/routes/ghe-2.16/orgs.json
+++ b/routes/ghe-2.16/orgs.json
@@ -596,9 +596,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -714,9 +712,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/orgs/create-hook.json b/routes/ghe-2.16/orgs/create-hook.json
index 26c538f77a..5f7342fcd1 100644
--- a/routes/ghe-2.16/orgs/create-hook.json
+++ b/routes/ghe-2.16/orgs/create-hook.json
@@ -58,9 +58,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/orgs/update-hook.json b/routes/ghe-2.16/orgs/update-hook.json
index f13cffabcf..679651ea67 100644
--- a/routes/ghe-2.16/orgs/update-hook.json
+++ b/routes/ghe-2.16/orgs/update-hook.json
@@ -58,9 +58,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/pulls.json b/routes/ghe-2.16/pulls.json
index 52010eb33c..5bdac47dc1 100644
--- a/routes/ghe-2.16/pulls.json
+++ b/routes/ghe-2.16/pulls.json
@@ -75,7 +75,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.16/pulls/list.json b/routes/ghe-2.16/pulls/list.json
index 24153bffa9..720da44ed3 100644
--- a/routes/ghe-2.16/pulls/list.json
+++ b/routes/ghe-2.16/pulls/list.json
@@ -74,7 +74,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.16/repos.json b/routes/ghe-2.16/repos.json
index 190747429d..b8f2a98014 100644
--- a/routes/ghe-2.16/repos.json
+++ b/routes/ghe-2.16/repos.json
@@ -59,7 +59,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -132,7 +133,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -5305,7 +5307,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
@@ -5616,6 +5619,50 @@
"idName": "get-commit",
"documentationUrl": "https://developer.github.com/enterprise/2.16/v3/repos/commits/#get-a-single-commit"
},
+ {
+ "name": "Get the SHA-1 of a commit reference",
+ "enabledForApps": true,
+ "method": "GET",
+ "path": "/repos/:owner/:repo/commits/:ref",
+ "previews": [],
+ "params": [
+ {
+ "name": "owner",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "repo",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "ref",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ }
+ ],
+ "description": "**Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:\n\n```\napplication/vnd.github.VERSION.sha\n\n```\n\nReturns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag.\n\n",
+ "responses": [
+ {
+ "headers": {
+ "status": "200 OK"
+ }
+ }
+ ],
+ "idName": "get-commit-ref-sha",
+ "documentationUrl": "https://developer.github.com/enterprise/2.16/v3/repos/commits/#get-a-single-commit",
+ "deprecated": {
+ "date": "2019-05-22",
+ "message": "\"Get the SHA-1 of a commit reference\" will be removed. Use \"Get a single commit\" instead with media type format set to \"sha\" instead."
+ }
+ },
{
"name": "Compare two commits",
"enabledForApps": true,
@@ -5944,7 +5991,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -6010,7 +6058,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -6071,14 +6120,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6099,7 +6150,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6244,14 +6296,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6272,7 +6326,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6427,14 +6482,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6455,7 +6512,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6603,7 +6661,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
@@ -7033,7 +7092,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7049,7 +7108,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7064,7 +7123,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
@@ -7340,7 +7400,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7348,7 +7408,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7356,7 +7416,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7376,7 +7436,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -8131,9 +8191,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -8265,9 +8323,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -10190,7 +10246,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -10325,7 +10382,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/repos/create-deployment-status.json b/routes/ghe-2.16/repos/create-deployment-status.json
index 14bf804b96..3117a981fb 100644
--- a/routes/ghe-2.16/repos/create-deployment-status.json
+++ b/routes/ghe-2.16/repos/create-deployment-status.json
@@ -57,7 +57,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -65,7 +65,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -73,7 +73,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -93,7 +93,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/repos/create-deployment.json b/routes/ghe-2.16/repos/create-deployment.json
index b7dfa934c1..c6ab7f944a 100644
--- a/routes/ghe-2.16/repos/create-deployment.json
+++ b/routes/ghe-2.16/repos/create-deployment.json
@@ -59,7 +59,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -75,7 +75,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -90,7 +90,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.16/repos/create-file.json b/routes/ghe-2.16/repos/create-file.json
index 83ae90a26c..e8d7ebd65a 100644
--- a/routes/ghe-2.16/repos/create-file.json
+++ b/routes/ghe-2.16/repos/create-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/repos/create-hook.json b/routes/ghe-2.16/repos/create-hook.json
index 73131c75ba..c187f3b3d5 100644
--- a/routes/ghe-2.16/repos/create-hook.json
+++ b/routes/ghe-2.16/repos/create-hook.json
@@ -66,9 +66,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/repos/create-or-update-file.json b/routes/ghe-2.16/repos/create-or-update-file.json
index 56e04327ed..c92ec1d006 100644
--- a/routes/ghe-2.16/repos/create-or-update-file.json
+++ b/routes/ghe-2.16/repos/create-or-update-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/repos/create-release.json b/routes/ghe-2.16/repos/create-release.json
index 98553da19c..9e89062c6b 100644
--- a/routes/ghe-2.16/repos/create-release.json
+++ b/routes/ghe-2.16/repos/create-release.json
@@ -29,7 +29,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/repos/delete-file.json b/routes/ghe-2.16/repos/delete-file.json
index 951991690e..1bd1732fab 100644
--- a/routes/ghe-2.16/repos/delete-file.json
+++ b/routes/ghe-2.16/repos/delete-file.json
@@ -43,7 +43,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/repos/get-contents.json b/routes/ghe-2.16/repos/get-contents.json
index 15c73158a9..5e80342692 100644
--- a/routes/ghe-2.16/repos/get-contents.json
+++ b/routes/ghe-2.16/repos/get-contents.json
@@ -29,7 +29,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
diff --git a/routes/ghe-2.16/repos/get-readme.json b/routes/ghe-2.16/repos/get-readme.json
index d18fa4c92c..ac2906545b 100644
--- a/routes/ghe-2.16/repos/get-readme.json
+++ b/routes/ghe-2.16/repos/get-readme.json
@@ -22,7 +22,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
diff --git a/routes/ghe-2.16/repos/list-commits.json b/routes/ghe-2.16/repos/list-commits.json
index 7a226f0f30..3d3e11ab00 100644
--- a/routes/ghe-2.16/repos/list-commits.json
+++ b/routes/ghe-2.16/repos/list-commits.json
@@ -22,7 +22,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
diff --git a/routes/ghe-2.16/repos/list-for-user.json b/routes/ghe-2.16/repos/list-for-user.json
index a6a136fb9e..7906c93bb8 100644
--- a/routes/ghe-2.16/repos/list-for-user.json
+++ b/routes/ghe-2.16/repos/list-for-user.json
@@ -42,7 +42,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.16/repos/list.json b/routes/ghe-2.16/repos/list.json
index 207ba64969..972192a7fc 100644
--- a/routes/ghe-2.16/repos/list.json
+++ b/routes/ghe-2.16/repos/list.json
@@ -58,7 +58,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.16/repos/update-file.json b/routes/ghe-2.16/repos/update-file.json
index 980296a567..bf1255158d 100644
--- a/routes/ghe-2.16/repos/update-file.json
+++ b/routes/ghe-2.16/repos/update-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/repos/update-hook.json b/routes/ghe-2.16/repos/update-hook.json
index 36a7fa54f4..02f50ef098 100644
--- a/routes/ghe-2.16/repos/update-hook.json
+++ b/routes/ghe-2.16/repos/update-hook.json
@@ -65,9 +65,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.16/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/repos/update-release.json b/routes/ghe-2.16/repos/update-release.json
index e217ae5009..4116691c7f 100644
--- a/routes/ghe-2.16/repos/update-release.json
+++ b/routes/ghe-2.16/repos/update-release.json
@@ -36,7 +36,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.16/search.json b/routes/ghe-2.16/search.json
index 94bbfe1d39..94eac3fbd5 100644
--- a/routes/ghe-2.16/search.json
+++ b/routes/ghe-2.16/search.json
@@ -22,7 +22,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
@@ -88,7 +89,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
@@ -146,7 +148,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
@@ -209,7 +212,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -282,7 +286,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -359,7 +364,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
@@ -456,7 +462,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
@@ -556,7 +563,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -605,7 +613,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.16/search/code.json b/routes/ghe-2.16/search/code.json
index a35408f8c4..0ce4abd067 100644
--- a/routes/ghe-2.16/search/code.json
+++ b/routes/ghe-2.16/search/code.json
@@ -15,7 +15,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
diff --git a/routes/ghe-2.16/search/commits.json b/routes/ghe-2.16/search/commits.json
index ab7ac7afc5..518920bcbf 100644
--- a/routes/ghe-2.16/search/commits.json
+++ b/routes/ghe-2.16/search/commits.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
diff --git a/routes/ghe-2.16/search/issues-and-pull-requests.json b/routes/ghe-2.16/search/issues-and-pull-requests.json
index 1fae326c90..3c36b0ce49 100644
--- a/routes/ghe-2.16/search/issues-and-pull-requests.json
+++ b/routes/ghe-2.16/search/issues-and-pull-requests.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
diff --git a/routes/ghe-2.16/search/issues.json b/routes/ghe-2.16/search/issues.json
index ea96ac3778..59aa349a2c 100644
--- a/routes/ghe-2.16/search/issues.json
+++ b/routes/ghe-2.16/search/issues.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
diff --git a/routes/ghe-2.16/search/labels.json b/routes/ghe-2.16/search/labels.json
index 60a44b655e..9517026f02 100644
--- a/routes/ghe-2.16/search/labels.json
+++ b/routes/ghe-2.16/search/labels.json
@@ -28,7 +28,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
diff --git a/routes/ghe-2.16/search/repos-legacy.json b/routes/ghe-2.16/search/repos-legacy.json
index a24f2f38cb..a92f1266b3 100644
--- a/routes/ghe-2.16/search/repos-legacy.json
+++ b/routes/ghe-2.16/search/repos-legacy.json
@@ -29,7 +29,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.16/search/repos.json b/routes/ghe-2.16/search/repos.json
index 13e31fc22a..290181fd87 100644
--- a/routes/ghe-2.16/search/repos.json
+++ b/routes/ghe-2.16/search/repos.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.16/search/users-legacy.json b/routes/ghe-2.16/search/users-legacy.json
index 07ddd7529a..da2209c6b5 100644
--- a/routes/ghe-2.16/search/users-legacy.json
+++ b/routes/ghe-2.16/search/users-legacy.json
@@ -22,7 +22,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.16/search/users.json b/routes/ghe-2.16/search/users.json
index fb90df9c8e..c301f27df4 100644
--- a/routes/ghe-2.16/search/users.json
+++ b/routes/ghe-2.16/search/users.json
@@ -15,7 +15,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server.",
+ "default": "[best match](https://developer.github.com/enterprise/2.16/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
diff --git a/routes/ghe-2.16/teams.json b/routes/ghe-2.16/teams.json
index f40f13ac3d..0f8f14de3d 100644
--- a/routes/ghe-2.16/teams.json
+++ b/routes/ghe-2.16/teams.json
@@ -193,7 +193,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
@@ -335,10 +336,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.16/teams/create.json b/routes/ghe-2.16/teams/create.json
index a1c907a477..ee6142d7ed 100644
--- a/routes/ghe-2.16/teams/create.json
+++ b/routes/ghe-2.16/teams/create.json
@@ -49,7 +49,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
diff --git a/routes/ghe-2.16/teams/update.json b/routes/ghe-2.16/teams/update.json
index 09432f3b9f..c5195cb38e 100644
--- a/routes/ghe-2.16/teams/update.json
+++ b/routes/ghe-2.16/teams/update.json
@@ -37,10 +37,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.17/activity.json b/routes/ghe-2.17/activity.json
index c4a068a70c..65015646f0 100644
--- a/routes/ghe-2.17/activity.json
+++ b/routes/ghe-2.17/activity.json
@@ -714,7 +714,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -755,7 +756,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.17/activity/mark-as-read.json b/routes/ghe-2.17/activity/mark-as-read.json
index 3686732053..bf726f6773 100644
--- a/routes/ghe-2.17/activity/mark-as-read.json
+++ b/routes/ghe-2.17/activity/mark-as-read.json
@@ -8,7 +8,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.17/activity/mark-notifications-as-read-for-repo.json b/routes/ghe-2.17/activity/mark-notifications-as-read-for-repo.json
index db4444f0af..4135651b8a 100644
--- a/routes/ghe-2.17/activity/mark-notifications-as-read-for-repo.json
+++ b/routes/ghe-2.17/activity/mark-notifications-as-read-for-repo.json
@@ -22,7 +22,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.17/checks.json b/routes/ghe-2.17/checks.json
index 45add1bfde..7eade3b17a 100644
--- a/routes/ghe-2.17/checks.json
+++ b/routes/ghe-2.17/checks.json
@@ -230,7 +230,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.17/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -270,7 +270,7 @@
}
}
],
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
"responses": [
{
"headers": {
@@ -583,7 +583,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/checks/create.json b/routes/ghe-2.17/checks/create.json
index 865c82e20c..1292adeb8c 100644
--- a/routes/ghe-2.17/checks/create.json
+++ b/routes/ghe-2.17/checks/create.json
@@ -229,7 +229,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.17/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -269,7 +269,7 @@
}
}
],
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
"responses": [
{
"headers": {
diff --git a/routes/ghe-2.17/checks/update.json b/routes/ghe-2.17/checks/update.json
index a483203d54..8093a33581 100644
--- a/routes/ghe-2.17/checks/update.json
+++ b/routes/ghe-2.17/checks/update.json
@@ -228,7 +228,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/enterprise-admin.json b/routes/ghe-2.17/enterprise-admin.json
index f083aedd34..7c9052c5ea 100644
--- a/routes/ghe-2.17/enterprise-admin.json
+++ b/routes/ghe-2.17/enterprise-admin.json
@@ -257,7 +257,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -374,7 +375,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/enterprise-admin/create-global-hook.json b/routes/ghe-2.17/enterprise-admin/create-global-hook.json
index 0cef550d56..c951bf1f6b 100644
--- a/routes/ghe-2.17/enterprise-admin/create-global-hook.json
+++ b/routes/ghe-2.17/enterprise-admin/create-global-hook.json
@@ -56,7 +56,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/enterprise-admin/update-global-hook.json b/routes/ghe-2.17/enterprise-admin/update-global-hook.json
index 0bb0b45d67..02b603bebc 100644
--- a/routes/ghe-2.17/enterprise-admin/update-global-hook.json
+++ b/routes/ghe-2.17/enterprise-admin/update-global-hook.json
@@ -56,7 +56,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/git.json b/routes/ghe-2.17/git.json
index d1cdb4a9aa..1e43384ab4 100644
--- a/routes/ghe-2.17/git.json
+++ b/routes/ghe-2.17/git.json
@@ -79,7 +79,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.17/git/create-blob.json b/routes/ghe-2.17/git/create-blob.json
index f8c1139730..4118664cdb 100644
--- a/routes/ghe-2.17/git/create-blob.json
+++ b/routes/ghe-2.17/git/create-blob.json
@@ -30,7 +30,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.17/index.json b/routes/ghe-2.17/index.json
index 8a2a0d1e4a..b061098499 100644
--- a/routes/ghe-2.17/index.json
+++ b/routes/ghe-2.17/index.json
@@ -715,7 +715,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -756,7 +757,8 @@
{
"name": "last_read_at",
"type": "string",
- "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: current date/time",
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",
+ "default": "",
"required": false,
"location": "body"
}
@@ -3947,7 +3949,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/enterprise/2.17/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -3987,7 +3989,7 @@
}
}
],
- "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nTo learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.",
"responses": [
{
"headers": {
@@ -4300,7 +4302,7 @@
{
"name": "actions",
"type": "object[]",
- "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/enterprise/2.17/v3/checks/runs/#check-runs-and-requested-actions).\"",
+ "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/enterprise/2.17/v3/checks/runs/#actions-object) description.",
"required": false,
"location": "body"
},
@@ -6250,7 +6252,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -6367,7 +6370,8 @@
{
"name": "events",
"type": "string[]",
- "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events. Default: `user` and `organization`.",
+ "description": "The [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) that trigger this webhook. A global webhook can be triggered by `user` and `organization` events.",
+ "default": "`user` and `organization`",
"required": false,
"location": "body"
},
@@ -10439,7 +10443,7 @@
"name": "encoding",
"type": "string",
"description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.",
- "default": "utf-8",
+ "default": "\"utf-8\"",
"required": false,
"location": "body"
}
@@ -18649,9 +18653,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -18767,9 +18769,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -21497,7 +21497,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
@@ -28817,7 +28818,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -28890,7 +28892,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -28966,7 +28969,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "when using `full_name`: `asc`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -34098,7 +34102,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
@@ -34409,6 +34414,50 @@
"idName": "get-commit",
"documentationUrl": "https://developer.github.com/enterprise/2.17/v3/repos/commits/#get-a-single-commit"
},
+ {
+ "name": "Get the SHA-1 of a commit reference",
+ "enabledForApps": true,
+ "method": "GET",
+ "path": "/repos/:owner/:repo/commits/:ref",
+ "previews": [],
+ "params": [
+ {
+ "name": "owner",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "repo",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "ref",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ }
+ ],
+ "description": "**Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:\n\n```\napplication/vnd.github.VERSION.sha\n\n```\n\nReturns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag.\n\n",
+ "responses": [
+ {
+ "headers": {
+ "status": "200 OK"
+ }
+ }
+ ],
+ "idName": "get-commit-ref-sha",
+ "documentationUrl": "https://developer.github.com/enterprise/2.17/v3/repos/commits/#get-a-single-commit",
+ "deprecated": {
+ "date": "2019-05-22",
+ "message": "\"Get the SHA-1 of a commit reference\" will be removed. Use \"Get a single commit\" instead with media type format set to \"sha\" instead."
+ }
+ },
{
"name": "Compare two commits",
"enabledForApps": true,
@@ -35343,7 +35392,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -35409,7 +35459,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -35470,14 +35521,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -35498,7 +35551,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -35643,14 +35697,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -35671,7 +35727,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -35826,14 +35883,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -35854,7 +35913,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -36002,7 +36062,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
@@ -36432,7 +36493,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -36448,7 +36509,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -36463,7 +36524,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
@@ -36739,7 +36801,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -36747,7 +36809,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -36755,7 +36817,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -36775,7 +36837,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -37532,9 +37594,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -37666,9 +37726,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -39720,7 +39778,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -39855,7 +39914,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -41123,7 +41183,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
@@ -41189,7 +41250,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
@@ -41247,7 +41309,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
@@ -41310,7 +41373,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -41383,7 +41447,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -41460,7 +41525,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
@@ -41557,7 +41623,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
@@ -41657,7 +41724,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -41706,7 +41774,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -42026,7 +42095,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
@@ -42168,10 +42238,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.17/orgs.json b/routes/ghe-2.17/orgs.json
index 93c26223a2..27ba3467ad 100644
--- a/routes/ghe-2.17/orgs.json
+++ b/routes/ghe-2.17/orgs.json
@@ -596,9 +596,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -714,9 +712,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/orgs/create-hook.json b/routes/ghe-2.17/orgs/create-hook.json
index 912ee35413..bd71370c69 100644
--- a/routes/ghe-2.17/orgs/create-hook.json
+++ b/routes/ghe-2.17/orgs/create-hook.json
@@ -58,9 +58,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/orgs/update-hook.json b/routes/ghe-2.17/orgs/update-hook.json
index 00e798adaf..2c9bb4ee5a 100644
--- a/routes/ghe-2.17/orgs/update-hook.json
+++ b/routes/ghe-2.17/orgs/update-hook.json
@@ -58,9 +58,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/pulls.json b/routes/ghe-2.17/pulls.json
index d8a921976c..026869c04d 100644
--- a/routes/ghe-2.17/pulls.json
+++ b/routes/ghe-2.17/pulls.json
@@ -80,7 +80,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.17/pulls/list.json b/routes/ghe-2.17/pulls/list.json
index 71d4d38c1e..1c55399dd3 100644
--- a/routes/ghe-2.17/pulls/list.json
+++ b/routes/ghe-2.17/pulls/list.json
@@ -79,7 +79,8 @@
{
"name": "direction",
"type": "string",
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
+ "description": "The direction of the sort. Can be either `asc` or `desc`.",
+ "default": "`desc` when sort is `created` or sort is not specified, otherwise `asc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.17/repos.json b/routes/ghe-2.17/repos.json
index c13d84032f..8685d96b23 100644
--- a/routes/ghe-2.17/repos.json
+++ b/routes/ghe-2.17/repos.json
@@ -59,7 +59,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -132,7 +133,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -208,7 +210,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "when using `full_name`: `asc`, otherwise `desc`",
"required": false,
"enum": [
"asc",
@@ -5340,7 +5343,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
@@ -5651,6 +5655,50 @@
"idName": "get-commit",
"documentationUrl": "https://developer.github.com/enterprise/2.17/v3/repos/commits/#get-a-single-commit"
},
+ {
+ "name": "Get the SHA-1 of a commit reference",
+ "enabledForApps": true,
+ "method": "GET",
+ "path": "/repos/:owner/:repo/commits/:ref",
+ "previews": [],
+ "params": [
+ {
+ "name": "owner",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "repo",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ },
+ {
+ "name": "ref",
+ "type": "string",
+ "required": true,
+ "description": "",
+ "location": "url"
+ }
+ ],
+ "description": "**Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:\n\n```\napplication/vnd.github.VERSION.sha\n\n```\n\nReturns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag.\n\n",
+ "responses": [
+ {
+ "headers": {
+ "status": "200 OK"
+ }
+ }
+ ],
+ "idName": "get-commit-ref-sha",
+ "documentationUrl": "https://developer.github.com/enterprise/2.17/v3/repos/commits/#get-a-single-commit",
+ "deprecated": {
+ "date": "2019-05-22",
+ "message": "\"Get the SHA-1 of a commit reference\" will be removed. Use \"Get a single commit\" instead with media type format set to \"sha\" instead."
+ }
+ },
{
"name": "Compare two commits",
"enabledForApps": true,
@@ -6585,7 +6633,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -6651,7 +6700,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
@@ -6712,14 +6762,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6740,7 +6792,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -6885,14 +6938,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -6913,7 +6968,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -7068,14 +7124,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -7096,7 +7154,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
@@ -7244,7 +7303,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
@@ -7674,7 +7734,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7690,7 +7750,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7705,7 +7765,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
@@ -7981,7 +8042,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7989,7 +8050,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -7997,7 +8058,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -8017,7 +8078,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -8774,9 +8835,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -8908,9 +8967,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
@@ -10962,7 +11019,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
@@ -11097,7 +11155,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/repos/create-deployment-status.json b/routes/ghe-2.17/repos/create-deployment-status.json
index 453558ed69..b5bdfb0bf2 100644
--- a/routes/ghe-2.17/repos/create-deployment-status.json
+++ b/routes/ghe-2.17/repos/create-deployment-status.json
@@ -57,7 +57,7 @@
"name": "target_url",
"type": "string",
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -65,7 +65,7 @@
"name": "log_url",
"type": "string",
"description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -73,7 +73,7 @@
"name": "description",
"type": "string",
"description": "A short description of the status. The maximum description length is 140 characters.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -93,7 +93,7 @@
"name": "environment_url",
"type": "string",
"description": "Sets the URL for accessing your environment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/repos/create-deployment.json b/routes/ghe-2.17/repos/create-deployment.json
index 4116a61cfa..0287776bd7 100644
--- a/routes/ghe-2.17/repos/create-deployment.json
+++ b/routes/ghe-2.17/repos/create-deployment.json
@@ -59,7 +59,7 @@
"name": "payload",
"type": "string",
"description": "JSON payload with extra information about the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -75,7 +75,7 @@
"name": "description",
"type": "string",
"description": "Short description of the deployment.",
- "default": "",
+ "default": "\"\"",
"required": false,
"location": "body"
},
@@ -90,7 +90,8 @@
{
"name": "production_environment",
"type": "boolean",
- "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.",
+ "description": "Specifies if the given environment is one that end-users directly interact with.",
+ "default": "`true` when `environment` is `production` and `false` otherwise",
"required": false,
"location": "body"
}
diff --git a/routes/ghe-2.17/repos/create-file.json b/routes/ghe-2.17/repos/create-file.json
index 50ead882d0..98e180c79c 100644
--- a/routes/ghe-2.17/repos/create-file.json
+++ b/routes/ghe-2.17/repos/create-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/repos/create-hook.json b/routes/ghe-2.17/repos/create-hook.json
index b311152002..a593afc2ec 100644
--- a/routes/ghe-2.17/repos/create-hook.json
+++ b/routes/ghe-2.17/repos/create-hook.json
@@ -66,9 +66,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/repos/create-or-update-file.json b/routes/ghe-2.17/repos/create-or-update-file.json
index a18c118ada..3480fab747 100644
--- a/routes/ghe-2.17/repos/create-or-update-file.json
+++ b/routes/ghe-2.17/repos/create-or-update-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/repos/create-release.json b/routes/ghe-2.17/repos/create-release.json
index 6639e105d7..e0588f83f5 100644
--- a/routes/ghe-2.17/repos/create-release.json
+++ b/routes/ghe-2.17/repos/create-release.json
@@ -29,7 +29,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/repos/delete-file.json b/routes/ghe-2.17/repos/delete-file.json
index df2d8e925d..cf937148b3 100644
--- a/routes/ghe-2.17/repos/delete-file.json
+++ b/routes/ghe-2.17/repos/delete-file.json
@@ -43,7 +43,8 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/repos/get-contents.json b/routes/ghe-2.17/repos/get-contents.json
index d91561adab..e5803b4c69 100644
--- a/routes/ghe-2.17/repos/get-contents.json
+++ b/routes/ghe-2.17/repos/get-contents.json
@@ -29,7 +29,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
diff --git a/routes/ghe-2.17/repos/get-readme.json b/routes/ghe-2.17/repos/get-readme.json
index 00d054b648..e3f06c0415 100644
--- a/routes/ghe-2.17/repos/get-readme.json
+++ b/routes/ghe-2.17/repos/get-readme.json
@@ -22,7 +22,8 @@
{
"name": "ref",
"type": "string",
- "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)",
+ "description": "The name of the commit/branch/tag.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "query"
}
diff --git a/routes/ghe-2.17/repos/list-commits.json b/routes/ghe-2.17/repos/list-commits.json
index 06574367ec..71ccecc1bb 100644
--- a/routes/ghe-2.17/repos/list-commits.json
+++ b/routes/ghe-2.17/repos/list-commits.json
@@ -22,7 +22,8 @@
{
"name": "sha",
"type": "string",
- "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).",
+ "description": "SHA or branch to start listing commits from.",
+ "default": "the repository’s default branch (usually `master`).",
"required": false,
"location": "query"
},
diff --git a/routes/ghe-2.17/repos/list-for-org.json b/routes/ghe-2.17/repos/list-for-org.json
index 2776eed8da..9e60396a49 100644
--- a/routes/ghe-2.17/repos/list-for-org.json
+++ b/routes/ghe-2.17/repos/list-for-org.json
@@ -45,7 +45,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "when using `full_name`: `asc`, otherwise `desc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.17/repos/list-for-user.json b/routes/ghe-2.17/repos/list-for-user.json
index 9cc64f246e..c66af4d3d4 100644
--- a/routes/ghe-2.17/repos/list-for-user.json
+++ b/routes/ghe-2.17/repos/list-for-user.json
@@ -42,7 +42,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.17/repos/list.json b/routes/ghe-2.17/repos/list.json
index fd1cc17ec9..4c3d1632d6 100644
--- a/routes/ghe-2.17/repos/list.json
+++ b/routes/ghe-2.17/repos/list.json
@@ -58,7 +58,8 @@
{
"name": "direction",
"type": "string",
- "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`",
+ "description": "Can be one of `asc` or `desc`.",
+ "default": "`asc` when using `full_name`, otherwise `desc`",
"required": false,
"enum": [
"asc",
diff --git a/routes/ghe-2.17/repos/update-file.json b/routes/ghe-2.17/repos/update-file.json
index c1dd6f5167..afae704b4f 100644
--- a/routes/ghe-2.17/repos/update-file.json
+++ b/routes/ghe-2.17/repos/update-file.json
@@ -50,14 +50,16 @@
{
"name": "branch",
"type": "string",
- "description": "The branch name. Default: the repository’s default branch (usually `master`)",
+ "description": "The branch name.",
+ "default": "the repository’s default branch (usually `master`)",
"required": false,
"location": "body"
},
{
"name": "committer",
"type": "object",
- "description": "The person that committed the file. Default: the authenticated user.",
+ "description": "The person that committed the file.",
+ "default": "the authenticated user.",
"required": false,
"location": "body"
},
@@ -78,7 +80,8 @@
{
"name": "author",
"type": "object",
- "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.",
+ "description": "The author of the file.",
+ "default": "The `committer` or the authenticated user if you omit `committer`.",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/repos/update-hook.json b/routes/ghe-2.17/repos/update-hook.json
index 6336c08df8..ad4c4e3841 100644
--- a/routes/ghe-2.17/repos/update-hook.json
+++ b/routes/ghe-2.17/repos/update-hook.json
@@ -65,9 +65,7 @@
"name": "events",
"type": "string[]",
"description": "Determines what [events](https://developer.github.com/enterprise/2.17/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.",
- "default": [
- "push"
- ],
+ "default": "[\"push\"]",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/repos/update-release.json b/routes/ghe-2.17/repos/update-release.json
index 49c0d56e22..fb4f636f24 100644
--- a/routes/ghe-2.17/repos/update-release.json
+++ b/routes/ghe-2.17/repos/update-release.json
@@ -36,7 +36,8 @@
{
"name": "target_commitish",
"type": "string",
- "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).",
+ "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.",
+ "default": "the repository's default branch (usually `master`).",
"required": false,
"location": "body"
},
diff --git a/routes/ghe-2.17/search.json b/routes/ghe-2.17/search.json
index 0b2e7502c4..2a7f904862 100644
--- a/routes/ghe-2.17/search.json
+++ b/routes/ghe-2.17/search.json
@@ -22,7 +22,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
@@ -88,7 +89,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
@@ -146,7 +148,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
@@ -209,7 +212,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -282,7 +286,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
@@ -359,7 +364,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
@@ -456,7 +462,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
@@ -556,7 +563,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
@@ -605,7 +613,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.17/search/code.json b/routes/ghe-2.17/search/code.json
index 308e9e25ee..a1b34999b7 100644
--- a/routes/ghe-2.17/search/code.json
+++ b/routes/ghe-2.17/search/code.json
@@ -15,7 +15,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Server search infrastructure.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"indexed"
diff --git a/routes/ghe-2.17/search/commits.json b/routes/ghe-2.17/search/commits.json
index b13a4ad65a..901f8addbf 100644
--- a/routes/ghe-2.17/search/commits.json
+++ b/routes/ghe-2.17/search/commits.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by `author-date` or `committer-date`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"author-date",
diff --git a/routes/ghe-2.17/search/issues-and-pull-requests.json b/routes/ghe-2.17/search/issues-and-pull-requests.json
index b114bee036..a0c84d07dc 100644
--- a/routes/ghe-2.17/search/issues-and-pull-requests.json
+++ b/routes/ghe-2.17/search/issues-and-pull-requests.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
diff --git a/routes/ghe-2.17/search/issues.json b/routes/ghe-2.17/search/issues.json
index efd754f0cc..6b49860ec5 100644
--- a/routes/ghe-2.17/search/issues.json
+++ b/routes/ghe-2.17/search/issues.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`,",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"comments",
diff --git a/routes/ghe-2.17/search/labels.json b/routes/ghe-2.17/search/labels.json
index 28f51f0453..681338c54d 100644
--- a/routes/ghe-2.17/search/labels.json
+++ b/routes/ghe-2.17/search/labels.json
@@ -28,7 +28,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by when the label was `created` or `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"created",
diff --git a/routes/ghe-2.17/search/repos-legacy.json b/routes/ghe-2.17/search/repos-legacy.json
index 533676dcab..2f931266b3 100644
--- a/routes/ghe-2.17/search/repos-legacy.json
+++ b/routes/ghe-2.17/search/repos-legacy.json
@@ -29,7 +29,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.17/search/repos.json b/routes/ghe-2.17/search/repos.json
index 44bb5e383d..e40a7f176e 100644
--- a/routes/ghe-2.17/search/repos.json
+++ b/routes/ghe-2.17/search/repos.json
@@ -21,7 +21,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.17/search/users-legacy.json b/routes/ghe-2.17/search/users-legacy.json
index 67021c0abf..3abedb2a5a 100644
--- a/routes/ghe-2.17/search/users-legacy.json
+++ b/routes/ghe-2.17/search/users-legacy.json
@@ -22,7 +22,8 @@
{
"name": "sort",
"type": "string",
- "description": "The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match.",
+ "description": "The sort field. One of `stars`, `forks`, or `updated`.",
+ "default": "results are sorted by best match.",
"required": false,
"enum": [
"stars",
diff --git a/routes/ghe-2.17/search/users.json b/routes/ghe-2.17/search/users.json
index 6ab9b360fc..f076507277 100644
--- a/routes/ghe-2.17/search/users.json
+++ b/routes/ghe-2.17/search/users.json
@@ -15,7 +15,8 @@
{
"name": "sort",
"type": "string",
- "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server. Default: [best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
+ "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub Enterprise Server.",
+ "default": "[best match](https://developer.github.com/enterprise/2.17/v3/search/#ranking-search-results)",
"required": false,
"enum": [
"followers",
diff --git a/routes/ghe-2.17/teams.json b/routes/ghe-2.17/teams.json
index 3fd05cf497..c513ad8274 100644
--- a/routes/ghe-2.17/teams.json
+++ b/routes/ghe-2.17/teams.json
@@ -273,7 +273,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
@@ -415,10 +416,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{
diff --git a/routes/ghe-2.17/teams/create.json b/routes/ghe-2.17/teams/create.json
index 44133cab37..0f8d81273b 100644
--- a/routes/ghe-2.17/teams/create.json
+++ b/routes/ghe-2.17/teams/create.json
@@ -49,7 +49,8 @@
{
"name": "privacy",
"type": "string",
- "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.",
+ "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** ",
+ "default": "secret",
"required": false,
"enum": [
"secret",
diff --git a/routes/ghe-2.17/teams/update.json b/routes/ghe-2.17/teams/update.json
index 9e7c85d4c9..9ab7e6f7d0 100644
--- a/routes/ghe-2.17/teams/update.json
+++ b/routes/ghe-2.17/teams/update.json
@@ -37,10 +37,6 @@
"type": "string",
"description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.",
"required": false,
- "enum": [
- "secret",
- "closed"
- ],
"location": "body"
},
{