Skip to content

Commit b5b27a9

Browse files
docs-botsunbrye
andauthored
Update OpenAPI Description (#60633)
Co-authored-by: Sunbrye Ly <56200261+sunbrye@users.noreply.github.com>
1 parent fca1c8e commit b5b27a9

File tree

28 files changed

+5415
-351
lines changed

28 files changed

+5415
-351
lines changed

src/github-apps/lib/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@
6060
"2022-11-28"
6161
]
6262
},
63-
"sha": "c8a7d24eac4f40d797db33e85d5aa1480b163c27"
63+
"sha": "758e5523c8b6082bdd547cef042b884229a0355c"
6464
}

src/rest/data/fpt-2022-11-28/agent-tasks.json

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@
8585
"name": "is_archived",
8686
"in": "query",
8787
"schema": {
88-
"type": "boolean"
88+
"type": "boolean",
89+
"default": false
8990
},
90-
"description": "<p>Filter by archived status. When <code>true</code>, returns only archived tasks. When <code>false</code>, returns only non-archived tasks.</p>"
91+
"description": "<p>Filter by archived status. When <code>true</code>, returns only archived tasks. When <code>false</code> or omitted, returns only non-archived tasks. Defaults to <code>false</code>.</p>"
9192
},
9293
{
9394
"name": "since",
@@ -108,7 +109,7 @@
108109
}
109110
],
110111
"bodyParameters": [],
111-
"descriptionHTML": "<p>Returns a list of tasks for a specific repository</p>",
112+
"descriptionHTML": "<div class=\"ghd-alert ghd-alert-accent\" data-container=\"alert\"><p class=\"ghd-alert-title\"><svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon mr-2\" aria-hidden><path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"></path></svg>Note</p>\n<p>\nThis endpoint is in public preview and is subject to change.</p>\n</div>\n<p>Returns a list of tasks for a specific repository</p>",
112113
"codeExamples": [
113114
{
114115
"request": {
@@ -451,7 +452,7 @@
451452
{
452453
"type": "string",
453454
"name": "model",
454-
"description": "<p>Model identifier</p>"
455+
"description": "<p>The model to use for this task. The allowed models may change over time and depend on the user's GitHub Copilot plan and organization policies. Currently supported values: <code>claude-sonnet-4.6</code>, <code>claude-opus-4.6</code>, <code>gpt-5.2-codex</code>, <code>gpt-5.3-codex</code>, <code>gpt-5.4</code>, <code>claude-sonnet-4.5</code>, <code>claude-opus-4.5</code></p>"
455456
},
456457
{
457458
"type": "string",
@@ -467,24 +468,9 @@
467468
"type": "string",
468469
"name": "base_ref",
469470
"description": "<p>Base ref for new branch/PR</p>"
470-
},
471-
{
472-
"type": "string",
473-
"name": "event_type",
474-
"description": "<p>Type of event</p>"
475-
},
476-
{
477-
"type": "string",
478-
"name": "event_url",
479-
"description": "<p>URL of the triggering event</p>"
480-
},
481-
{
482-
"type": "array of strings",
483-
"name": "event_identifiers",
484-
"description": "<p>Identifiers for tracking</p>"
485471
}
486472
],
487-
"descriptionHTML": "<p>Creates a new task for a repository</p>",
473+
"descriptionHTML": "<div class=\"ghd-alert ghd-alert-accent\" data-container=\"alert\"><p class=\"ghd-alert-title\"><svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon mr-2\" aria-hidden><path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"></path></svg>Note</p>\n<p>\nThis endpoint is in public preview and is subject to change.</p>\n</div>\n<p>Creates a new task for a repository</p>",
488474
"codeExamples": [
489475
{
490476
"request": {
@@ -784,7 +770,7 @@
784770
}
785771
],
786772
"bodyParameters": [],
787-
"descriptionHTML": "<p>Returns a task by ID scoped to an owner/repo path</p>",
773+
"descriptionHTML": "<div class=\"ghd-alert ghd-alert-accent\" data-container=\"alert\"><p class=\"ghd-alert-title\"><svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon mr-2\" aria-hidden><path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"></path></svg>Note</p>\n<p>\nThis endpoint is in public preview and is subject to change.</p>\n</div>\n<p>Returns a task by ID scoped to an owner/repo path</p>",
788774
"codeExamples": [
789775
{
790776
"request": {
@@ -1325,9 +1311,10 @@
13251311
"name": "is_archived",
13261312
"in": "query",
13271313
"schema": {
1328-
"type": "boolean"
1314+
"type": "boolean",
1315+
"default": false
13291316
},
1330-
"description": "<p>Filter by archived status. When <code>true</code>, returns only archived tasks. When <code>false</code>, returns only non-archived tasks.</p>"
1317+
"description": "<p>Filter by archived status. When <code>true</code>, returns only archived tasks. When <code>false</code> or omitted, returns only non-archived tasks. Defaults to <code>false</code>.</p>"
13311318
},
13321319
{
13331320
"name": "since",
@@ -1340,7 +1327,7 @@
13401327
}
13411328
],
13421329
"bodyParameters": [],
1343-
"descriptionHTML": "<p>Returns a list of tasks for the authenticated user</p>",
1330+
"descriptionHTML": "<div class=\"ghd-alert ghd-alert-accent\" data-container=\"alert\"><p class=\"ghd-alert-title\"><svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon mr-2\" aria-hidden><path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"></path></svg>Note</p>\n<p>\nThis endpoint is in public preview and is subject to change.</p>\n</div>\n<p>Returns a list of tasks for the authenticated user</p>",
13441331
"codeExamples": [
13451332
{
13461333
"request": {
@@ -1645,7 +1632,7 @@
16451632
}
16461633
],
16471634
"bodyParameters": [],
1648-
"descriptionHTML": "<p>Returns a task by ID with its associated sessions</p>",
1635+
"descriptionHTML": "<div class=\"ghd-alert ghd-alert-accent\" data-container=\"alert\"><p class=\"ghd-alert-title\"><svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon mr-2\" aria-hidden><path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"></path></svg>Note</p>\n<p>\nThis endpoint is in public preview and is subject to change.</p>\n</div>\n<p>Returns a task by ID with its associated sessions</p>",
16491636
"codeExamples": [
16501637
{
16511638
"request": {

src/rest/data/fpt-2022-11-28/dependabot.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
"type": "string"
1818
}
1919
},
20+
{
21+
"name": "classification",
22+
"in": "query",
23+
"description": "<p>A comma-separated list of vulnerability classifications. If specified, only alerts for vulnerabilities with these classifications will be returned.</p>\n<p>Can be: <code>malware</code>, <code>general</code></p>",
24+
"schema": {
25+
"type": "string"
26+
}
27+
},
2028
{
2129
"name": "state",
2230
"in": "query",
@@ -782,6 +790,15 @@
782790
"critical"
783791
]
784792
},
793+
"classification": {
794+
"type": "string",
795+
"description": "The classification of the advisory.",
796+
"readOnly": true,
797+
"enum": [
798+
"general",
799+
"malware"
800+
]
801+
},
785802
"cvss": {
786803
"type": "object",
787804
"description": "Details for the advisory pertaining to the Common Vulnerability Scoring System.",
@@ -1877,6 +1894,14 @@
18771894
"type": "string"
18781895
}
18791896
},
1897+
{
1898+
"name": "classification",
1899+
"in": "query",
1900+
"description": "<p>A comma-separated list of vulnerability classifications. If specified, only alerts for vulnerabilities with these classifications will be returned.</p>\n<p>Can be: <code>malware</code>, <code>general</code></p>",
1901+
"schema": {
1902+
"type": "string"
1903+
}
1904+
},
18801905
{
18811906
"name": "state",
18821907
"in": "query",
@@ -2667,6 +2692,15 @@
26672692
"critical"
26682693
]
26692694
},
2695+
"classification": {
2696+
"type": "string",
2697+
"description": "The classification of the advisory.",
2698+
"readOnly": true,
2699+
"enum": [
2700+
"general",
2701+
"malware"
2702+
]
2703+
},
26702704
"cvss": {
26712705
"type": "object",
26722706
"description": "Details for the advisory pertaining to the Common Vulnerability Scoring System.",
@@ -3779,6 +3813,14 @@
37793813
"type": "string"
37803814
}
37813815
},
3816+
{
3817+
"name": "classification",
3818+
"in": "query",
3819+
"description": "<p>A comma-separated list of vulnerability classifications. If specified, only alerts for vulnerabilities with these classifications will be returned.</p>\n<p>Can be: <code>malware</code>, <code>general</code></p>",
3820+
"schema": {
3821+
"type": "string"
3822+
}
3823+
},
37823824
{
37833825
"name": "state",
37843826
"in": "query",
@@ -4419,6 +4461,15 @@
44194461
"critical"
44204462
]
44214463
},
4464+
"classification": {
4465+
"type": "string",
4466+
"description": "The classification of the advisory.",
4467+
"readOnly": true,
4468+
"enum": [
4469+
"general",
4470+
"malware"
4471+
]
4472+
},
44224473
"cvss": {
44234474
"type": "object",
44244475
"description": "Details for the advisory pertaining to the Common Vulnerability Scoring System.",
@@ -5536,6 +5587,15 @@
55365587
"critical"
55375588
]
55385589
},
5590+
"classification": {
5591+
"type": "string",
5592+
"description": "The classification of the advisory.",
5593+
"readOnly": true,
5594+
"enum": [
5595+
"general",
5596+
"malware"
5597+
]
5598+
},
55395599
"cvss": {
55405600
"type": "object",
55415601
"description": "Details for the advisory pertaining to the Common Vulnerability Scoring System.",
@@ -6671,6 +6731,15 @@
66716731
"critical"
66726732
]
66736733
},
6734+
"classification": {
6735+
"type": "string",
6736+
"description": "The classification of the advisory.",
6737+
"readOnly": true,
6738+
"enum": [
6739+
"general",
6740+
"malware"
6741+
]
6742+
},
66746743
"cvss": {
66756744
"type": "object",
66766745
"description": "Details for the advisory pertaining to the Common Vulnerability Scoring System.",

src/rest/data/fpt-2022-11-28/search.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
}
6464
],
6565
"bodyParameters": [],
66-
"descriptionHTML": "<p>Searches for query terms inside of a file. This method returns up to 100 results <a href=\"https://docs.github.com/rest/guides/using-pagination-in-the-rest-api\">per page</a>.</p>\n<p>When searching for code, you can get text match metadata for the file <strong>content</strong> and file <strong>path</strong> fields when you pass the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/rest/search/search#text-match-metadata\">Text match metadata</a>.</p>\n<p>For example, if you want to find the definition of the <code>addClass</code> function inside <a href=\"https://github.com/jquery/jquery\">jQuery</a> repository, your query would look something like this:</p>\n<p><code>q=addClass+in:file+language:js+repo:jquery/jquery</code></p>\n<p>This query searches for the keyword <code>addClass</code> within a file's contents. The query limits the search to files where the language is JavaScript in the <code>jquery/jquery</code> repository.</p>\n<p>Considerations for code search:</p>\n<p>Due to the complexity of searching code, there are a few restrictions on how searches are performed:</p>\n<ul>\n<li>Only the <em>default branch</em> is considered. In most cases, this will be the <code>master</code> branch.</li>\n<li>Only files smaller than 384 KB are searchable.</li>\n<li>You must always include at least one search term when searching source code. For example, searching for <a href=\"https://github.com/search?utf8=%E2%9C%93&#x26;q=language%3Ago&#x26;type=Code\"><code>language:go</code></a> is not valid, while <a href=\"https://github.com/search?utf8=%E2%9C%93&#x26;q=amazing+language%3Ago&#x26;type=Code\"><code>amazing language:go</code></a> is.</li>\n</ul>\n<p>This endpoint requires you to authenticate and limits you to 10 requests per minute.</p>",
66+
"descriptionHTML": "<p>Searches for query terms inside of a file. This method returns up to 100 results <a href=\"https://docs.github.com/rest/guides/using-pagination-in-the-rest-api\">per page</a>.</p>\n<p>When searching for code, you can get text match metadata for the file <strong>content</strong> and file <strong>path</strong> fields when you pass the <code>text-match</code> media type. For more details about how to receive highlighted search results, see <a href=\"https://docs.github.com/rest/search/search#text-match-metadata\">Text match metadata</a>.</p>\n<p>For example, if you want to find the definition of the <code>addClass</code> function inside <a href=\"https://github.com/jquery/jquery\">jQuery</a> repository, your query would look something like this:</p>\n<p><code>q=addClass+in:file+language:js+repo:jquery/jquery</code></p>\n<p>This query searches for the keyword <code>addClass</code> within a file's contents. The query limits the search to files where the language is JavaScript in the <code>jquery/jquery</code> repository.</p>\n<p>Considerations for code search:</p>\n<p>Due to the complexity of searching code, there are a few restrictions on how searches are performed:</p>\n<ul>\n<li>Only the <em>default branch</em> is considered. In most cases, this will be the <code>master</code> branch.</li>\n<li>Only files smaller than 384 KB are searchable.</li>\n<li>You must always include at least one search term when searching source code. For example, searching for <a href=\"https://github.com/search?utf8=%E2%9C%93&#x26;q=language%3Ago&#x26;type=Code\"><code>language:go</code></a> is not valid, while <a href=\"https://github.com/search?utf8=%E2%9C%93&#x26;q=amazing+language%3Ago&#x26;type=Code\"><code>amazing language:go</code></a> is.</li>\n</ul>\n<div class=\"ghd-alert ghd-alert-accent\" data-container=\"alert\"><p class=\"ghd-alert-title\"><svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon mr-2\" aria-hidden><path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"></path></svg>Note</p>\n<p>\n<code>repository.description</code>, <code>repository.owner.type</code>, and <code>repository.owner.node_id</code> are closing down on this endpoint and will return <code>null</code> in a future API version. Use the <a href=\"https://docs.github.com/rest/repos/repos#get-a-repository\">Get a repository</a> endpoint (<code>GET /repos/{owner}/{repo}</code>) to retrieve full repository metadata.</p>\n</div>\n<p>This endpoint requires you to authenticate and limits you to 10 requests per minute.</p>",
6767
"codeExamples": [
6868
{
6969
"request": {

0 commit comments

Comments
 (0)